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

Side by Side Diff: content/browser/renderer_host/render_widget_host.h

Issue 8344061: content: Split off ChromeTabContentsViewGtk from TabContentsViewGtk. This new (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix clang Created 9 years, 1 month 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // RenderWidget is being destroyed or the render process crashed. You should 151 // RenderWidget is being destroyed or the render process crashed. You should
152 // never cache this pointer since it can become NULL if the renderer crashes, 152 // never cache this pointer since it can become NULL if the renderer crashes,
153 // instead you should always ask for it using the accessor. 153 // instead you should always ask for it using the accessor.
154 void SetView(RenderWidgetHostView* view); 154 void SetView(RenderWidgetHostView* view);
155 RenderWidgetHostView* view() const { return view_; } 155 RenderWidgetHostView* view() const { return view_; }
156 156
157 RenderProcessHost* process() const { return process_; } 157 RenderProcessHost* process() const { return process_; }
158 int routing_id() const { return routing_id_; } 158 int routing_id() const { return routing_id_; }
159 bool renderer_accessible() { return renderer_accessible_; } 159 bool renderer_accessible() { return renderer_accessible_; }
160 160
161 // Returns whether we have a valid size. 161 bool empty() const { return current_size_.IsEmpty(); }
162 bool empty() const {
163 return current_size_.IsEmpty();
164 }
165 162
166 // Returns the property bag for this widget, where callers can add extra data 163 // Returns the property bag for this widget, where callers can add extra data
167 // they may wish to associate with it. Returns a pointer rather than a 164 // they may wish to associate with it. Returns a pointer rather than a
168 // reference since the PropertyAccessors expect this. 165 // reference since the PropertyAccessors expect this.
169 const PropertyBag* property_bag() const { return &property_bag_; } 166 const PropertyBag* property_bag() const { return &property_bag_; }
170 PropertyBag* property_bag() { return &property_bag_; } 167 PropertyBag* property_bag() { return &property_bag_; }
171 168
172 // Called when a renderer object already been created for this host, and we 169 // Called when a renderer object already been created for this host, and we
173 // just need to be attached to it. Used for window.open, <select> dropdown 170 // just need to be attached to it. Used for window.open, <select> dropdown
174 // menus, and other times when the renderer initiates creating an object. 171 // menus, and other times when the renderer initiates creating an object.
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 gfx::Point last_scroll_offset_; 769 gfx::Point last_scroll_offset_;
773 770
774 bool pending_mouse_lock_request_; 771 bool pending_mouse_lock_request_;
775 772
776 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; 773 base::WeakPtrFactory<RenderWidgetHost> weak_factory_;
777 774
778 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 775 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
779 }; 776 };
780 777
781 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 778 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698