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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 } | 61 } |
62 | 62 |
63 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() { | 63 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() { |
64 return NULL; | 64 return NULL; |
65 } | 65 } |
66 | 66 |
67 bool TestRenderWidgetHostView::HasFocus() const { | 67 bool TestRenderWidgetHostView::HasFocus() const { |
68 return true; | 68 return true; |
69 } | 69 } |
70 | 70 |
| 71 bool TestRenderWidgetHostView::HasSurface() const { |
| 72 return false; |
| 73 } |
| 74 |
71 void TestRenderWidgetHostView::Show() { | 75 void TestRenderWidgetHostView::Show() { |
72 is_showing_ = true; | 76 is_showing_ = true; |
73 } | 77 } |
74 | 78 |
75 void TestRenderWidgetHostView::Hide() { | 79 void TestRenderWidgetHostView::Hide() { |
76 is_showing_ = false; | 80 is_showing_ = false; |
77 } | 81 } |
78 | 82 |
79 bool TestRenderWidgetHostView::IsShowing() { | 83 bool TestRenderWidgetHostView::IsShowing() { |
80 return is_showing_; | 84 return is_showing_; |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 330 |
327 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 331 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
328 return static_cast<TestRenderViewHost*>(active_rvh()); | 332 return static_cast<TestRenderViewHost*>(active_rvh()); |
329 } | 333 } |
330 | 334 |
331 TestWebContents* RenderViewHostImplTestHarness::contents() { | 335 TestWebContents* RenderViewHostImplTestHarness::contents() { |
332 return static_cast<TestWebContents*>(web_contents()); | 336 return static_cast<TestWebContents*>(web_contents()); |
333 } | 337 } |
334 | 338 |
335 } // namespace content | 339 } // namespace content |
OLD | NEW |