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

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

Issue 10895: Add Terminate() to the Process object, have RenderProcessHost use this to avo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_RENDERER_RENDER_WIDGET_H__ 5 #ifndef CHROME_RENDERER_RENDER_WIDGET_H__
6 #define CHROME_RENDERER_RENDER_WIDGET_H__ 6 #define CHROME_RENDERER_RENDER_WIDGET_H__
7 7
8 #include <vector> 8 #include <vector>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gfx/point.h" 10 #include "base/gfx/point.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // Initializes this view with the given opener. CompleteInit must be called 94 // Initializes this view with the given opener. CompleteInit must be called
95 // later. 95 // later.
96 void Init(int32 opener_id); 96 void Init(int32 opener_id);
97 97
98 // Finishes creation of a pending view started with Init. 98 // Finishes creation of a pending view started with Init.
99 void CompleteInit(HWND parent); 99 void CompleteInit(HWND parent);
100 100
101 // Paints the given rectangular region of the WebWidget into paint_buf (a 101 // Paints the given rectangular region of the WebWidget into paint_buf (a
102 // shared memory segment returned by AllocPaintBuf). The caller must ensure 102 // shared memory segment returned by AllocPaintBuf). The caller must ensure
103 // that the given rect fits within the bounds of the WebWidget. 103 // that the given rect fits within the bounds of the WebWidget.
104 void PaintRect(const gfx::Rect& rect, SharedMemory* paint_buf); 104 void PaintRect(const gfx::Rect& rect, base::SharedMemory* paint_buf);
105 105
106 // Get the size of the paint buffer for the given rectangle, rounding up to 106 // Get the size of the paint buffer for the given rectangle, rounding up to
107 // the allocation granularity of the system. 107 // the allocation granularity of the system.
108 size_t GetPaintBufSize(const gfx::Rect& rect); 108 size_t GetPaintBufSize(const gfx::Rect& rect);
109 109
110 void DoDeferredPaint(); 110 void DoDeferredPaint();
111 void DoDeferredScroll(); 111 void DoDeferredScroll();
112 112
113 // This method is called immediately after PaintRect but before the 113 // This method is called immediately after PaintRect but before the
114 // corresponding paint or scroll message is send to the widget host. 114 // corresponding paint or scroll message is send to the widget host.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 HWND host_window_; 197 HWND host_window_;
198 198
199 // We store the current cursor object so we can avoid spamming SetCursor 199 // We store the current cursor object so we can avoid spamming SetCursor
200 // messages. 200 // messages.
201 WebCursor current_cursor_; 201 WebCursor current_cursor_;
202 // The size of the RenderWidget. 202 // The size of the RenderWidget.
203 gfx::Size size_; 203 gfx::Size size_;
204 204
205 // Shared memory handles that are currently in use to transfer an image to 205 // Shared memory handles that are currently in use to transfer an image to
206 // the browser. 206 // the browser.
207 SharedMemory* current_paint_buf_; 207 base::SharedMemory* current_paint_buf_;
208 SharedMemory* current_scroll_buf_; 208 base::SharedMemory* current_scroll_buf_;
209 209
210 // The smallest bounding rectangle that needs to be re-painted. This is non- 210 // The smallest bounding rectangle that needs to be re-painted. This is non-
211 // empty if a paint event is pending. 211 // empty if a paint event is pending.
212 gfx::Rect paint_rect_; 212 gfx::Rect paint_rect_;
213 213
214 // The clip rect for the pending scroll event. This is non-empty if a 214 // The clip rect for the pending scroll event. This is non-empty if a
215 // scroll event is pending. 215 // scroll event is pending.
216 gfx::Rect scroll_rect_; 216 gfx::Rect scroll_rect_;
217 217
218 // The scroll delta for a pending scroll event. 218 // The scroll delta for a pending scroll event.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Whether the window for this RenderWidget should be focused when shown. 266 // Whether the window for this RenderWidget should be focused when shown.
267 bool focus_on_show_; 267 bool focus_on_show_;
268 268
269 // Holds all the needed plugin window moves for a scroll. 269 // Holds all the needed plugin window moves for a scroll.
270 std::vector<WebPluginGeometry> plugin_window_moves_; 270 std::vector<WebPluginGeometry> plugin_window_moves_;
271 271
272 DISALLOW_EVIL_CONSTRUCTORS(RenderWidget); 272 DISALLOW_EVIL_CONSTRUCTORS(RenderWidget);
273 }; 273 };
274 274
275 #endif // CHROME_RENDERER_RENDER_WIDGET_H__ 275 #endif // CHROME_RENDERER_RENDER_WIDGET_H__
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698