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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
68 // Called to resize the WebWidget. | 68 // Called to resize the WebWidget. |
69 virtual void resize(const WebSize&) { } | 69 virtual void resize(const WebSize&) { } |
70 | 70 |
71 // Resizes the unscaled pinch viewport. Normally the unscaled pinch | 71 // Resizes the unscaled pinch viewport. Normally the unscaled pinch |
72 // viewport is the same size as the main frame. The passed size becomes the | 72 // viewport is the same size as the main frame. The passed size becomes the |
73 // size of the viewport when unscaled (i.e. scale = 1). This is used to | 73 // size of the viewport when unscaled (i.e. scale = 1). This is used to |
74 // shrink the visible viewport to allow things like the ChromeOS virtual | 74 // shrink the visible viewport to allow things like the ChromeOS virtual |
75 // keyboard to overlay over content but allow scrolling it into view. | 75 // keyboard to overlay over content but allow scrolling it into view. |
76 virtual void resizePinchViewport(const WebSize&) { } | 76 virtual void resizePinchViewport(const WebSize&) { } |
77 | 77 |
78 // Lets Blink know the updated top controls content offset (i.e. how much | |
79 // the top controls are showing). Should always be 0 on platforms without | |
80 // top controls. | |
81 virtual void setTopControlsContentOffset(float) { } | |
aelias_OOO_until_Jul13
2014/09/03 19:28:42
Looks like nobody calls this in your Chromium-side
bokan
2014/09/04 23:10:02
Done.
| |
82 | |
78 // Ends a group of resize events that was started with a call to | 83 // Ends a group of resize events that was started with a call to |
79 // willStartLiveResize. | 84 // willStartLiveResize. |
80 virtual void willEndLiveResize() { } | 85 virtual void willEndLiveResize() { } |
81 | 86 |
82 // Called to notify the WebWidget of entering/exiting fullscreen mode. The | 87 // Called to notify the WebWidget of entering/exiting fullscreen mode. The |
83 // resize method may be called between will{Enter,Exit}FullScreen and | 88 // resize method may be called between will{Enter,Exit}FullScreen and |
84 // did{Enter,Exit}FullScreen. | 89 // did{Enter,Exit}FullScreen. |
85 virtual void willEnterFullScreen() { } | 90 virtual void willEnterFullScreen() { } |
86 virtual void didEnterFullScreen() { } | 91 virtual void didEnterFullScreen() { } |
87 virtual void willExitFullScreen() { } | 92 virtual void willExitFullScreen() { } |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
131 // 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 |
132 // the event has been processed, false otherwise. | 137 // the event has been processed, false otherwise. |
133 virtual bool handleInputEvent(const WebInputEvent&) { return false; } | 138 virtual bool handleInputEvent(const WebInputEvent&) { return false; } |
134 | 139 |
135 // Called to inform the WebWidget of the mouse cursor's visibility. | 140 // Called to inform the WebWidget of the mouse cursor's visibility. |
136 virtual void setCursorVisibilityState(bool isVisible) { } | 141 virtual void setCursorVisibilityState(bool isVisible) { } |
137 | 142 |
138 // Check whether the given point hits any registered touch event handlers. | 143 // Check whether the given point hits any registered touch event handlers. |
139 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } | 144 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } |
140 | 145 |
141 // Applies a scroll delta to the root layer, which is bundled with a page | 146 // Applies viewport related properties during a commit from the compositor |
142 // scale factor that may apply a CSS transform on the whole document (used | 147 // thread. |
143 // for mobile-device pinch zooming). This is triggered by events sent to the | 148 virtual void applyViewportProperties( |
144 // compositor thread. | 149 const WebSize& scrollDelta, |
145 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact or) { } | 150 float scaleFactor, |
151 float topControlsDelta) { } | |
146 | 152 |
147 // Called to inform the WebWidget that mouse capture was lost. | 153 // Called to inform the WebWidget that mouse capture was lost. |
148 virtual void mouseCaptureLost() { } | 154 virtual void mouseCaptureLost() { } |
149 | 155 |
150 // Called to inform the WebWidget that it has gained or lost keyboard focus. | 156 // Called to inform the WebWidget that it has gained or lost keyboard focus. |
151 virtual void setFocus(bool) { } | 157 virtual void setFocus(bool) { } |
152 | 158 |
153 // Called to inform the WebWidget of a new composition text. | 159 // Called to inform the WebWidget of a new composition text. |
154 // If selectionStart and selectionEnd has the same value, then it indicates | 160 // If selectionStart and selectionEnd has the same value, then it indicates |
155 // the input caret position. If the text is empty, then the existing | 161 // 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... | |
249 // content. | 255 // content. |
250 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } | 256 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } |
251 | 257 |
252 protected: | 258 protected: |
253 ~WebWidget() { } | 259 ~WebWidget() { } |
254 }; | 260 }; |
255 | 261 |
256 } // namespace blink | 262 } // namespace blink |
257 | 263 |
258 #endif | 264 #endif |
OLD | NEW |