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

Side by Side Diff: content/test/test_render_view_host.cc

Issue 571413002: Declare a new name for CompositingSurface completion callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build issue. Created 6 years, 3 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
« no previous file with comments | « content/test/test_render_view_host.h ('k') | no next file » | 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 #include "content/test/test_render_view_host.h" 5 #include "content/test/test_render_view_host.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
10 #include "content/browser/site_instance_impl.h" 10 #include "content/browser/site_instance_impl.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 void TestRenderWidgetHostView::Destroy() { delete this; } 105 void TestRenderWidgetHostView::Destroy() { delete this; }
106 106
107 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { 107 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const {
108 return gfx::Rect(); 108 return gfx::Rect();
109 } 109 }
110 110
111 void TestRenderWidgetHostView::CopyFromCompositingSurface( 111 void TestRenderWidgetHostView::CopyFromCompositingSurface(
112 const gfx::Rect& src_subrect, 112 const gfx::Rect& src_subrect,
113 const gfx::Size& dst_size, 113 const gfx::Size& dst_size,
114 const base::Callback<void(bool, const SkBitmap&)>& callback, 114 CopyFromCompositingSurfaceCallback& callback,
115 const SkColorType color_type) { 115 const SkColorType color_type) {
116 callback.Run(false, SkBitmap()); 116 callback.Run(false, SkBitmap());
117 } 117 }
118 118
119 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame( 119 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame(
120 const gfx::Rect& src_subrect, 120 const gfx::Rect& src_subrect,
121 const scoped_refptr<media::VideoFrame>& target, 121 const scoped_refptr<media::VideoFrame>& target,
122 const base::Callback<void(bool)>& callback) { 122 const base::Callback<void(bool)>& callback) {
123 callback.Run(false); 123 callback.Run(false);
124 } 124 }
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 394
395 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 395 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
396 return contents()->GetMainFrame(); 396 return contents()->GetMainFrame();
397 } 397 }
398 398
399 TestWebContents* RenderViewHostImplTestHarness::contents() { 399 TestWebContents* RenderViewHostImplTestHarness::contents() {
400 return static_cast<TestWebContents*>(web_contents()); 400 return static_cast<TestWebContents*>(web_contents());
401 } 401 }
402 402
403 } // namespace content 403 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698