| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 virtual void setCompositorSurfaceReady() { } | 126 virtual void setCompositorSurfaceReady() { } |
| 127 | 127 |
| 128 // Called to inform the WebWidget of a change in theme. | 128 // Called to inform the WebWidget of a change in theme. |
| 129 // Implementors that cache rendered copies of widgets need to re-render | 129 // Implementors that cache rendered copies of widgets need to re-render |
| 130 // on receiving this message | 130 // on receiving this message |
| 131 virtual void themeChanged() { } | 131 virtual void themeChanged() { } |
| 132 | 132 |
| 133 // Called to inform the WebWidget of an input event. Returns true if | 133 // Called to inform the WebWidget of an input event. Returns true if |
| 134 // the event has been processed, false otherwise. | 134 // the event has been processed, false otherwise. |
| 135 virtual bool handleInputEvent(const WebInputEvent&) { return false; } | 135 virtual bool handleInputEvent(const WebInputEvent&) { return false; } |
| 136 virtual bool handleInputEvent(const WebInputEvent&, bool can_rubberband_left
, bool can_rubberband_right) { return false; } |
| 136 | 137 |
| 137 // Called to inform the WebWidget of the mouse cursor's visibility. | 138 // Called to inform the WebWidget of the mouse cursor's visibility. |
| 138 virtual void setCursorVisibilityState(bool isVisible) { } | 139 virtual void setCursorVisibilityState(bool isVisible) { } |
| 139 | 140 |
| 140 // Check whether the given point hits any registered touch event handlers. | 141 // Check whether the given point hits any registered touch event handlers. |
| 141 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } | 142 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } |
| 142 | 143 |
| 143 // Applies a scroll delta to the root layer, which is bundled with a page | 144 // Applies a scroll delta to the root layer, which is bundled with a page |
| 144 // scale factor that may apply a CSS transform on the whole document (used | 145 // scale factor that may apply a CSS transform on the whole document (used |
| 145 // for mobile-device pinch zooming). This is triggered by events sent to the | 146 // for mobile-device pinch zooming). This is triggered by events sent to the |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // content. | 252 // content. |
| 252 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } | 253 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } |
| 253 | 254 |
| 254 protected: | 255 protected: |
| 255 ~WebWidget() { } | 256 ~WebWidget() { } |
| 256 }; | 257 }; |
| 257 | 258 |
| 258 } // namespace blink | 259 } // namespace blink |
| 259 | 260 |
| 260 #endif | 261 #endif |
| OLD | NEW |