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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
110 // should only be called when isAcceleratedCompositingActive() is true. | 110 // should only be called when isAcceleratedCompositingActive() is true. |
111 virtual void compositeAndReadbackAsync( | 111 virtual void compositeAndReadbackAsync( |
112 WebCompositeAndReadbackAsyncCallback*) {} | 112 WebCompositeAndReadbackAsyncCallback*) {} |
113 | 113 |
114 // Called to inform the WebWidget of a change in theme. | 114 // Called to inform the WebWidget of a change in theme. |
115 // Implementors that cache rendered copies of widgets need to re-render | 115 // Implementors that cache rendered copies of widgets need to re-render |
116 // on receiving this message | 116 // on receiving this message |
117 virtual void themeChanged() {} | 117 virtual void themeChanged() {} |
118 | 118 |
119 // Called to inform the WebWidget of an input event. | 119 // Called to inform the WebWidget of an input event. |
120 virtual WebInputEventResult handleInputEvent(const WebInputEvent&) { | 120 virtual WebInputEventResult handleInputEvent( |
121 const WebInputEvent&, | |
122 const std::vector<const WebInputEvent*>& = | |
Navid Zolghadr
2016/11/07 16:01:30
This was a very confusing part for me. I wasn't su
| |
123 std::vector<const WebInputEvent*>()) { | |
121 return WebInputEventResult::NotHandled; | 124 return WebInputEventResult::NotHandled; |
122 } | 125 } |
123 | 126 |
124 // Called to inform the WebWidget of the mouse cursor's visibility. | 127 // Called to inform the WebWidget of the mouse cursor's visibility. |
125 virtual void setCursorVisibilityState(bool isVisible) {} | 128 virtual void setCursorVisibilityState(bool isVisible) {} |
126 | 129 |
127 // Check whether the given point hits any registered touch event handlers. | 130 // Check whether the given point hits any registered touch event handlers. |
128 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } | 131 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } |
129 | 132 |
130 // Applies viewport related properties during a commit from the compositor | 133 // Applies viewport related properties during a commit from the compositor |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
263 // replaced. | 266 // replaced. |
264 virtual void applyReplacementRange(const WebRange&) {} | 267 virtual void applyReplacementRange(const WebRange&) {} |
265 | 268 |
266 protected: | 269 protected: |
267 ~WebWidget() {} | 270 ~WebWidget() {} |
268 }; | 271 }; |
269 | 272 |
270 } // namespace blink | 273 } // namespace blink |
271 | 274 |
272 #endif | 275 #endif |
OLD | NEW |