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(int control, const gfx::Rect& caret_rect) {} | 57 virtual void IMEUpdateStatus(ViewHostMsg_ImeControl control, |
| 58 const gfx::Rect& caret_rect) {} |
58 virtual void DidPaintRect(const gfx::Rect& rect) {} | 59 virtual void DidPaintRect(const gfx::Rect& rect) {} |
59 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy) {} | 60 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy) {} |
60 virtual void RendererGone() {} | 61 virtual void RendererGone() {} |
61 virtual void Destroy() {} | 62 virtual void Destroy() {} |
62 virtual void PrepareToDestroy() {} | 63 virtual void PrepareToDestroy() {} |
63 virtual void SetTooltipText(const std::wstring& tooltip_text) {} | 64 virtual void SetTooltipText(const std::wstring& tooltip_text) {} |
64 | 65 |
65 bool is_showing() const { return is_showing_; } | 66 bool is_showing() const { return is_showing_; } |
66 | 67 |
67 private: | 68 private: |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // We clean up the WebContents by calling CloseContents, which deletes itself. | 209 // We clean up the WebContents by calling CloseContents, which deletes itself. |
209 // This in turn causes the destruction of these other things. | 210 // This in turn causes the destruction of these other things. |
210 MockRenderProcessHost* process_; | 211 MockRenderProcessHost* process_; |
211 TestWebContents* contents_; | 212 TestWebContents* contents_; |
212 NavigationController* controller_; | 213 NavigationController* controller_; |
213 | 214 |
214 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 215 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
215 }; | 216 }; |
216 | 217 |
217 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 218 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |