OLD | NEW |
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
125 | 125 |
126 bool TestRenderWidgetHostView::CanCopyToVideoFrame() const { | 126 bool TestRenderWidgetHostView::CanCopyToVideoFrame() const { |
127 return false; | 127 return false; |
128 } | 128 } |
129 | 129 |
130 void TestRenderWidgetHostView::AcceleratedSurfaceInitialized(int host_id, | |
131 int route_id) { | |
132 } | |
133 | |
134 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( | |
135 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | |
136 int gpu_host_id) { | |
137 } | |
138 | |
139 void TestRenderWidgetHostView::AcceleratedSurfacePostSubBuffer( | |
140 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | |
141 int gpu_host_id) { | |
142 } | |
143 | |
144 void TestRenderWidgetHostView::AcceleratedSurfaceSuspend() { | |
145 } | |
146 | |
147 bool TestRenderWidgetHostView::HasAcceleratedSurface( | 130 bool TestRenderWidgetHostView::HasAcceleratedSurface( |
148 const gfx::Size& desired_size) { | 131 const gfx::Size& desired_size) { |
149 return false; | 132 return false; |
150 } | 133 } |
151 | 134 |
152 #if defined(OS_MACOSX) | 135 #if defined(OS_MACOSX) |
153 | 136 |
154 void TestRenderWidgetHostView::SetActive(bool active) { | 137 void TestRenderWidgetHostView::SetActive(bool active) { |
155 // <viettrungluu@gmail.com>: Do I need to do anything here? | 138 // <viettrungluu@gmail.com>: Do I need to do anything here? |
156 } | 139 } |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 | 377 |
395 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 378 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
396 return contents()->GetMainFrame(); | 379 return contents()->GetMainFrame(); |
397 } | 380 } |
398 | 381 |
399 TestWebContents* RenderViewHostImplTestHarness::contents() { | 382 TestWebContents* RenderViewHostImplTestHarness::contents() { |
400 return static_cast<TestWebContents*>(web_contents()); | 383 return static_cast<TestWebContents*>(web_contents()); |
401 } | 384 } |
402 | 385 |
403 } // namespace content | 386 } // namespace content |
OLD | NEW |