OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 virtual void didScrollRect(int dx, int dy, | 126 virtual void didScrollRect(int dx, int dy, |
127 const blink::WebRect& clipRect); | 127 const blink::WebRect& clipRect); |
128 virtual void didAutoResize(const blink::WebSize& new_size); | 128 virtual void didAutoResize(const blink::WebSize& new_size); |
129 virtual void didActivateCompositor(int input_handler_identifier); | 129 virtual void didActivateCompositor(int input_handler_identifier); |
130 virtual void didDeactivateCompositor(); | 130 virtual void didDeactivateCompositor(); |
131 virtual void initializeLayerTreeView(); | 131 virtual void initializeLayerTreeView(); |
132 virtual blink::WebLayerTreeView* layerTreeView(); | 132 virtual blink::WebLayerTreeView* layerTreeView(); |
133 virtual void didBecomeReadyForAdditionalInput(); | 133 virtual void didBecomeReadyForAdditionalInput(); |
134 virtual void didCommitAndDrawCompositorFrame(); | 134 virtual void didCommitAndDrawCompositorFrame(); |
135 virtual void didCompleteSwapBuffers(); | 135 virtual void didCompleteSwapBuffers(); |
136 virtual void scheduleComposite(); | 136 virtual void scheduleAnimation(); // Renamed. Staged for removal. |
137 virtual void scheduleAnimation(); | 137 virtual void scheduleUpdate(); |
138 virtual void didFocus(); | 138 virtual void didFocus(); |
139 virtual void didBlur(); | 139 virtual void didBlur(); |
140 virtual void didChangeCursor(const blink::WebCursorInfo&); | 140 virtual void didChangeCursor(const blink::WebCursorInfo&); |
141 virtual void closeWidgetSoon(); | 141 virtual void closeWidgetSoon(); |
142 virtual void show(blink::WebNavigationPolicy); | 142 virtual void show(blink::WebNavigationPolicy); |
143 virtual void runModal() {} | 143 virtual void runModal() {} |
144 virtual blink::WebRect windowRect(); | 144 virtual blink::WebRect windowRect(); |
145 virtual void setToolTipText(const blink::WebString& text, | 145 virtual void setToolTipText(const blink::WebString& text, |
146 blink::WebTextDirection hint); | 146 blink::WebTextDirection hint); |
147 virtual void setWindowRect(const blink::WebRect&); | 147 virtual void setWindowRect(const blink::WebRect&); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // Emulates screen and widget metrics. Supplied values override everything | 219 // Emulates screen and widget metrics. Supplied values override everything |
220 // coming from host. | 220 // coming from host. |
221 void EnableScreenMetricsEmulation( | 221 void EnableScreenMetricsEmulation( |
222 const gfx::Rect& device_rect, | 222 const gfx::Rect& device_rect, |
223 const gfx::Rect& widget_rect, | 223 const gfx::Rect& widget_rect, |
224 float device_scale_factor, | 224 float device_scale_factor, |
225 bool fit_to_view); | 225 bool fit_to_view); |
226 void DisableScreenMetricsEmulation(); | 226 void DisableScreenMetricsEmulation(); |
227 void SetPopupOriginAdjustmentsForEmulation(ScreenMetricsEmulator* emulator); | 227 void SetPopupOriginAdjustmentsForEmulation(ScreenMetricsEmulator* emulator); |
228 | 228 |
| 229 virtual void ScheduleAnimation(); // virtual for testing |
| 230 virtual void ScheduleComposite(); // virtual for testing |
229 void ScheduleCompositeWithForcedRedraw(); | 231 void ScheduleCompositeWithForcedRedraw(); |
230 | 232 |
231 // Called by the compositor in single-threaded mode when a swap is posted, | 233 // Called by the compositor in single-threaded mode when a swap is posted, |
232 // completes or is aborted. | 234 // completes or is aborted. |
233 void OnSwapBuffersPosted(); | 235 void OnSwapBuffersPosted(); |
234 void OnSwapBuffersComplete(); | 236 void OnSwapBuffersComplete(); |
235 void OnSwapBuffersAborted(); | 237 void OnSwapBuffersAborted(); |
236 | 238 |
237 // Checks if the text input state and compose inline mode have been changed. | 239 // Checks if the text input state and compose inline mode have been changed. |
238 // If they are changed, the new value will be sent to the browser process. | 240 // If they are changed, the new value will be sent to the browser process. |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 float popup_origin_scale_for_emulation_; | 791 float popup_origin_scale_for_emulation_; |
790 | 792 |
791 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; | 793 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; |
792 | 794 |
793 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 795 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
794 }; | 796 }; |
795 | 797 |
796 } // namespace content | 798 } // namespace content |
797 | 799 |
798 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 800 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |