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

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

Issue 2288313002: Return the WebViewFrameWidget in RenderWidget::webwidget() if there (Closed)
Patch Set: avoid virtual call Created 4 years, 3 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 // Closes a RenderWidget that was created by |CreateForFrame|. 148 // Closes a RenderWidget that was created by |CreateForFrame|.
149 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget. 149 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget.
150 // https://crbug.com/545684 150 // https://crbug.com/545684
151 virtual void CloseForFrame(); 151 virtual void CloseForFrame();
152 152
153 int32_t routing_id() const { return routing_id_; } 153 int32_t routing_id() const { return routing_id_; }
154 void SetRoutingID(int32_t routing_id); 154 void SetRoutingID(int32_t routing_id);
155 155
156 CompositorDependencies* compositor_deps() const { return compositor_deps_; } 156 CompositorDependencies* compositor_deps() const { return compositor_deps_; }
157 blink::WebWidget* webwidget() const { return webwidget_; } 157 virtual blink::WebWidget* GetWebWidget() const;
158 const gfx::Size& size() const { return size_; } 158 const gfx::Size& size() const { return size_; }
159 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } 159 bool is_fullscreen_granted() const { return is_fullscreen_granted_; }
160 blink::WebDisplayMode display_mode() const { return display_mode_; } 160 blink::WebDisplayMode display_mode() const { return display_mode_; }
161 bool is_hidden() const { return is_hidden_; } 161 bool is_hidden() const { return is_hidden_; }
162 // Temporary for debugging purposes... 162 // Temporary for debugging purposes...
163 bool closing() const { return closing_; } 163 bool closing() const { return closing_; }
164 bool is_swapped_out() { return is_swapped_out_; } 164 bool is_swapped_out() { return is_swapped_out_; }
165 bool has_host_context_menu_location() { 165 bool has_host_context_menu_location() {
166 return has_host_context_menu_location_; 166 return has_host_context_menu_location_;
167 } 167 }
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 // This reference is set by the RenderFrame and is used to query the IME- 809 // This reference is set by the RenderFrame and is used to query the IME-
810 // related state from the plugin to later send to the browser. 810 // related state from the plugin to later send to the browser.
811 PepperPluginInstanceImpl* focused_pepper_plugin_; 811 PepperPluginInstanceImpl* focused_pepper_plugin_;
812 812
813 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 813 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
814 }; 814 };
815 815
816 } // namespace content 816 } // namespace content
817 817
818 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 818 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698