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/web_contents/navigation_controller_impl.h" | 8 #include "content/browser/web_contents/navigation_controller_impl.h" |
9 #include "content/browser/web_contents/test_web_contents.h" | 9 #include "content/browser/web_contents/test_web_contents.h" |
10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 } | 62 } |
63 | 63 |
64 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() { | 64 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() { |
65 return NULL; | 65 return NULL; |
66 } | 66 } |
67 | 67 |
68 bool TestRenderWidgetHostView::HasFocus() const { | 68 bool TestRenderWidgetHostView::HasFocus() const { |
69 return true; | 69 return true; |
70 } | 70 } |
71 | 71 |
| 72 bool TestRenderWidgetHostView::IsSurfaceAvailableForCopy() const { |
| 73 return true; |
| 74 } |
| 75 |
72 void TestRenderWidgetHostView::Show() { | 76 void TestRenderWidgetHostView::Show() { |
73 is_showing_ = true; | 77 is_showing_ = true; |
74 } | 78 } |
75 | 79 |
76 void TestRenderWidgetHostView::Hide() { | 80 void TestRenderWidgetHostView::Hide() { |
77 is_showing_ = false; | 81 is_showing_ = false; |
78 } | 82 } |
79 | 83 |
80 bool TestRenderWidgetHostView::IsShowing() { | 84 bool TestRenderWidgetHostView::IsShowing() { |
81 return is_showing_; | 85 return is_showing_; |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 | 334 |
331 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 335 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
332 return static_cast<TestRenderViewHost*>(active_rvh()); | 336 return static_cast<TestRenderViewHost*>(active_rvh()); |
333 } | 337 } |
334 | 338 |
335 TestWebContents* RenderViewHostImplTestHarness::contents() { | 339 TestWebContents* RenderViewHostImplTestHarness::contents() { |
336 return static_cast<TestWebContents*>(web_contents()); | 340 return static_cast<TestWebContents*>(web_contents()); |
337 } | 341 } |
338 | 342 |
339 } // namespace content | 343 } // namespace content |
OLD | NEW |