| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 a scroll delta to the root layer, which is bundled with a page |
| 142 // scale factor that may apply a CSS transform on the whole document (used | 142 // scale factor that may apply a CSS transform on the whole document (used |
| 143 // for mobile-device pinch zooming). This is triggered by events sent to the | 143 // for mobile-device pinch zooming). This is triggered by events sent to the |
| 144 // compositor thread. | 144 // compositor thread. |
| 145 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact
or) { } | 145 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact
or) { } |
| 146 | 146 |
| 147 // Records draw events for the Performance Timeline. |
| 148 virtual void recordDrawTiming(int64_t RectId, const WebVector<std::pair<int,
double> >& draws) { } |
| 149 |
| 147 // Called to inform the WebWidget that mouse capture was lost. | 150 // Called to inform the WebWidget that mouse capture was lost. |
| 148 virtual void mouseCaptureLost() { } | 151 virtual void mouseCaptureLost() { } |
| 149 | 152 |
| 150 // Called to inform the WebWidget that it has gained or lost keyboard focus. | 153 // Called to inform the WebWidget that it has gained or lost keyboard focus. |
| 151 virtual void setFocus(bool) { } | 154 virtual void setFocus(bool) { } |
| 152 | 155 |
| 153 // Called to inform the WebWidget of a new composition text. | 156 // Called to inform the WebWidget of a new composition text. |
| 154 // If selectionStart and selectionEnd has the same value, then it indicates | 157 // If selectionStart and selectionEnd has the same value, then it indicates |
| 155 // the input caret position. If the text is empty, then the existing | 158 // the input caret position. If the text is empty, then the existing |
| 156 // composition text will be cancelled. | 159 // composition text will be cancelled. |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 // content. | 252 // content. |
| 250 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } | 253 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } |
| 251 | 254 |
| 252 protected: | 255 protected: |
| 253 ~WebWidget() { } | 256 ~WebWidget() { } |
| 254 }; | 257 }; |
| 255 | 258 |
| 256 } // namespace blink | 259 } // namespace blink |
| 257 | 260 |
| 258 #endif | 261 #endif |
| OLD | NEW |