| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 } | 61 } |
| 62 | 62 |
| 63 gfx::NativeViewId TestRenderWidgetHostView::GetNativeViewId() const { | 63 gfx::NativeViewId TestRenderWidgetHostView::GetNativeViewId() const { |
| 64 return 0; | 64 return 0; |
| 65 } | 65 } |
| 66 | 66 |
| 67 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() { | 67 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() { |
| 68 return NULL; | 68 return NULL; |
| 69 } | 69 } |
| 70 | 70 |
| 71 ui::TextInputClient* TestRenderWidgetHostView::GetTextInputClient() { |
| 72 return &text_input_client_; |
| 73 } |
| 74 |
| 71 bool TestRenderWidgetHostView::HasFocus() const { | 75 bool TestRenderWidgetHostView::HasFocus() const { |
| 72 return true; | 76 return true; |
| 73 } | 77 } |
| 74 | 78 |
| 75 bool TestRenderWidgetHostView::IsSurfaceAvailableForCopy() const { | 79 bool TestRenderWidgetHostView::IsSurfaceAvailableForCopy() const { |
| 76 return true; | 80 return true; |
| 77 } | 81 } |
| 78 | 82 |
| 79 void TestRenderWidgetHostView::Show() { | 83 void TestRenderWidgetHostView::Show() { |
| 80 is_showing_ = true; | 84 is_showing_ = true; |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 389 |
| 386 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 390 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 387 return static_cast<TestRenderFrameHost*>(main_rfh()); | 391 return static_cast<TestRenderFrameHost*>(main_rfh()); |
| 388 } | 392 } |
| 389 | 393 |
| 390 TestWebContents* RenderViewHostImplTestHarness::contents() { | 394 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 391 return static_cast<TestWebContents*>(web_contents()); | 395 return static_cast<TestWebContents*>(web_contents()); |
| 392 } | 396 } |
| 393 | 397 |
| 394 } // namespace content | 398 } // namespace content |
| OLD | NEW |