| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // Called to inform the WebWidget of an input event. Returns true if | 136 // Called to inform the WebWidget of an input event. Returns true if |
| 137 // the event has been processed, false otherwise. | 137 // the event has been processed, false otherwise. |
| 138 virtual bool handleInputEvent(const WebInputEvent&) { return false; } | 138 virtual bool handleInputEvent(const WebInputEvent&) { return false; } |
| 139 | 139 |
| 140 // Called to inform the WebWidget of the mouse cursor's visibility. | 140 // Called to inform the WebWidget of the mouse cursor's visibility. |
| 141 virtual void setCursorVisibilityState(bool isVisible) { } | 141 virtual void setCursorVisibilityState(bool isVisible) { } |
| 142 | 142 |
| 143 // Check whether the given point hits any registered touch event handlers. | 143 // Check whether the given point hits any registered touch event handlers. |
| 144 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } | 144 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } |
| 145 | 145 |
| 146 // Applies a scroll delta to the root layer, which is bundled with a page | 146 // FIXME(bokan): Remove once Chromium-side patch lands |
| 147 // scale factor that may apply a CSS transform on the whole document (used | 147 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact
or) |
| 148 // for mobile-device pinch zooming). This is triggered by events sent to the | 148 { |
| 149 // compositor thread. | 149 applyViewportDeltas(scrollDelta, scaleFactor, 0); |
| 150 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact
or) { } | 150 } |
| 151 |
| 152 // Applies viewport related properties during a commit from the compositor |
| 153 // thread. |
| 154 virtual void applyViewportDeltas( |
| 155 const WebSize& scrollDelta, |
| 156 float scaleFactor, |
| 157 float topControlsDelta) { } |
| 151 | 158 |
| 152 // Called to inform the WebWidget that mouse capture was lost. | 159 // Called to inform the WebWidget that mouse capture was lost. |
| 153 virtual void mouseCaptureLost() { } | 160 virtual void mouseCaptureLost() { } |
| 154 | 161 |
| 155 // Called to inform the WebWidget that it has gained or lost keyboard focus. | 162 // Called to inform the WebWidget that it has gained or lost keyboard focus. |
| 156 virtual void setFocus(bool) { } | 163 virtual void setFocus(bool) { } |
| 157 | 164 |
| 158 // Called to inform the WebWidget of a new composition text. | 165 // Called to inform the WebWidget of a new composition text. |
| 159 // If selectionStart and selectionEnd has the same value, then it indicates | 166 // If selectionStart and selectionEnd has the same value, then it indicates |
| 160 // the input caret position. If the text is empty, then the existing | 167 // 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... |
| 254 // content. | 261 // content. |
| 255 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } | 262 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } |
| 256 | 263 |
| 257 protected: | 264 protected: |
| 258 ~WebWidget() { } | 265 ~WebWidget() { } |
| 259 }; | 266 }; |
| 260 | 267 |
| 261 } // namespace blink | 268 } // namespace blink |
| 262 | 269 |
| 263 #endif | 270 #endif |
| OLD | NEW |