| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 virtual void UpdateCursor(const WebCursor& cursor) {} | 65 virtual void UpdateCursor(const WebCursor& cursor) {} |
| 66 virtual void UpdateCursorIfOverSelf() {} | 66 virtual void UpdateCursorIfOverSelf() {} |
| 67 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect) {} | 67 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect) {} |
| 68 virtual void DidPaintRect(const gfx::Rect& rect) {} | 68 virtual void DidPaintRect(const gfx::Rect& rect) {} |
| 69 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy) {} | 69 virtual void DidScrollRect(const gfx::Rect& rect, int dx, int dy) {} |
| 70 virtual void RenderViewGone() {} | 70 virtual void RenderViewGone() {} |
| 71 virtual void Destroy() {} | 71 virtual void Destroy() {} |
| 72 virtual void PrepareToDestroy() {} | 72 virtual void PrepareToDestroy() {} |
| 73 virtual void SetTooltipText(const std::wstring& tooltip_text) {} | 73 virtual void SetTooltipText(const std::wstring& tooltip_text) {} |
| 74 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 74 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
| 75 #if defined(OS_MACOSX) |
| 76 virtual void ShowPopupWithItems(gfx::Rect bounds, |
| 77 int item_height, |
| 78 int selected_item, |
| 79 const std::vector<WebMenuItem>& items) {} |
| 80 #endif |
| 75 | 81 |
| 76 bool is_showing() const { return is_showing_; } | 82 bool is_showing() const { return is_showing_; } |
| 77 | 83 |
| 78 private: | 84 private: |
| 79 bool is_showing_; | 85 bool is_showing_; |
| 80 }; | 86 }; |
| 81 | 87 |
| 82 // TestRenderViewHost ---------------------------------------------------------- | 88 // TestRenderViewHost ---------------------------------------------------------- |
| 83 | 89 |
| 84 // TODO(brettw) this should use a TestWebContents which should be generalized | 90 // TODO(brettw) this should use a TestWebContents which should be generalized |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 | 233 |
| 228 MockRenderProcessHostFactory rph_factory_; | 234 MockRenderProcessHostFactory rph_factory_; |
| 229 TestRenderViewHostFactory rvh_factory_; | 235 TestRenderViewHostFactory rvh_factory_; |
| 230 | 236 |
| 231 scoped_ptr<TestWebContents> contents_; | 237 scoped_ptr<TestWebContents> contents_; |
| 232 | 238 |
| 233 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 239 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 234 }; | 240 }; |
| 235 | 241 |
| 236 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 242 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |