| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 class WebCompositeAndReadbackAsyncCallback; | 46 class WebCompositeAndReadbackAsyncCallback; |
| 47 class WebInputEvent; | 47 class WebInputEvent; |
| 48 class WebLayerTreeView; | 48 class WebLayerTreeView; |
| 49 class WebMouseEvent; | 49 class WebMouseEvent; |
| 50 class WebPagePopup; | 50 class WebPagePopup; |
| 51 class WebString; | 51 class WebString; |
| 52 class WebWidgetClient; | 52 class WebWidgetClient; |
| 53 struct WebPoint; | 53 struct WebPoint; |
| 54 struct WebRenderingStats; | 54 struct WebRenderingStats; |
| 55 struct WebTeleportValue; |
| 55 template <typename T> class WebVector; | 56 template <typename T> class WebVector; |
| 56 | 57 |
| 57 class WebWidget { | 58 class WebWidget { |
| 58 public: | 59 public: |
| 59 // This method closes and deletes the WebWidget. | 60 // This method closes and deletes the WebWidget. |
| 60 virtual void close() { } | 61 virtual void close() { } |
| 61 | 62 |
| 62 // Returns the current size of the WebWidget. | 63 // Returns the current size of the WebWidget. |
| 63 virtual WebSize size() { return WebSize(); } | 64 virtual WebSize size() { return WebSize(); } |
| 64 | 65 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 float topControlsDelta) { } | 155 float topControlsDelta) { } |
| 155 | 156 |
| 156 // Applies viewport related properties during a commit from the compositor | 157 // Applies viewport related properties during a commit from the compositor |
| 157 // thread. | 158 // thread. |
| 158 virtual void applyViewportDeltas( | 159 virtual void applyViewportDeltas( |
| 159 const WebSize& pinchViewportDelta, | 160 const WebSize& pinchViewportDelta, |
| 160 const WebSize& mainFrameDelta, | 161 const WebSize& mainFrameDelta, |
| 161 float scaleFactor, | 162 float scaleFactor, |
| 162 float topControlsDelta) { } | 163 float topControlsDelta) { } |
| 163 | 164 |
| 165 // Applies values that were updated via compositor driven effects to their |
| 166 // correspending main thread counterparts. |
| 167 virtual void applyTeleportValues(const WebVector<WebTeleportValue>& values)
{ } |
| 168 |
| 164 // Called to inform the WebWidget that mouse capture was lost. | 169 // Called to inform the WebWidget that mouse capture was lost. |
| 165 virtual void mouseCaptureLost() { } | 170 virtual void mouseCaptureLost() { } |
| 166 | 171 |
| 167 // Called to inform the WebWidget that it has gained or lost keyboard focus. | 172 // Called to inform the WebWidget that it has gained or lost keyboard focus. |
| 168 virtual void setFocus(bool) { } | 173 virtual void setFocus(bool) { } |
| 169 | 174 |
| 170 // Called to inform the WebWidget of a new composition text. | 175 // Called to inform the WebWidget of a new composition text. |
| 171 // If selectionStart and selectionEnd has the same value, then it indicates | 176 // If selectionStart and selectionEnd has the same value, then it indicates |
| 172 // the input caret position. If the text is empty, then the existing | 177 // the input caret position. If the text is empty, then the existing |
| 173 // composition text will be cancelled. | 178 // composition text will be cancelled. |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // Sets the height subtracted from the Widget to accomodate the top controls
. | 278 // Sets the height subtracted from the Widget to accomodate the top controls
. |
| 274 virtual void setTopControlsLayoutHeight(float) { } | 279 virtual void setTopControlsLayoutHeight(float) { } |
| 275 | 280 |
| 276 protected: | 281 protected: |
| 277 ~WebWidget() { } | 282 ~WebWidget() { } |
| 278 }; | 283 }; |
| 279 | 284 |
| 280 } // namespace blink | 285 } // namespace blink |
| 281 | 286 |
| 282 #endif | 287 #endif |
| OLD | NEW |