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/browser/renderer_host/test_backing_store.h" | 5 #include "content/browser/renderer_host/test_backing_store.h" |
6 #include "content/browser/renderer_host/test_render_view_host.h" | 6 #include "content/browser/renderer_host/test_render_view_host.h" |
7 #include "content/browser/site_instance_impl.h" | 7 #include "content/browser/site_instance_impl.h" |
8 #include "content/browser/tab_contents/navigation_controller_impl.h" | 8 #include "content/browser/tab_contents/navigation_controller_impl.h" |
9 #include "content/browser/tab_contents/test_web_contents.h" | 9 #include "content/browser/tab_contents/test_web_contents.h" |
10 #include "content/common/dom_storage_common.h" | 10 #include "content/common/dom_storage_common.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } | 103 } |
104 | 104 |
105 void TestRenderWidgetHostView::AcceleratedSurfacePostSubBuffer( | 105 void TestRenderWidgetHostView::AcceleratedSurfacePostSubBuffer( |
106 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 106 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
107 int gpu_host_id) { | 107 int gpu_host_id) { |
108 } | 108 } |
109 | 109 |
110 void TestRenderWidgetHostView::AcceleratedSurfaceSuspend() { | 110 void TestRenderWidgetHostView::AcceleratedSurfaceSuspend() { |
111 } | 111 } |
112 | 112 |
| 113 #if defined(USE_AURA) |
| 114 |
| 115 bool TestRenderWidgetHostView::AcceleratedSurfaceRelease(uint64 surface_id) { |
| 116 return true; |
| 117 } |
| 118 |
| 119 #endif |
| 120 |
113 #if defined(OS_MACOSX) | 121 #if defined(OS_MACOSX) |
114 | 122 |
115 gfx::Rect TestRenderWidgetHostView::GetViewCocoaBounds() const { | 123 gfx::Rect TestRenderWidgetHostView::GetViewCocoaBounds() const { |
116 return gfx::Rect(); | 124 return gfx::Rect(); |
117 } | 125 } |
118 | 126 |
119 void TestRenderWidgetHostView::SetActive(bool active) { | 127 void TestRenderWidgetHostView::SetActive(bool active) { |
120 // <viettrungluu@gmail.com>: Do I need to do anything here? | 128 // <viettrungluu@gmail.com>: Do I need to do anything here? |
121 } | 129 } |
122 | 130 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 319 |
312 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 320 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
313 return static_cast<TestRenderViewHost*>(active_rvh()); | 321 return static_cast<TestRenderViewHost*>(active_rvh()); |
314 } | 322 } |
315 | 323 |
316 TestWebContents* RenderViewHostImplTestHarness::contents() { | 324 TestWebContents* RenderViewHostImplTestHarness::contents() { |
317 return static_cast<TestWebContents*>(web_contents()); | 325 return static_cast<TestWebContents*>(web_contents()); |
318 } | 326 } |
319 | 327 |
320 } // namespace content | 328 } // namespace content |
OLD | NEW |