OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // Check whether the given point hits any registered touch event handlers. | 146 // Check whether the given point hits any registered touch event handlers. |
147 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } | 147 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } |
148 | 148 |
149 // Applies viewport related properties during a commit from the compositor | 149 // Applies viewport related properties during a commit from the compositor |
150 // thread. | 150 // thread. |
151 virtual void applyViewportDeltas( | 151 virtual void applyViewportDeltas( |
152 const WebSize& scrollDelta, | 152 const WebSize& scrollDelta, |
153 float scaleFactor, | 153 float scaleFactor, |
154 float topControlsDelta) { } | 154 float topControlsDelta) { } |
155 | 155 |
| 156 // Applies viewport related properties during a commit from the compositor |
| 157 // thread. |
| 158 virtual void applyViewportDeltas( |
| 159 const WebSize& pinchViewportDelta, |
| 160 const WebSize& mainFrameDelta, |
| 161 float scaleFactor, |
| 162 float topControlsDelta) { } |
| 163 |
156 // Called to inform the WebWidget that mouse capture was lost. | 164 // Called to inform the WebWidget that mouse capture was lost. |
157 virtual void mouseCaptureLost() { } | 165 virtual void mouseCaptureLost() { } |
158 | 166 |
159 // Called to inform the WebWidget that it has gained or lost keyboard focus. | 167 // Called to inform the WebWidget that it has gained or lost keyboard focus. |
160 virtual void setFocus(bool) { } | 168 virtual void setFocus(bool) { } |
161 | 169 |
162 // Called to inform the WebWidget of a new composition text. | 170 // Called to inform the WebWidget of a new composition text. |
163 // If selectionStart and selectionEnd has the same value, then it indicates | 171 // If selectionStart and selectionEnd has the same value, then it indicates |
164 // the input caret position. If the text is empty, then the existing | 172 // the input caret position. If the text is empty, then the existing |
165 // composition text will be cancelled. | 173 // composition text will be cancelled. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // but not the select popup. | 270 // but not the select popup. |
263 virtual WebPagePopup* pagePopup() const { return 0; } | 271 virtual WebPagePopup* pagePopup() const { return 0; } |
264 | 272 |
265 protected: | 273 protected: |
266 ~WebWidget() { } | 274 ~WebWidget() { } |
267 }; | 275 }; |
268 | 276 |
269 } // namespace blink | 277 } // namespace blink |
270 | 278 |
271 #endif | 279 #endif |
OLD | NEW |