Commit c1b39f7e authored by cblu's avatar cblu
Browse files

- Added debug drawing

	- removed unnecessary ifdef'ing.

        * Plugins.subproj/WebBaseNetscapePluginView.m:
        (-[WebBaseNetscapePluginView sendActivateEvent:]):
        (-[WebBaseNetscapePluginView becomeFirstResponder]):
        (-[WebBaseNetscapePluginView resignFirstResponder]):
        (-[WebBaseNetscapePluginView mouseDown:]):
        (-[WebBaseNetscapePluginView mouseUp:]):
        (-[WebBaseNetscapePluginView mouseEntered:]):
        (-[WebBaseNetscapePluginView mouseExited:]):
        (-[WebBaseNetscapePluginView menuForEvent:]):
        (-[WebBaseNetscapePluginView setWindow]):
        (-[WebBaseNetscapePluginView start]):
        (-[WebBaseNetscapePluginView drawRect:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2218 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 98fff8ef
2002-10-01 Chris Blumenberg <cblu@apple.com>
- Added debug drawing
- removed unnecessary ifdef'ing.
* Plugins.subproj/WebBaseNetscapePluginView.m:
(-[WebBaseNetscapePluginView sendActivateEvent:]):
(-[WebBaseNetscapePluginView becomeFirstResponder]):
(-[WebBaseNetscapePluginView resignFirstResponder]):
(-[WebBaseNetscapePluginView mouseDown:]):
(-[WebBaseNetscapePluginView mouseUp:]):
(-[WebBaseNetscapePluginView mouseEntered:]):
(-[WebBaseNetscapePluginView mouseExited:]):
(-[WebBaseNetscapePluginView menuForEvent:]):
(-[WebBaseNetscapePluginView setWindow]):
(-[WebBaseNetscapePluginView start]):
(-[WebBaseNetscapePluginView drawRect:]):
2002-10-01 Ken Kocienda <kocienda@apple.com>
 
* WebCoreSupport.subproj/WebSubresourceClient.m:
......
2002-10-01 Chris Blumenberg <cblu@apple.com>
- Added debug drawing
- removed unnecessary ifdef'ing.
* Plugins.subproj/WebBaseNetscapePluginView.m:
(-[WebBaseNetscapePluginView sendActivateEvent:]):
(-[WebBaseNetscapePluginView becomeFirstResponder]):
(-[WebBaseNetscapePluginView resignFirstResponder]):
(-[WebBaseNetscapePluginView mouseDown:]):
(-[WebBaseNetscapePluginView mouseUp:]):
(-[WebBaseNetscapePluginView mouseEntered:]):
(-[WebBaseNetscapePluginView mouseExited:]):
(-[WebBaseNetscapePluginView menuForEvent:]):
(-[WebBaseNetscapePluginView setWindow]):
(-[WebBaseNetscapePluginView start]):
(-[WebBaseNetscapePluginView drawRect:]):
2002-10-01 Ken Kocienda <kocienda@apple.com>
 
* WebCoreSupport.subproj/WebSubresourceClient.m:
......
......@@ -140,10 +140,8 @@ - (void)sendActivateEvent:(BOOL)activate
if (activate)
event.modifiers |= activeFlag;
#if !LOG_DISABLED
BOOL acceptedEvent =
#endif
[self sendEvent:&event];
BOOL acceptedEvent;
acceptedEvent = [self sendEvent:&event];
LOG(Plugins, "NPP_HandleEvent(activateEvent): %d isActive: %d", acceptedEvent, (event.modifiers & activeFlag));
}
......@@ -176,10 +174,8 @@ - (BOOL)becomeFirstResponder
[self getCarbonEvent:&event];
event.what = getFocusEvent;
#if !LOG_DISABLED
BOOL acceptedEvent =
#endif
[self sendEvent:&event];
BOOL acceptedEvent;
acceptedEvent = [self sendEvent:&event];
LOG(Plugins, "NPP_HandleEvent(getFocusEvent): %d", acceptedEvent);
return YES;
......@@ -192,10 +188,8 @@ - (BOOL)resignFirstResponder
[self getCarbonEvent:&event];
event.what = loseFocusEvent;
#if !LOG_DISABLED
BOOL acceptedEvent =
#endif
[self sendEvent:&event];
BOOL acceptedEvent;
acceptedEvent = [self sendEvent:&event];
LOG(Plugins, "NPP_HandleEvent(loseFocusEvent): %d", acceptedEvent);
return YES;
......@@ -208,10 +202,8 @@ - (void)mouseDown:(NSEvent *)theEvent
[self getCarbonEvent:&event withEvent:theEvent];
event.what = mouseDown;
#if !LOG_DISABLED
BOOL acceptedEvent =
#endif
[self sendEvent:&event];
BOOL acceptedEvent;
acceptedEvent = [self sendEvent:&event];
LOG(Plugins, "NPP_HandleEvent(mouseDown): %d pt.v=%d, pt.h=%d", acceptedEvent, event.where.v, event.where.h);
}
......@@ -223,10 +215,8 @@ - (void)mouseUp:(NSEvent *)theEvent
[self getCarbonEvent:&event withEvent:theEvent];
event.what = mouseUp;
#if !LOG_DISABLED
BOOL acceptedEvent =
#endif
[self sendEvent:&event];
BOOL acceptedEvent;
acceptedEvent = [self sendEvent:&event];
LOG(Plugins, "NPP_HandleEvent(mouseUp): %d pt.v=%d, pt.h=%d", acceptedEvent, event.where.v, event.where.h);
}
......@@ -238,10 +228,8 @@ - (void)mouseEntered:(NSEvent *)theEvent
[self getCarbonEvent:&event withEvent:theEvent];
event.what = adjustCursorEvent;
#if !LOG_DISABLED
BOOL acceptedEvent =
#endif
[self sendEvent:&event];
BOOL acceptedEvent;
acceptedEvent = [self sendEvent:&event];
LOG(Plugins, "NPP_HandleEvent(mouseEntered): %d", acceptedEvent);
}
......@@ -253,10 +241,8 @@ - (void)mouseExited:(NSEvent *)theEvent
[self getCarbonEvent:&event withEvent:theEvent];
event.what = adjustCursorEvent;
#if !LOG_DISABLED
BOOL acceptedEvent =
#endif
[self sendEvent:&event];
BOOL acceptedEvent;
acceptedEvent = [self sendEvent:&event];
LOG(Plugins, "NPP_HandleEvent(mouseExited): %d", acceptedEvent);
......@@ -359,10 +345,9 @@ - (NSMenu *)menuForEvent:(NSEvent *)theEvent
EventRecord event;
[self getCarbonEvent:&event withEvent:theEvent];
#if !LOG_DISABLED
BOOL acceptedEvent =
#endif
[self sendEvent:&event];
BOOL acceptedEvent;
acceptedEvent = [self sendEvent:&event];
LOG(Plugins, "NPP_HandleEvent(menuForEvent): %d pt.v=%d, pt.h=%d", acceptedEvent, event.where.v, event.where.h);
......@@ -408,9 +393,7 @@ - (void)setWindow
{
[self setUpWindowAndPort];
#if !LOG_DISABLED
NPError npErr =
#endif
NPError npErr;
NPP_SetWindow(instance, &window);
LOG(Plugins, "NPP_SetWindow: %d, port=0x%08x, window.x:%d window.y:%d",
npErr, (int)nPort.port, (int)window.x, (int)window.y);
......@@ -453,10 +436,8 @@ -(void)start
isStarted = YES;
#if !LOG_DISABLED
NPError npErr =
#endif
NPP_New((char *)[MIMEType cString], instance, mode, argsCount, cAttributes, cValues, NULL);
NPError npErr;
npErr = NPP_New((char *)[MIMEType cString], instance, mode, argsCount, cAttributes, cValues, NULL);
LOG(Plugins, "NPP_New: %d", npErr);
// Create a WindowRef is one doesn't already exist
......@@ -645,6 +626,10 @@ -(void)dealloc
- (void)drawRect:(NSRect)rect
{
#if 0
[[NSColor redColor] set];
NSRectFill([self bounds]);
#endif
if(isStarted){
[self sendUpdateEvent];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment