summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/plugin_web_event_converter_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/plugins/plugin_web_event_converter_mac.mm')
-rw-r--r--webkit/glue/plugins/plugin_web_event_converter_mac.mm28
1 files changed, 0 insertions, 28 deletions
diff --git a/webkit/glue/plugins/plugin_web_event_converter_mac.mm b/webkit/glue/plugins/plugin_web_event_converter_mac.mm
index d8b5c05..030ed06 100644
--- a/webkit/glue/plugins/plugin_web_event_converter_mac.mm
+++ b/webkit/glue/plugins/plugin_web_event_converter_mac.mm
@@ -49,8 +49,6 @@ class CarbonPluginWebEventConverter : public PluginWebEventConverter {
virtual bool InitWithEvent(const WebInputEvent& web_event);
- virtual void SetZoomLevel(float zooom);
-
virtual void* plugin_event() { return &carbon_event_; }
protected:
@@ -77,12 +75,6 @@ bool CarbonPluginWebEventConverter::InitWithEvent(
return PluginWebEventConverter::InitWithEvent(web_event);
}
-void CarbonPluginWebEventConverter::SetZoomLevel(float zoom) {
- // Nothing to do here; because the event is built using the WebMouseEvent's
- // global coordinates, and the dummy window is in the right place, zoom has
- // no effect.
-}
-
bool CarbonPluginWebEventConverter::ConvertKeyboardEvent(
const WebKeyboardEvent& key_event) {
// TODO: Figure out how to handle Unicode input to plugins, if that's
@@ -185,8 +177,6 @@ public:
virtual bool InitWithEvent(const WebInputEvent& web_event);
- virtual void SetZoomLevel(float zoom);
-
virtual void* plugin_event() { return &cocoa_event_; }
protected:
@@ -212,24 +202,6 @@ bool CocoaPluginWebEventConverter::InitWithEvent(
return PluginWebEventConverter::InitWithEvent(web_event);
}
-void CocoaPluginWebEventConverter::SetZoomLevel(float zoom) {
- // Make sure we are dealing with a mouse event.
- if (!(cocoa_event_.type != NPCocoaEventMouseDown ||
- cocoa_event_.type != NPCocoaEventMouseUp ||
- cocoa_event_.type != NPCocoaEventMouseMoved ||
- cocoa_event_.type != NPCocoaEventMouseEntered ||
- cocoa_event_.type != NPCocoaEventMouseExited ||
- cocoa_event_.type != NPCocoaEventMouseDragged ||
- cocoa_event_.type != NPCocoaEventScrollWheel)) {
- NOTREACHED();
- return;
- }
- cocoa_event_.data.mouse.pluginX =
- round(cocoa_event_.data.mouse.pluginX * zoom);
- cocoa_event_.data.mouse.pluginY =
- round(cocoa_event_.data.mouse.pluginY * zoom);
-}
-
bool CocoaPluginWebEventConverter::ConvertKeyboardEvent(
const WebKeyboardEvent& key_event) {
cocoa_event_.data.key.keyCode = key_event.nativeKeyCode;