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

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

Issue 326403002: Merge ViewHostMsg_TextInputTypeChanged and ViewHostMsg_TextInputStateChanged into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed. Created 6 years, 6 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
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | 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 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "ui/gfx/vector2d_f.h" 21 #include "ui/gfx/vector2d_f.h"
22 22
23 // This file provides a testing framework for mocking out the RenderProcessHost 23 // This file provides a testing framework for mocking out the RenderProcessHost
24 // layer. It allows you to test RenderViewHost, WebContentsImpl, 24 // layer. It allows you to test RenderViewHost, WebContentsImpl,
25 // NavigationController, and other layers above that without running an actual 25 // NavigationController, and other layers above that without running an actual
26 // renderer process. 26 // renderer process.
27 // 27 //
28 // To use, derive your test base class from RenderViewHostImplTestHarness. 28 // To use, derive your test base class from RenderViewHostImplTestHarness.
29 29
30 struct FrameHostMsg_DidCommitProvisionalLoad_Params; 30 struct FrameHostMsg_DidCommitProvisionalLoad_Params;
31 struct ViewHostMsg_TextInputState_Params;
31 32
32 namespace gfx { 33 namespace gfx {
33 class Rect; 34 class Rect;
34 } 35 }
35 36
36 namespace content { 37 namespace content {
37 38
38 class SiteInstance; 39 class SiteInstance;
39 class TestRenderFrameHost; 40 class TestRenderFrameHost;
40 class TestWebContents; 41 class TestWebContents;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 virtual void InitAsFullscreen( 92 virtual void InitAsFullscreen(
92 RenderWidgetHostView* reference_host_view) OVERRIDE {} 93 RenderWidgetHostView* reference_host_view) OVERRIDE {}
93 virtual void WasShown() OVERRIDE {} 94 virtual void WasShown() OVERRIDE {}
94 virtual void WasHidden() OVERRIDE {} 95 virtual void WasHidden() OVERRIDE {}
95 virtual void MovePluginWindows( 96 virtual void MovePluginWindows(
96 const std::vector<WebPluginGeometry>& moves) OVERRIDE {} 97 const std::vector<WebPluginGeometry>& moves) OVERRIDE {}
97 virtual void Focus() OVERRIDE {} 98 virtual void Focus() OVERRIDE {}
98 virtual void Blur() OVERRIDE {} 99 virtual void Blur() OVERRIDE {}
99 virtual void SetIsLoading(bool is_loading) OVERRIDE {} 100 virtual void SetIsLoading(bool is_loading) OVERRIDE {}
100 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE {} 101 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE {}
101 virtual void TextInputTypeChanged(ui::TextInputType type, 102 virtual void TextInputStateChanged(
102 ui::TextInputMode input_mode, 103 const ViewHostMsg_TextInputState_Params& params) OVERRIDE {}
103 bool can_compose_inline) OVERRIDE {}
104 virtual void ImeCancelComposition() OVERRIDE {} 104 virtual void ImeCancelComposition() OVERRIDE {}
105 #if defined(OS_MACOSX) || defined(USE_AURA) 105 #if defined(OS_MACOSX) || defined(USE_AURA)
106 virtual void ImeCompositionRangeChanged( 106 virtual void ImeCompositionRangeChanged(
107 const gfx::Range& range, 107 const gfx::Range& range,
108 const std::vector<gfx::Rect>& character_bounds) OVERRIDE {} 108 const std::vector<gfx::Rect>& character_bounds) OVERRIDE {}
109 #endif 109 #endif
110 virtual void RenderProcessGone(base::TerminationStatus status, 110 virtual void RenderProcessGone(base::TerminationStatus status,
111 int error_code) OVERRIDE; 111 int error_code) OVERRIDE;
112 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } 112 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { }
113 virtual void Destroy() OVERRIDE; 113 virtual void Destroy() OVERRIDE;
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 private: 374 private:
375 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> 375 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors>
376 ScopedSetSupportedScaleFactors; 376 ScopedSetSupportedScaleFactors;
377 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; 377 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_;
378 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 378 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
379 }; 379 };
380 380
381 } // namespace content 381 } // namespace content
382 382
383 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 383 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698