| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual void SetIsLoading(bool is_loading) {} | 61 virtual void SetIsLoading(bool is_loading) {} |
| 62 virtual void UpdateCursor(const WebCursor& cursor) {} | 62 virtual void UpdateCursor(const WebCursor& cursor) {} |
| 63 virtual void UpdateCursorIfOverSelf() {} | 63 virtual void UpdateCursorIfOverSelf() {} |
| 64 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect) {} | 64 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect) {} |
| 65 virtual void DidPaintRect(const gfx::Rect& rect) {} | 65 virtual void DidPaintRect(const gfx::Rect& rect) {} |
| 66 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy) {} | 66 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy) {} |
| 67 virtual void RenderViewGone() {} | 67 virtual void RenderViewGone() {} |
| 68 virtual void Destroy() {} | 68 virtual void Destroy() {} |
| 69 virtual void PrepareToDestroy() {} | 69 virtual void PrepareToDestroy() {} |
| 70 virtual void SetTooltipText(const std::wstring& tooltip_text) {} | 70 virtual void SetTooltipText(const std::wstring& tooltip_text) {} |
| 71 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
| 71 | 72 |
| 72 bool is_showing() const { return is_showing_; } | 73 bool is_showing() const { return is_showing_; } |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 bool is_showing_; | 76 bool is_showing_; |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 // TestRenderViewHost ---------------------------------------------------------- | 79 // TestRenderViewHost ---------------------------------------------------------- |
| 79 | 80 |
| 80 // TODO(brettw) this should use a TestWebContents which should be generalized | 81 // TODO(brettw) this should use a TestWebContents which should be generalized |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 // We clean up the WebContents by calling CloseContents, which deletes itself. | 216 // We clean up the WebContents by calling CloseContents, which deletes itself. |
| 216 // This in turn causes the destruction of these other things. | 217 // This in turn causes the destruction of these other things. |
| 217 MockRenderProcessHost* process_; | 218 MockRenderProcessHost* process_; |
| 218 TestWebContents* contents_; | 219 TestWebContents* contents_; |
| 219 NavigationController* controller_; | 220 NavigationController* controller_; |
| 220 | 221 |
| 221 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 222 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 222 }; | 223 }; |
| 223 | 224 |
| 224 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 225 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |