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 #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 Loading... |
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 // RenderWidgetHostViewBase implementation. | 97 // RenderWidgetHostViewBase implementation. |
98 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 98 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
99 const gfx::Rect& bounds) override {} | 99 const gfx::Rect& bounds) override {} |
100 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override {} | 100 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override {} |
101 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override { | 101 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override { |
102 } | 102 } |
103 void Focus() override {} | 103 void Focus() override {} |
104 void SetIsLoading(bool is_loading) override {} | 104 void SetIsLoading(bool is_loading) override {} |
105 void UpdateCursor(const WebCursor& cursor) override {} | 105 void UpdateCursor(const WebCursor& cursor) override {} |
106 void TextInputStateChanged( | 106 void TextInputStateChanged(const TextInputState& params) override {} |
107 const ViewHostMsg_TextInputState_Params& params) override {} | |
108 void ImeCancelComposition() override {} | 107 void ImeCancelComposition() override {} |
109 void ImeCompositionRangeChanged( | 108 void ImeCompositionRangeChanged( |
110 const gfx::Range& range, | 109 const gfx::Range& range, |
111 const std::vector<gfx::Rect>& character_bounds) override {} | 110 const std::vector<gfx::Rect>& character_bounds) override {} |
112 void RenderProcessGone(base::TerminationStatus status, | 111 void RenderProcessGone(base::TerminationStatus status, |
113 int error_code) override; | 112 int error_code) override; |
114 void Destroy() override; | 113 void Destroy() override; |
115 void SetTooltipText(const base::string16& tooltip_text) override {} | 114 void SetTooltipText(const base::string16& tooltip_text) override {} |
116 void SelectionBoundsChanged( | 115 void SelectionBoundsChanged( |
117 const ViewHostMsg_SelectionBounds_Params& params) override {} | 116 const ViewHostMsg_SelectionBounds_Params& params) override {} |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 private: | 319 private: |
321 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> | 320 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> |
322 ScopedSetSupportedScaleFactors; | 321 ScopedSetSupportedScaleFactors; |
323 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 322 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
324 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 323 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
325 }; | 324 }; |
326 | 325 |
327 } // namespace content | 326 } // namespace content |
328 | 327 |
329 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 328 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |