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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 } | 62 } |
63 | 63 |
64 gfx::NativeViewId TestRenderWidgetHostView::GetNativeViewId() const { | 64 gfx::NativeViewId TestRenderWidgetHostView::GetNativeViewId() const { |
65 return 0; | 65 return 0; |
66 } | 66 } |
67 | 67 |
68 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() { | 68 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() { |
69 return NULL; | 69 return NULL; |
70 } | 70 } |
71 | 71 |
| 72 ui::TextInputClient* TestRenderWidgetHostView::GetTextInputClient() { |
| 73 return &text_input_client_; |
| 74 } |
| 75 |
72 bool TestRenderWidgetHostView::HasFocus() const { | 76 bool TestRenderWidgetHostView::HasFocus() const { |
73 return true; | 77 return true; |
74 } | 78 } |
75 | 79 |
76 bool TestRenderWidgetHostView::IsSurfaceAvailableForCopy() const { | 80 bool TestRenderWidgetHostView::IsSurfaceAvailableForCopy() const { |
77 return true; | 81 return true; |
78 } | 82 } |
79 | 83 |
80 void TestRenderWidgetHostView::Show() { | 84 void TestRenderWidgetHostView::Show() { |
81 is_showing_ = true; | 85 is_showing_ = true; |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 404 |
401 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 405 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
402 return static_cast<TestRenderFrameHost*>(main_rfh()); | 406 return static_cast<TestRenderFrameHost*>(main_rfh()); |
403 } | 407 } |
404 | 408 |
405 TestWebContents* RenderViewHostImplTestHarness::contents() { | 409 TestWebContents* RenderViewHostImplTestHarness::contents() { |
406 return static_cast<TestWebContents*>(web_contents()); | 410 return static_cast<TestWebContents*>(web_contents()); |
407 } | 411 } |
408 | 412 |
409 } // namespace content | 413 } // namespace content |
OLD | NEW |