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

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

Issue 1652483002: Browser Side Text Input State Tracking for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged 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
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; 34 struct TextInputState;
35 35
36 namespace gfx { 36 namespace gfx {
37 class Rect; 37 class Rect;
38 } 38 }
39 39
40 namespace content { 40 namespace content {
41 41
42 class SiteInstance; 42 class SiteInstance;
43 class TestRenderFrameHost; 43 class TestRenderFrameHost;
44 class TestWebContents; 44 class TestWebContents;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 scoped_ptr<cc::CompositorFrame> frame) override; 92 scoped_ptr<cc::CompositorFrame> frame) override;
93 void ClearCompositorFrame() override {} 93 void ClearCompositorFrame() override {}
94 94
95 // RenderWidgetHostViewBase implementation. 95 // RenderWidgetHostViewBase implementation.
96 void InitAsPopup(RenderWidgetHostView* parent_host_view, 96 void InitAsPopup(RenderWidgetHostView* parent_host_view,
97 const gfx::Rect& bounds) override {} 97 const gfx::Rect& bounds) override {}
98 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override {} 98 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override {}
99 void Focus() override {} 99 void Focus() override {}
100 void SetIsLoading(bool is_loading) override {} 100 void SetIsLoading(bool is_loading) override {}
101 void UpdateCursor(const WebCursor& cursor) override {} 101 void UpdateCursor(const WebCursor& cursor) override {}
102 void TextInputStateChanged( 102 void UpdateInputMethodIfNecessary(bool text_input_state_changed) override {}
103 const ViewHostMsg_TextInputState_Params& params) override {}
104 void ImeCancelComposition() override {} 103 void ImeCancelComposition() override {}
105 void ImeCompositionRangeChanged( 104 void ImeCompositionRangeChanged(
106 const gfx::Range& range, 105 const gfx::Range& range,
107 const std::vector<gfx::Rect>& character_bounds) override {} 106 const std::vector<gfx::Rect>& character_bounds) override {}
108 void RenderProcessGone(base::TerminationStatus status, 107 void RenderProcessGone(base::TerminationStatus status,
109 int error_code) override; 108 int error_code) override;
110 void Destroy() override; 109 void Destroy() override;
111 void SetTooltipText(const base::string16& tooltip_text) override {} 110 void SetTooltipText(const base::string16& tooltip_text) override {}
112 void SelectionBoundsChanged( 111 void SelectionBoundsChanged(
113 const ViewHostMsg_SelectionBounds_Params& params) override {} 112 const ViewHostMsg_SelectionBounds_Params& params) override {}
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 private: 306 private:
308 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> 307 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors>
309 ScopedSetSupportedScaleFactors; 308 ScopedSetSupportedScaleFactors;
310 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; 309 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_;
311 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 310 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
312 }; 311 };
313 312
314 } // namespace content 313 } // namespace content
315 314
316 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 315 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/test/data/textinput/page_with_input_iframeX2_input.html ('k') | content/test/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698