| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // Called to inform the WebWidget of an input event. Returns true if | 129 // Called to inform the WebWidget of an input event. Returns true if |
| 130 // the event has been processed, false otherwise. | 130 // the event has been processed, false otherwise. |
| 131 virtual bool handleInputEvent(const WebInputEvent&) { return false; } | 131 virtual bool handleInputEvent(const WebInputEvent&) { return false; } |
| 132 | 132 |
| 133 // Called to inform the WebWidget of the mouse cursor's visibility. | 133 // Called to inform the WebWidget of the mouse cursor's visibility. |
| 134 virtual void setCursorVisibilityState(bool isVisible) { } | 134 virtual void setCursorVisibilityState(bool isVisible) { } |
| 135 | 135 |
| 136 // Check whether the given point hits any registered touch event handlers. | 136 // Check whether the given point hits any registered touch event handlers. |
| 137 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } | 137 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } |
| 138 | 138 |
| 139 // Applies a scroll delta to the root layer, which is bundled with a page | |
| 140 // scale factor that may apply a CSS transform on the whole document (used | |
| 141 // for mobile-device pinch zooming). This is triggered by events sent to the | |
| 142 // compositor thread. | |
| 143 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact
or) { } | |
| 144 | |
| 145 // Called to inform the WebWidget that mouse capture was lost. | 139 // Called to inform the WebWidget that mouse capture was lost. |
| 146 virtual void mouseCaptureLost() { } | 140 virtual void mouseCaptureLost() { } |
| 147 | 141 |
| 148 // Called to inform the WebWidget that it has gained or lost keyboard focus. | 142 // Called to inform the WebWidget that it has gained or lost keyboard focus. |
| 149 virtual void setFocus(bool) { } | 143 virtual void setFocus(bool) { } |
| 150 | 144 |
| 151 // Called to inform the WebWidget of a new composition text. | 145 // Called to inform the WebWidget of a new composition text. |
| 152 // If selectionStart and selectionEnd has the same value, then it indicates | 146 // If selectionStart and selectionEnd has the same value, then it indicates |
| 153 // the input caret position. If the text is empty, then the existing | 147 // the input caret position. If the text is empty, then the existing |
| 154 // composition text will be cancelled. | 148 // composition text will be cancelled. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // content. | 230 // content. |
| 237 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } | 231 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } |
| 238 | 232 |
| 239 protected: | 233 protected: |
| 240 ~WebWidget() { } | 234 ~WebWidget() { } |
| 241 }; | 235 }; |
| 242 | 236 |
| 243 } // namespace blink | 237 } // namespace blink |
| 244 | 238 |
| 245 #endif | 239 #endif |
| OLD | NEW |