Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: content/test/test_render_view_host.cc

Issue 173803002: Redesigns the text input focus handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/test/test_render_view_host.h ('k') | ui/base/ime/ime.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.h ('k') | ui/base/ime/ime.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698