| 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 // FIXME(bokan): Remove once Chromium-side patch lands | |
| 147 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact
or) | |
| 148 { | |
| 149 applyViewportDeltas(scrollDelta, scaleFactor, 0); | |
| 150 } | |
| 151 | |
| 152 // Applies viewport related properties during a commit from the compositor | 146 // Applies viewport related properties during a commit from the compositor |
| 153 // thread. | 147 // thread. |
| 154 virtual void applyViewportDeltas( | 148 virtual void applyViewportDeltas( |
| 155 const WebSize& scrollDelta, | 149 const WebSize& scrollDelta, |
| 156 float scaleFactor, | 150 float scaleFactor, |
| 157 float topControlsDelta) { } | 151 float topControlsDelta) { } |
| 158 | 152 |
| 159 // Called to inform the WebWidget that mouse capture was lost. | 153 // Called to inform the WebWidget that mouse capture was lost. |
| 160 virtual void mouseCaptureLost() { } | 154 virtual void mouseCaptureLost() { } |
| 161 | 155 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 // content. | 255 // content. |
| 262 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } | 256 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } |
| 263 | 257 |
| 264 protected: | 258 protected: |
| 265 ~WebWidget() { } | 259 ~WebWidget() { } |
| 266 }; | 260 }; |
| 267 | 261 |
| 268 } // namespace blink | 262 } // namespace blink |
| 269 | 263 |
| 270 #endif | 264 #endif |
| OLD | NEW |