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

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

Issue 1303773002: Give the main frame a RenderWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix all the tests. Probably. Created 5 years, 2 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
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 const blink::WebScreenInfo& screen_info); 111 const blink::WebScreenInfo& screen_info);
112 112
113 // Creates a new RenderWidget that will be attached to a RenderFrame. 113 // Creates a new RenderWidget that will be attached to a RenderFrame.
114 static RenderWidget* CreateForFrame(int routing_id, 114 static RenderWidget* CreateForFrame(int routing_id,
115 bool hidden, 115 bool hidden,
116 const blink::WebScreenInfo& screen_info, 116 const blink::WebScreenInfo& screen_info,
117 CompositorDependencies* compositor_deps, 117 CompositorDependencies* compositor_deps,
118 blink::WebLocalFrame* frame); 118 blink::WebLocalFrame* frame);
119 119
120 // Closes a RenderWidget that was created by |CreateForFrame|. 120 // Closes a RenderWidget that was created by |CreateForFrame|.
121 void CloseForFrame(); 121 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget.
122 // https://crbug.com/545684
123 virtual void CloseForFrame();
122 124
123 int32 routing_id() const { return routing_id_; } 125 int32 routing_id() const { return routing_id_; }
124 CompositorDependencies* compositor_deps() const { return compositor_deps_; } 126 CompositorDependencies* compositor_deps() const { return compositor_deps_; }
125 blink::WebWidget* webwidget() const { return webwidget_; } 127 blink::WebWidget* webwidget() const { return webwidget_; }
126 gfx::Size size() const { return size_; } 128 gfx::Size size() const { return size_; }
127 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } 129 bool is_fullscreen_granted() const { return is_fullscreen_granted_; }
128 blink::WebDisplayMode display_mode() const { return display_mode_; } 130 blink::WebDisplayMode display_mode() const { return display_mode_; }
129 bool is_hidden() const { return is_hidden_; } 131 bool is_hidden() const { return is_hidden_; }
130 bool handling_input_event() const { return handling_input_event_; } 132 bool handling_input_event() const { return handling_input_event_; }
131 // Temporary for debugging purposes... 133 // Temporary for debugging purposes...
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 ui::MenuSourceType context_menu_source_type_; 790 ui::MenuSourceType context_menu_source_type_;
789 bool has_host_context_menu_location_; 791 bool has_host_context_menu_location_;
790 gfx::Point host_context_menu_location_; 792 gfx::Point host_context_menu_location_;
791 793
792 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 794 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
793 }; 795 };
794 796
795 } // namespace content 797 } // namespace content
796 798
797 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 799 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698