OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 virtual void Blur() {} | 71 virtual void Blur() {} |
72 virtual bool HasFocus(); | 72 virtual bool HasFocus(); |
73 virtual void AdvanceFocus(bool reverse) {} | 73 virtual void AdvanceFocus(bool reverse) {} |
74 virtual void Show(); | 74 virtual void Show(); |
75 virtual void Hide(); | 75 virtual void Hide(); |
76 virtual bool IsShowing(); | 76 virtual bool IsShowing(); |
77 virtual gfx::Rect GetViewBounds() const; | 77 virtual gfx::Rect GetViewBounds() const; |
78 virtual void SetIsLoading(bool is_loading) {} | 78 virtual void SetIsLoading(bool is_loading) {} |
79 virtual void UpdateCursor(const WebCursor& cursor) {} | 79 virtual void UpdateCursor(const WebCursor& cursor) {} |
80 virtual void UpdateCursorIfOverSelf() {} | 80 virtual void UpdateCursorIfOverSelf() {} |
81 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType state, | 81 virtual void ImeUpdateTextInputState(ui::TextInputType state, |
| 82 bool can_compose_inline, |
82 const gfx::Rect& caret_rect) {} | 83 const gfx::Rect& caret_rect) {} |
83 virtual void ImeCancelComposition() {} | 84 virtual void ImeCancelComposition() {} |
84 virtual void DidUpdateBackingStore( | 85 virtual void DidUpdateBackingStore( |
85 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 86 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
86 const std::vector<gfx::Rect>& rects) {} | 87 const std::vector<gfx::Rect>& rects) {} |
87 virtual void RenderViewGone(base::TerminationStatus status, | 88 virtual void RenderViewGone(base::TerminationStatus status, |
88 int error_code); | 89 int error_code); |
89 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } | 90 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } |
90 virtual void Destroy() {} | 91 virtual void Destroy() {} |
91 virtual void PrepareToDestroy() {} | 92 virtual void PrepareToDestroy() {} |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 MockRenderProcessHostFactory rph_factory_; | 318 MockRenderProcessHostFactory rph_factory_; |
318 TestRenderViewHostFactory rvh_factory_; | 319 TestRenderViewHostFactory rvh_factory_; |
319 | 320 |
320 private: | 321 private: |
321 scoped_ptr<TestTabContents> contents_; | 322 scoped_ptr<TestTabContents> contents_; |
322 | 323 |
323 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 324 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
324 }; | 325 }; |
325 | 326 |
326 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 327 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |