summaryrefslogtreecommitdiffstats
path: root/WebKit/mac/Plugins/WebNetscapePluginEventHandlerCocoa.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/mac/Plugins/WebNetscapePluginEventHandlerCocoa.h')
-rw-r--r--WebKit/mac/Plugins/WebNetscapePluginEventHandlerCocoa.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/WebKit/mac/Plugins/WebNetscapePluginEventHandlerCocoa.h b/WebKit/mac/Plugins/WebNetscapePluginEventHandlerCocoa.h
index 8b6f6e7..4613fcd 100644
--- a/WebKit/mac/Plugins/WebNetscapePluginEventHandlerCocoa.h
+++ b/WebKit/mac/Plugins/WebNetscapePluginEventHandlerCocoa.h
@@ -53,10 +53,24 @@ public:
virtual void focusChanged(bool hasFocus);
virtual void* platformWindow(NSWindow*);
+
private:
bool sendMouseEvent(NSEvent*, NPCocoaEventType);
bool sendKeyEvent(NSEvent*, NPCocoaEventType);
bool sendEvent(NPCocoaEvent*);
+
+#ifndef __LP64__
+ void installKeyEventHandler();
+ void removeKeyEventHandler();
+
+ static OSStatus TSMEventHandler(EventHandlerCallRef, EventRef, void *eventHandler);
+ OSStatus handleTSMEvent(EventRef);
+
+ EventHandlerRef m_keyEventHandler;
+#else
+ inline void installKeyEventHandler() { }
+ void removeKeyEventHandler() { }
+#endif
};
#endif //WebNetscapePluginEventHandlerCocoa_h