| 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_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_TEST_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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) | 75 #if defined(OS_MACOSX) |
| 76 virtual void ShowPopupWithItems(gfx::Rect bounds, | 76 virtual void ShowPopupWithItems(gfx::Rect bounds, |
| 77 int item_height, | 77 int item_height, |
| 78 int selected_item, | 78 int selected_item, |
| 79 const std::vector<WebMenuItem>& items) {} | 79 const std::vector<WebMenuItem>& items) {} |
| 80 #endif | 80 #endif |
| 81 | 81 |
| 82 #if defined(OS_LINUX) |
| 83 virtual gfx::PluginWindowHandle CreatePluginContainer() { return 0; } |
| 84 virtual void DestroyPluginContainer(gfx::PluginWindowHandle container) { } |
| 85 #endif |
| 86 |
| 82 bool is_showing() const { return is_showing_; } | 87 bool is_showing() const { return is_showing_; } |
| 83 | 88 |
| 84 private: | 89 private: |
| 85 RenderWidgetHost* rwh_; | 90 RenderWidgetHost* rwh_; |
| 86 bool is_showing_; | 91 bool is_showing_; |
| 87 }; | 92 }; |
| 88 | 93 |
| 89 // TestRenderViewHost ---------------------------------------------------------- | 94 // TestRenderViewHost ---------------------------------------------------------- |
| 90 | 95 |
| 91 // TODO(brettw) this should use a TestTabContents which should be generalized | 96 // TODO(brettw) this should use a TestTabContents which should be generalized |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 253 |
| 249 MockRenderProcessHostFactory rph_factory_; | 254 MockRenderProcessHostFactory rph_factory_; |
| 250 TestRenderViewHostFactory rvh_factory_; | 255 TestRenderViewHostFactory rvh_factory_; |
| 251 | 256 |
| 252 scoped_ptr<TestTabContents> contents_; | 257 scoped_ptr<TestTabContents> contents_; |
| 253 | 258 |
| 254 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 259 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 255 }; | 260 }; |
| 256 | 261 |
| 257 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 262 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |