| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 #endif | 148 #endif |
| 149 | 149 |
| 150 #if defined(TOOLKIT_USES_GTK) | 150 #if defined(TOOLKIT_USES_GTK) |
| 151 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } | 151 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } |
| 152 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } | 152 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } |
| 153 virtual void AcceleratedCompositingActivated(bool activated) { } | 153 virtual void AcceleratedCompositingActivated(bool activated) { } |
| 154 #endif | 154 #endif |
| 155 | 155 |
| 156 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE; | 156 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE; |
| 157 | 157 |
| 158 virtual bool LockMouse() OVERRIDE; |
| 159 virtual void UnlockMouse() OVERRIDE; |
| 160 |
| 158 bool is_showing() const { return is_showing_; } | 161 bool is_showing() const { return is_showing_; } |
| 159 | 162 |
| 160 private: | 163 private: |
| 161 RenderWidgetHost* rwh_; | 164 RenderWidgetHost* rwh_; |
| 162 bool is_showing_; | 165 bool is_showing_; |
| 163 }; | 166 }; |
| 164 | 167 |
| 165 // TestRenderViewHost ---------------------------------------------------------- | 168 // TestRenderViewHost ---------------------------------------------------------- |
| 166 | 169 |
| 167 // TODO(brettw) this should use a TestTabContents which should be generalized | 170 // TODO(brettw) this should use a TestTabContents which should be generalized |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 MockRenderProcessHostFactory rph_factory_; | 337 MockRenderProcessHostFactory rph_factory_; |
| 335 TestRenderViewHostFactory rvh_factory_; | 338 TestRenderViewHostFactory rvh_factory_; |
| 336 | 339 |
| 337 private: | 340 private: |
| 338 scoped_ptr<TestTabContents> contents_; | 341 scoped_ptr<TestTabContents> contents_; |
| 339 | 342 |
| 340 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 343 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 341 }; | 344 }; |
| 342 | 345 |
| 343 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 346 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |