OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 // Notifies when the plugin changes the kind of touch-events it accepts. | 111 // Notifies when the plugin changes the kind of touch-events it accepts. |
112 virtual void requestTouchEventType(TouchEventRequestType) = 0; | 112 virtual void requestTouchEventType(TouchEventRequestType) = 0; |
113 | 113 |
114 // Notifies when the plugin starts/stops accepting wheel events. Without | 114 // Notifies when the plugin starts/stops accepting wheel events. Without |
115 // calling the function with true, the container might not always able to | 115 // calling the function with true, the container might not always able to |
116 // receive wheel events in some cases (such as when threaded compositing | 116 // receive wheel events in some cases (such as when threaded compositing |
117 // is in use but a scroll bar is not in use). | 117 // is in use but a scroll bar is not in use). |
118 virtual void setWantsWheelEvents(bool) = 0; | 118 virtual void setWantsWheelEvents(bool) = 0; |
119 | 119 |
120 // Converts view's window coordinates to plugin's local coordinates. | 120 // Converts root frame's coordinates to plugin's local coordinates. |
121 virtual WebPoint windowToLocalPoint(const WebPoint&) = 0; | 121 virtual WebPoint rootFrameToLocalPoint(const WebPoint&) = 0; |
122 | 122 |
123 // Converts plugin's local coordinate to view's window coordinates. | 123 // Converts plugin's local coordinate to root frame's coordinates. |
124 virtual WebPoint localToWindowPoint(const WebPoint&) = 0; | 124 virtual WebPoint localToRootFramePoint(const WebPoint&) = 0; |
125 | 125 |
126 virtual WebPlugin* plugin() = 0; | 126 virtual WebPlugin* plugin() = 0; |
127 virtual void setPlugin(WebPlugin*) = 0; | 127 virtual void setPlugin(WebPlugin*) = 0; |
128 | 128 |
129 virtual float deviceScaleFactor() = 0; | 129 virtual float deviceScaleFactor() = 0; |
130 virtual float pageScaleFactor() = 0; | 130 virtual float pageScaleFactor() = 0; |
131 virtual float pageZoomFactor() = 0; | 131 virtual float pageZoomFactor() = 0; |
132 | 132 |
133 // Sets the layer representing the plugin for compositing. The | 133 // Sets the layer representing the plugin for compositing. The |
134 // WebPluginContainer does *not* take ownership. | 134 // WebPluginContainer does *not* take ownership. |
135 virtual void setWebLayer(WebLayer*) = 0; | 135 virtual void setWebLayer(WebLayer*) = 0; |
136 | 136 |
137 protected: | 137 protected: |
138 ~WebPluginContainer() { } | 138 ~WebPluginContainer() { } |
139 }; | 139 }; |
140 | 140 |
141 } // namespace blink | 141 } // namespace blink |
142 | 142 |
143 #endif | 143 #endif |
OLD | NEW |