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

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

Issue 1365563002: Make channel preemption not require view contexts for hookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wakeup_gpu
Patch Set: rebase Created 5 years, 2 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/gfx/native_widget_types.h » ('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 "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 9 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
10 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 10 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { 185 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() {
186 return gfx::Rect(); 186 return gfx::Rect();
187 } 187 }
188 188
189 void TestRenderWidgetHostView::OnSwapCompositorFrame( 189 void TestRenderWidgetHostView::OnSwapCompositorFrame(
190 uint32 output_surface_id, 190 uint32 output_surface_id,
191 scoped_ptr<cc::CompositorFrame> frame) { 191 scoped_ptr<cc::CompositorFrame> frame) {
192 did_swap_compositor_frame_ = true; 192 did_swap_compositor_frame_ = true;
193 } 193 }
194 194
195
196 gfx::GLSurfaceHandle TestRenderWidgetHostView::GetCompositingSurface() {
197 return gfx::GLSurfaceHandle();
198 }
199
200 bool TestRenderWidgetHostView::LockMouse() { 195 bool TestRenderWidgetHostView::LockMouse() {
201 return false; 196 return false;
202 } 197 }
203 198
204 void TestRenderWidgetHostView::UnlockMouse() { 199 void TestRenderWidgetHostView::UnlockMouse() {
205 } 200 }
206 201
207 #if defined(OS_WIN) 202 #if defined(OS_WIN)
208 void TestRenderWidgetHostView::SetParentNativeViewAccessible( 203 void TestRenderWidgetHostView::SetParentNativeViewAccessible(
209 gfx::NativeViewAccessible accessible_parent) { 204 gfx::NativeViewAccessible accessible_parent) {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 333
339 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 334 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
340 return contents()->GetMainFrame(); 335 return contents()->GetMainFrame();
341 } 336 }
342 337
343 TestWebContents* RenderViewHostImplTestHarness::contents() { 338 TestWebContents* RenderViewHostImplTestHarness::contents() {
344 return static_cast<TestWebContents*>(web_contents()); 339 return static_cast<TestWebContents*>(web_contents());
345 } 340 }
346 341
347 } // namespace content 342 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.h ('k') | ui/gfx/native_widget_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698