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

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

Issue 9609008: Implemented Browser Plugin (NOT FOR REVIEW) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Initial plumbing of a guest flag to RenderViewImpl (cleaner than early prototype) Created 8 years, 9 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | 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) 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 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <vector> 10 #include <vector>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // Initializes this view with the given opener. CompleteInit must be called 170 // Initializes this view with the given opener. CompleteInit must be called
171 // later. 171 // later.
172 void Init(int32 opener_id); 172 void Init(int32 opener_id);
173 173
174 // Called by Init and subclasses to perform initialization. 174 // Called by Init and subclasses to perform initialization.
175 void DoInit(int32 opener_id, 175 void DoInit(int32 opener_id,
176 WebKit::WebWidget* web_widget, 176 WebKit::WebWidget* web_widget,
177 IPC::SyncMessage* create_widget_message); 177 IPC::SyncMessage* create_widget_message);
178 178
179 // Finishes creation of a pending view started with Init. 179 // Finishes creation of a pending view started with Init.
180 void CompleteInit(gfx::NativeViewId parent); 180 void CompleteInit(gfx::NativeViewId parent, bool guest);
181 181
182 // Sets whether this RenderWidget has been swapped out to be displayed by 182 // Sets whether this RenderWidget has been swapped out to be displayed by
183 // a RenderWidget in a different process. If so, no new IPC messages will be 183 // a RenderWidget in a different process. If so, no new IPC messages will be
184 // sent (only ACKs) and the process is free to exit when there are no other 184 // sent (only ACKs) and the process is free to exit when there are no other
185 // active RenderWidgets. 185 // active RenderWidgets.
186 void SetSwappedOut(bool is_swapped_out); 186 void SetSwappedOut(bool is_swapped_out);
187 187
188 // Paints the given rectangular region of the WebWidget into canvas (a 188 // Paints the given rectangular region of the WebWidget into canvas (a
189 // shared memory segment returned by AllocPaintBuf on Windows). The caller 189 // shared memory segment returned by AllocPaintBuf on Windows). The caller
190 // must ensure that the given rect fits within the bounds of the WebWidget. 190 // must ensure that the given rect fits within the bounds of the WebWidget.
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 // Set to true if we should invert all pixels. 515 // Set to true if we should invert all pixels.
516 bool invert_; 516 bool invert_;
517 517
518 // The Skia paint object for inverting. 518 // The Skia paint object for inverting.
519 scoped_ptr<SkPaint> invert_paint_; 519 scoped_ptr<SkPaint> invert_paint_;
520 520
521 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 521 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
522 }; 522 };
523 523
524 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 524 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698