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

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

Issue 141833002: Revert 245445 "Unifies LayerTreeHost::SetNeedsUpdateLayers and S..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 months 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 scheduleAnimation(); // Renamed. Staged for removal. 136 virtual void scheduleComposite();
137 virtual void scheduleUpdate(); 137 virtual void scheduleAnimation();
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
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
231 void ScheduleCompositeWithForcedRedraw(); 229 void ScheduleCompositeWithForcedRedraw();
232 230
233 // Called by the compositor in single-threaded mode when a swap is posted, 231 // Called by the compositor in single-threaded mode when a swap is posted,
234 // completes or is aborted. 232 // completes or is aborted.
235 void OnSwapBuffersPosted(); 233 void OnSwapBuffersPosted();
236 void OnSwapBuffersComplete(); 234 void OnSwapBuffersComplete();
237 void OnSwapBuffersAborted(); 235 void OnSwapBuffersAborted();
238 236
239 // Checks if the text input state and compose inline mode have been changed. 237 // Checks if the text input state and compose inline mode have been changed.
240 // If they are changed, the new value will be sent to the browser process. 238 // 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
791 float popup_origin_scale_for_emulation_; 789 float popup_origin_scale_for_emulation_;
792 790
793 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; 791 scoped_ptr<ResizingModeSelector> resizing_mode_selector_;
794 792
795 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 793 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
796 }; 794 };
797 795
798 } // namespace content 796 } // namespace content
799 797
800 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 798 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « trunk/src/content/renderer/render_view_impl.cc ('k') | trunk/src/content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698