OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
118 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* ) { } | 118 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* ) { } |
119 | 119 |
120 // Called to inform the WebWidget of a change in theme. | 120 // Called to inform the WebWidget of a change in theme. |
121 // Implementors that cache rendered copies of widgets need to re-render | 121 // Implementors that cache rendered copies of widgets need to re-render |
122 // on receiving this message | 122 // on receiving this message |
123 virtual void themeChanged() { } | 123 virtual void themeChanged() { } |
124 | 124 |
125 // Called to inform the WebWidget of an input event. | 125 // Called to inform the WebWidget of an input event. |
126 virtual WebInputEventResult handleInputEvent(const WebInputEvent&) { return WebInputEventResult::NotHandled; } | 126 virtual WebInputEventResult handleInputEvent(const WebInputEvent&) { return WebInputEventResult::NotHandled; } |
127 | 127 |
128 virtual bool selectWordIfAnyAtCoordinates(float x, float y) | |
Rick Byers
2015/12/21 16:31:09
Looking at this in more detail, it seems that it p
Rick Byers
2015/12/21 16:31:09
For consistency with similar APIs, please use WebP
Rick Byers
2015/12/21 16:31:09
please add a short description (we try to keep the
spqchan
2016/01/06 22:52:31
Done, switched to WebPoint
spqchan
2016/01/06 22:52:31
Sure thing. I also moved the code from render_widg
spqchan
2016/01/06 22:52:31
Done.
| |
129 { | |
130 return false; | |
131 } | |
132 | |
128 // Called to inform the WebWidget of the mouse cursor's visibility. | 133 // Called to inform the WebWidget of the mouse cursor's visibility. |
129 virtual void setCursorVisibilityState(bool isVisible) { } | 134 virtual void setCursorVisibilityState(bool isVisible) { } |
130 | 135 |
131 // Check whether the given point hits any registered touch event handlers. | 136 // Check whether the given point hits any registered touch event handlers. |
132 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } | 137 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } |
133 | 138 |
134 // Applies viewport related properties during a commit from the compositor | 139 // Applies viewport related properties during a commit from the compositor |
135 // thread. | 140 // thread. |
136 virtual void applyViewportDeltas( | 141 virtual void applyViewportDeltas( |
137 const WebFloatSize& visualViewportDelta, | 142 const WebFloatSize& visualViewportDelta, |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
264 // control what are valid states for top controls and if it should animate. | 269 // control what are valid states for top controls and if it should animate. |
265 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { } | 270 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { } |
266 | 271 |
267 protected: | 272 protected: |
268 ~WebWidget() { } | 273 ~WebWidget() { } |
269 }; | 274 }; |
270 | 275 |
271 } // namespace blink | 276 } // namespace blink |
272 | 277 |
273 #endif | 278 #endif |
OLD | NEW |