Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: content/renderer/render_widget.h

Issue 68893031: Unifies LayerTreeHost::SetNeedsUpdateLayers and SetNeedsAnimate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed cc animation unittest Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 virtual void didScrollRect(int dx, int dy, 125 virtual void didScrollRect(int dx, int dy,
126 const blink::WebRect& clipRect); 126 const blink::WebRect& clipRect);
127 virtual void didAutoResize(const blink::WebSize& new_size); 127 virtual void didAutoResize(const blink::WebSize& new_size);
128 virtual void didActivateCompositor(int input_handler_identifier); 128 virtual void didActivateCompositor(int input_handler_identifier);
129 virtual void didDeactivateCompositor(); 129 virtual void didDeactivateCompositor();
130 virtual void initializeLayerTreeView(); 130 virtual void initializeLayerTreeView();
131 virtual blink::WebLayerTreeView* layerTreeView(); 131 virtual blink::WebLayerTreeView* layerTreeView();
132 virtual void didBecomeReadyForAdditionalInput(); 132 virtual void didBecomeReadyForAdditionalInput();
133 virtual void didCommitAndDrawCompositorFrame(); 133 virtual void didCommitAndDrawCompositorFrame();
134 virtual void didCompleteSwapBuffers(); 134 virtual void didCompleteSwapBuffers();
135 virtual void scheduleComposite(); 135 virtual void scheduleAnimation(); // Renamed. Staged for removal.
136 virtual void scheduleAnimation(); 136 virtual void scheduleUpdate();
137 virtual void didFocus(); 137 virtual void didFocus();
138 virtual void didBlur(); 138 virtual void didBlur();
139 virtual void didChangeCursor(const blink::WebCursorInfo&); 139 virtual void didChangeCursor(const blink::WebCursorInfo&);
140 virtual void closeWidgetSoon(); 140 virtual void closeWidgetSoon();
141 virtual void show(blink::WebNavigationPolicy); 141 virtual void show(blink::WebNavigationPolicy);
142 virtual void runModal() {} 142 virtual void runModal() {}
143 virtual blink::WebRect windowRect(); 143 virtual blink::WebRect windowRect();
144 virtual void setToolTipText(const blink::WebString& text, 144 virtual void setToolTipText(const blink::WebString& text,
145 blink::WebTextDirection hint); 145 blink::WebTextDirection hint);
146 virtual void setWindowRect(const blink::WebRect&); 146 virtual void setWindowRect(const blink::WebRect&);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // Emulates screen and widget metrics. Supplied values override everything 218 // Emulates screen and widget metrics. Supplied values override everything
219 // coming from host. 219 // coming from host.
220 void EnableScreenMetricsEmulation( 220 void EnableScreenMetricsEmulation(
221 const gfx::Rect& device_rect, 221 const gfx::Rect& device_rect,
222 const gfx::Rect& widget_rect, 222 const gfx::Rect& widget_rect,
223 float device_scale_factor, 223 float device_scale_factor,
224 bool fit_to_view); 224 bool fit_to_view);
225 void DisableScreenMetricsEmulation(); 225 void DisableScreenMetricsEmulation();
226 void SetPopupOriginAdjustmentsForEmulation(ScreenMetricsEmulator* emulator); 226 void SetPopupOriginAdjustmentsForEmulation(ScreenMetricsEmulator* emulator);
227 227
228 void ScheduleAnimation();
229 void ScheduleComposite();
228 void ScheduleCompositeWithForcedRedraw(); 230 void ScheduleCompositeWithForcedRedraw();
229 231
230 // Called by the compositor in single-threaded mode when a swap is posted, 232 // Called by the compositor in single-threaded mode when a swap is posted,
231 // completes or is aborted. 233 // completes or is aborted.
232 void OnSwapBuffersPosted(); 234 void OnSwapBuffersPosted();
233 void OnSwapBuffersComplete(); 235 void OnSwapBuffersComplete();
234 void OnSwapBuffersAborted(); 236 void OnSwapBuffersAborted();
235 237
236 // Checks if the text input state and compose inline mode have been changed. 238 // Checks if the text input state and compose inline mode have been changed.
237 // If they are changed, the new value will be sent to the browser process. 239 // If they are changed, the new value will be sent to the browser process.
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 float popup_origin_scale_for_emulation_; 784 float popup_origin_scale_for_emulation_;
783 785
784 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; 786 scoped_ptr<ResizingModeSelector> resizing_mode_selector_;
785 787
786 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 788 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
787 }; 789 };
788 790
789 } // namespace content 791 } // namespace content
790 792
791 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 793 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698