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

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

Issue 21039: Revert my change to get the tree green. Not sure why the tests became flaky.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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) 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gfx/size.h" 10 #include "base/gfx/size.h"
11 #include "base/timer.h" 11 #include "base/timer.h"
12 #include "chrome/common/bitmap_wire_data.h" 12 #include "chrome/common/bitmap_wire_data.h"
13 #include "chrome/common/ipc_channel.h" 13 #include "chrome/common/ipc_channel.h"
14 #include "chrome/common/render_messages.h"
14 #include "testing/gtest/include/gtest/gtest_prod.h" 15 #include "testing/gtest/include/gtest/gtest_prod.h"
15 16
16 namespace gfx { 17 namespace gfx {
17 class Rect; 18 class Rect;
18 } 19 }
19 20
20 class BackingStore; 21 class BackingStore;
21 class PaintObserver; 22 class PaintObserver;
22 class RenderProcessHost; 23 class RenderProcessHost;
23 class RenderWidgetHostView; 24 class RenderWidgetHostView;
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 void OnMsgRendererReady(); 248 void OnMsgRendererReady();
248 void OnMsgRendererGone(); 249 void OnMsgRendererGone();
249 void OnMsgClose(); 250 void OnMsgClose();
250 void OnMsgRequestMove(const gfx::Rect& pos); 251 void OnMsgRequestMove(const gfx::Rect& pos);
251 void OnMsgPaintRect(const ViewHostMsg_PaintRect_Params& params); 252 void OnMsgPaintRect(const ViewHostMsg_PaintRect_Params& params);
252 void OnMsgScrollRect(const ViewHostMsg_ScrollRect_Params& params); 253 void OnMsgScrollRect(const ViewHostMsg_ScrollRect_Params& params);
253 void OnMsgInputEventAck(const IPC::Message& message); 254 void OnMsgInputEventAck(const IPC::Message& message);
254 void OnMsgFocus(); 255 void OnMsgFocus();
255 void OnMsgBlur(); 256 void OnMsgBlur();
256 void OnMsgSetCursor(const WebCursor& cursor); 257 void OnMsgSetCursor(const WebCursor& cursor);
257 // Using int instead of ViewHostMsg_ImeControl for control's type to avoid 258 void OnMsgImeUpdateStatus(ViewHostMsg_ImeControl control,
258 // having to bring in render_messages.h in a header file. 259 const gfx::Rect& caret_rect);
259 void OnMsgImeUpdateStatus(int control, const gfx::Rect& caret_rect);
260 260
261 // Paints the given bitmap to the current backing store at the given location. 261 // Paints the given bitmap to the current backing store at the given location.
262 void PaintBackingStoreRect(BitmapWireData bitmap, 262 void PaintBackingStoreRect(BitmapWireData bitmap,
263 const gfx::Rect& bitmap_rect, 263 const gfx::Rect& bitmap_rect,
264 const gfx::Size& view_size); 264 const gfx::Size& view_size);
265 265
266 // Scrolls the given |clip_rect| in the backing by the given dx/dy amount. The 266 // Scrolls the given |clip_rect| in the backing by the given dx/dy amount. The
267 // |bitmap| and its corresponding location |bitmap_rect| in the backing store 267 // |bitmap| and its corresponding location |bitmap_rect| in the backing store
268 // is the newly painted pixels by the renderer. 268 // is the newly painted pixels by the renderer.
269 void ScrollBackingStoreRect(BitmapWireData bitmap, 269 void ScrollBackingStoreRect(BitmapWireData bitmap,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 bool view_being_painted_; 340 bool view_being_painted_;
341 341
342 // Used for UMA histogram logging to measure the time for a repaint view 342 // Used for UMA histogram logging to measure the time for a repaint view
343 // operation to finish. 343 // operation to finish.
344 base::TimeTicks repaint_start_time_; 344 base::TimeTicks repaint_start_time_;
345 345
346 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 346 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
347 }; 347 };
348 348
349 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 349 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_delegate.h ('k') | chrome/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698