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

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

Issue 119200: Fixes a flash plugin hang caused by opening google finance ticker symbols in ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/native_widget_types.h" 10 #include "base/gfx/native_widget_types.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Paints the given rectangular region of the WebWidget into canvas (a 116 // Paints the given rectangular region of the WebWidget into canvas (a
117 // shared memory segment returned by AllocPaintBuf on Windows). The caller 117 // shared memory segment returned by AllocPaintBuf on Windows). The caller
118 // must ensure that the given rect fits within the bounds of the WebWidget. 118 // must ensure that the given rect fits within the bounds of the WebWidget.
119 void PaintRect(const gfx::Rect& rect, skia::PlatformCanvas* canvas); 119 void PaintRect(const gfx::Rect& rect, skia::PlatformCanvas* canvas);
120 120
121 void DoDeferredPaint(); 121 void DoDeferredPaint();
122 void DoDeferredScroll(); 122 void DoDeferredScroll();
123 void DoDeferredClose(); 123 void DoDeferredClose();
124 void DoDeferredSetWindowRect(const WebKit::WebRect& pos); 124 void DoDeferredSetWindowRect(const WebKit::WebRect& pos);
125 125
126 // This method is called immediately after PaintRect but before the
127 // corresponding paint or scroll message is send to the widget host.
128 virtual void DidPaint() {}
129
130 // Set the background of the render widget to a bitmap. The bitmap will be 126 // Set the background of the render widget to a bitmap. The bitmap will be
131 // tiled in both directions if it isn't big enough to fill the area. This is 127 // tiled in both directions if it isn't big enough to fill the area. This is
132 // mainly intended to be used in conjuction with WebView::SetIsTransparent(). 128 // mainly intended to be used in conjuction with WebView::SetIsTransparent().
133 virtual void SetBackground(const SkBitmap& bitmap); 129 virtual void SetBackground(const SkBitmap& bitmap);
134 130
135 // RenderWidget IPC message handlers 131 // RenderWidget IPC message handlers
136 void OnClose(); 132 void OnClose();
137 void OnCreatingNewAck(gfx::NativeViewId parent); 133 void OnCreatingNewAck(gfx::NativeViewId parent);
138 virtual void OnResize(const gfx::Size& new_size, 134 virtual void OnResize(const gfx::Size& new_size,
139 const gfx::Rect& resizer_rect); 135 const gfx::Rect& resizer_rect);
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 290
295 // While we are waiting for the browser to update window sizes, 291 // While we are waiting for the browser to update window sizes,
296 // we track the pending size temporarily. 292 // we track the pending size temporarily.
297 int pending_window_rect_count_; 293 int pending_window_rect_count_;
298 WebKit::WebRect pending_window_rect_; 294 WebKit::WebRect pending_window_rect_;
299 295
300 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 296 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
301 }; 297 };
302 298
303 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ 299 #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