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

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

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nits Created 4 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
« no previous file with comments | « content/test/test_render_view_host.h ('k') | ui/compositor/test/in_process_context_factory.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) 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 <memory> 7 #include <memory>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 #endif 189 #endif
190 190
191 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { 191 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() {
192 return gfx::Rect(); 192 return gfx::Rect();
193 } 193 }
194 194
195 void TestRenderWidgetHostView::OnSwapCompositorFrame( 195 void TestRenderWidgetHostView::OnSwapCompositorFrame(
196 uint32_t output_surface_id, 196 uint32_t output_surface_id,
197 std::unique_ptr<cc::CompositorFrame> frame) { 197 cc::CompositorFrame frame) {
198 did_swap_compositor_frame_ = true; 198 did_swap_compositor_frame_ = true;
199 } 199 }
200 200
201 bool TestRenderWidgetHostView::LockMouse() { 201 bool TestRenderWidgetHostView::LockMouse() {
202 return false; 202 return false;
203 } 203 }
204 204
205 void TestRenderWidgetHostView::UnlockMouse() { 205 void TestRenderWidgetHostView::UnlockMouse() {
206 } 206 }
207 207
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 328
329 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 329 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
330 return contents()->GetMainFrame(); 330 return contents()->GetMainFrame();
331 } 331 }
332 332
333 TestWebContents* RenderViewHostImplTestHarness::contents() { 333 TestWebContents* RenderViewHostImplTestHarness::contents() {
334 return static_cast<TestWebContents*>(web_contents()); 334 return static_cast<TestWebContents*>(web_contents());
335 } 335 }
336 336
337 } // namespace content 337 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.h ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698