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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
131 // Called to inform the WebWidget of an input event. Returns true if | 131 // Called to inform the WebWidget of an input event. Returns true if |
132 // the event has been processed, false otherwise. | 132 // the event has been processed, false otherwise. |
133 virtual bool handleInputEvent(const WebInputEvent&) { return false; } | 133 virtual bool handleInputEvent(const WebInputEvent&) { return false; } |
134 | 134 |
135 // Called to inform the WebWidget of the mouse cursor's visibility. | 135 // Called to inform the WebWidget of the mouse cursor's visibility. |
136 virtual void setCursorVisibilityState(bool isVisible) { } | 136 virtual void setCursorVisibilityState(bool isVisible) { } |
137 | 137 |
138 // Check whether the given point hits any registered touch event handlers. | 138 // Check whether the given point hits any registered touch event handlers. |
139 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } | 139 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } |
140 | 140 |
141 // Applies a scroll delta to the root layer, which is bundled with a page | 141 // Applies viewport related properties during a commit from the compositor |
142 // scale factor that may apply a CSS transform on the whole document (used | 142 // thread. |
143 // for mobile-device pinch zooming). This is triggered by events sent to the | 143 virtual void applyViewportDeltas( |
144 // compositor thread. | 144 const WebSize& scrollDelta, |
145 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact or) { } | 145 float scaleFactor, |
aelias_OOO_until_Jul13
2014/09/05 00:22:07
I assume you want to land the Blink side first. I
bokan
2014/09/05 01:05:40
Done.
| |
146 float topControlsDelta) { } | |
146 | 147 |
147 // Called to inform the WebWidget that mouse capture was lost. | 148 // Called to inform the WebWidget that mouse capture was lost. |
148 virtual void mouseCaptureLost() { } | 149 virtual void mouseCaptureLost() { } |
149 | 150 |
150 // Called to inform the WebWidget that it has gained or lost keyboard focus. | 151 // Called to inform the WebWidget that it has gained or lost keyboard focus. |
151 virtual void setFocus(bool) { } | 152 virtual void setFocus(bool) { } |
152 | 153 |
153 // Called to inform the WebWidget of a new composition text. | 154 // Called to inform the WebWidget of a new composition text. |
154 // If selectionStart and selectionEnd has the same value, then it indicates | 155 // If selectionStart and selectionEnd has the same value, then it indicates |
155 // the input caret position. If the text is empty, then the existing | 156 // the input caret position. If the text is empty, then the existing |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
249 // content. | 250 // content. |
250 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } | 251 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } |
251 | 252 |
252 protected: | 253 protected: |
253 ~WebWidget() { } | 254 ~WebWidget() { } |
254 }; | 255 }; |
255 | 256 |
256 } // namespace blink | 257 } // namespace blink |
257 | 258 |
258 #endif | 259 #endif |
OLD | NEW |