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

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

Issue 7136001: GPU compositing surface handle is no longer sent to renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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) 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 // routing_id can be MSG_ROUTING_NONE, in which case the next available 138 // routing_id can be MSG_ROUTING_NONE, in which case the next available
139 // routing id is taken from the RenderProcessHost. 139 // routing id is taken from the RenderProcessHost.
140 RenderWidgetHost(RenderProcessHost* process, int routing_id); 140 RenderWidgetHost(RenderProcessHost* process, int routing_id);
141 virtual ~RenderWidgetHost(); 141 virtual ~RenderWidgetHost();
142 142
143 // Gets/Sets the View of this RenderWidgetHost. Can be NULL, e.g. if the 143 // Gets/Sets the View of this RenderWidgetHost. Can be NULL, e.g. if the
144 // RenderWidget is being destroyed or the render process crashed. You should 144 // RenderWidget is being destroyed or the render process crashed. You should
145 // never cache this pointer since it can become NULL if the renderer crashes, 145 // never cache this pointer since it can become NULL if the renderer crashes,
146 // instead you should always ask for it using the accessor. 146 // instead you should always ask for it using the accessor.
147 void set_view(RenderWidgetHostView* view) { view_ = view; } 147 void set_view(RenderWidgetHostView* view);
jam 2011/06/21 21:49:03 nit: if you're doing work in this function, then i
148 RenderWidgetHostView* view() const { return view_; } 148 RenderWidgetHostView* view() const { return view_; }
149 149
150 RenderProcessHost* process() const { return process_; } 150 RenderProcessHost* process() const { return process_; }
151 int routing_id() const { return routing_id_; } 151 int routing_id() const { return routing_id_; }
152 bool renderer_accessible() { return renderer_accessible_; } 152 bool renderer_accessible() { return renderer_accessible_; }
153 153
154 // Returns the property bag for this widget, where callers can add extra data 154 // Returns the property bag for this widget, where callers can add extra data
155 // they may wish to associate with it. Returns a pointer rather than a 155 // they may wish to associate with it. Returns a pointer rather than a
156 // reference since the PropertyAccessors expect this. 156 // reference since the PropertyAccessors expect this.
157 const PropertyBag* property_bag() const { return &property_bag_; } 157 const PropertyBag* property_bag() const { return &property_bag_; }
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 667
668 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; 668 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_;
669 669
670 // The last scroll offset of the render widget. 670 // The last scroll offset of the render widget.
671 gfx::Point last_scroll_offset_; 671 gfx::Point last_scroll_offset_;
672 672
673 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 673 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
674 }; 674 };
675 675
676 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 676 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698