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

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

Issue 1914603002: Replace ViewHostMsg_TextInputState_Params with content::TextInputState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Comments Created 4 years, 8 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 13 matching lines...) Expand all
24 #include "ui/gfx/geometry/vector2d_f.h" 24 #include "ui/gfx/geometry/vector2d_f.h"
25 25
26 // This file provides a testing framework for mocking out the RenderProcessHost 26 // This file provides a testing framework for mocking out the RenderProcessHost
27 // layer. It allows you to test RenderViewHost, WebContentsImpl, 27 // layer. It allows you to test RenderViewHost, WebContentsImpl,
28 // NavigationController, and other layers above that without running an actual 28 // NavigationController, and other layers above that without running an actual
29 // renderer process. 29 // renderer process.
30 // 30 //
31 // To use, derive your test base class from RenderViewHostImplTestHarness. 31 // To use, derive your test base class from RenderViewHostImplTestHarness.
32 32
33 struct FrameHostMsg_DidCommitProvisionalLoad_Params; 33 struct FrameHostMsg_DidCommitProvisionalLoad_Params;
34 struct ViewHostMsg_TextInputState_Params;
35 34
36 namespace gfx { 35 namespace gfx {
37 class Rect; 36 class Rect;
38 } 37 }
39 38
40 namespace content { 39 namespace content {
41 40
42 class SiteInstance; 41 class SiteInstance;
43 class TestRenderFrameHost; 42 class TestRenderFrameHost;
44 class TestWebContents; 43 class TestWebContents;
45 struct FrameReplicationState; 44 struct FrameReplicationState;
45 struct TextInputState;
46 46
47 // Utility function to initialize FrameHostMsg_DidCommitProvisionalLoad_Params 47 // Utility function to initialize FrameHostMsg_DidCommitProvisionalLoad_Params
48 // with given parameters. 48 // with given parameters.
49 void InitNavigateParams(FrameHostMsg_DidCommitProvisionalLoad_Params* params, 49 void InitNavigateParams(FrameHostMsg_DidCommitProvisionalLoad_Params* params,
50 int page_id, 50 int page_id,
51 int nav_entry_id, 51 int nav_entry_id,
52 bool did_create_new_entry, 52 bool did_create_new_entry,
53 const GURL& url, 53 const GURL& url,
54 ui::PageTransition transition_type); 54 ui::PageTransition transition_type);
55 55
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 std::unique_ptr<cc::CompositorFrame> frame) override; 93 std::unique_ptr<cc::CompositorFrame> frame) override;
94 void ClearCompositorFrame() override {} 94 void ClearCompositorFrame() override {}
95 95
96 // RenderWidgetHostViewBase implementation. 96 // RenderWidgetHostViewBase implementation.
97 void InitAsPopup(RenderWidgetHostView* parent_host_view, 97 void InitAsPopup(RenderWidgetHostView* parent_host_view,
98 const gfx::Rect& bounds) override {} 98 const gfx::Rect& bounds) override {}
99 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override {} 99 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override {}
100 void Focus() override {} 100 void Focus() override {}
101 void SetIsLoading(bool is_loading) override {} 101 void SetIsLoading(bool is_loading) override {}
102 void UpdateCursor(const WebCursor& cursor) override {} 102 void UpdateCursor(const WebCursor& cursor) override {}
103 void TextInputStateChanged( 103 void TextInputStateChanged(const TextInputState& params) override {}
104 const ViewHostMsg_TextInputState_Params& params) override {}
105 void ImeCancelComposition() override {} 104 void ImeCancelComposition() override {}
106 void ImeCompositionRangeChanged( 105 void ImeCompositionRangeChanged(
107 const gfx::Range& range, 106 const gfx::Range& range,
108 const std::vector<gfx::Rect>& character_bounds) override {} 107 const std::vector<gfx::Rect>& character_bounds) override {}
109 void RenderProcessGone(base::TerminationStatus status, 108 void RenderProcessGone(base::TerminationStatus status,
110 int error_code) override; 109 int error_code) override;
111 void Destroy() override; 110 void Destroy() override;
112 void SetTooltipText(const base::string16& tooltip_text) override {} 111 void SetTooltipText(const base::string16& tooltip_text) override {}
113 void SelectionBoundsChanged( 112 void SelectionBoundsChanged(
114 const ViewHostMsg_SelectionBounds_Params& params) override {} 113 const ViewHostMsg_SelectionBounds_Params& params) override {}
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 private: 307 private:
309 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> 308 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors>
310 ScopedSetSupportedScaleFactors; 309 ScopedSetSupportedScaleFactors;
311 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; 310 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_;
312 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 311 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
313 }; 312 };
314 313
315 } // namespace content 314 } // namespace content
316 315
317 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 316 #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