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

Unified Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 8819005: Get rid of the last view_messages.h include in chrome, other than tab_contents_views_mac.mm and r... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/test_render_view_host.cc
===================================================================
--- content/browser/renderer_host/test_render_view_host.cc (revision 113050)
+++ content/browser/renderer_host/test_render_view_host.cc (working copy)
@@ -40,6 +40,20 @@
params->content_state = webkit_glue::CreateHistoryStateForURL(GURL(url));
}
+void SimulateUpdateRect(RenderWidgetHost* widget,
+ TransportDIB::Id bitmap,
+ const gfx::Rect& rect) {
+ ViewHostMsg_UpdateRect_Params params;
+ params.bitmap_rect = rect;
+ params.view_size = params.bitmap_rect.size();
+ params.copy_rects.push_back(params.bitmap_rect);
+ params.flags = 0;
+ params.bitmap = bitmap;
+
+ ViewHostMsg_UpdateRect msg(1, params);
+ widget->OnMessageReceived(msg);
+}
+
TestRenderViewHost::TestRenderViewHost(SiteInstance* instance,
RenderViewHostDelegate* delegate,
int routing_id)
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698