OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void Focus() {} | 47 virtual void Focus() {} |
48 virtual void Blur() {} | 48 virtual void Blur() {} |
49 virtual bool HasFocus() { return true; } | 49 virtual bool HasFocus() { return true; } |
50 virtual void AdvanceFocus(bool reverse) {} | 50 virtual void AdvanceFocus(bool reverse) {} |
51 virtual void Show() { is_showing_ = true; } | 51 virtual void Show() { is_showing_ = true; } |
52 virtual void Hide() { is_showing_ = false; } | 52 virtual void Hide() { is_showing_ = false; } |
53 virtual gfx::Rect GetViewBounds() const { return gfx::Rect(); } | 53 virtual gfx::Rect GetViewBounds() const { return gfx::Rect(); } |
54 virtual void SetIsLoading(bool is_loading) {} | 54 virtual void SetIsLoading(bool is_loading) {} |
55 virtual void UpdateCursor(const WebCursor& cursor) {} | 55 virtual void UpdateCursor(const WebCursor& cursor) {} |
56 virtual void UpdateCursorIfOverSelf() {} | 56 virtual void UpdateCursorIfOverSelf() {} |
57 virtual void IMEUpdateStatus(ViewHostMsg_ImeControl control, | 57 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect) {} |
58 const gfx::Rect& caret_rect) {} | |
59 virtual void DidPaintRect(const gfx::Rect& rect) {} | 58 virtual void DidPaintRect(const gfx::Rect& rect) {} |
60 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy) {} | 59 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy) {} |
61 virtual void RendererGone() {} | 60 virtual void RendererGone() {} |
62 virtual void Destroy() {} | 61 virtual void Destroy() {} |
63 virtual void PrepareToDestroy() {} | 62 virtual void PrepareToDestroy() {} |
64 virtual void SetTooltipText(const std::wstring& tooltip_text) {} | 63 virtual void SetTooltipText(const std::wstring& tooltip_text) {} |
65 | 64 |
66 bool is_showing() const { return is_showing_; } | 65 bool is_showing() const { return is_showing_; } |
67 | 66 |
68 private: | 67 private: |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // We clean up the WebContents by calling CloseContents, which deletes itself. | 208 // We clean up the WebContents by calling CloseContents, which deletes itself. |
210 // This in turn causes the destruction of these other things. | 209 // This in turn causes the destruction of these other things. |
211 MockRenderProcessHost* process_; | 210 MockRenderProcessHost* process_; |
212 TestWebContents* contents_; | 211 TestWebContents* contents_; |
213 NavigationController* controller_; | 212 NavigationController* controller_; |
214 | 213 |
215 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 214 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
216 }; | 215 }; |
217 | 216 |
218 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 217 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |