| 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 #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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 int32 height, | 121 int32 height, |
| 122 TransportDIB::Handle transport_dib); | 122 TransportDIB::Handle transport_dib); |
| 123 virtual void AcceleratedSurfaceBuffersSwapped( | 123 virtual void AcceleratedSurfaceBuffersSwapped( |
| 124 gfx::PluginWindowHandle window, | 124 gfx::PluginWindowHandle window, |
| 125 uint64 surface_id, | 125 uint64 surface_id, |
| 126 int renderer_id, | 126 int renderer_id, |
| 127 int32 route_id, | 127 int32 route_id, |
| 128 uint64 swap_buffers_count); | 128 uint64 swap_buffers_count); |
| 129 virtual void GpuRenderingStateDidChange(); | 129 virtual void GpuRenderingStateDidChange(); |
| 130 #elif defined(OS_WIN) | 130 #elif defined(OS_WIN) |
| 131 virtual gfx::PluginWindowHandle GetCompositorHostWindow(); | |
| 132 virtual void WillWmDestroy(); | 131 virtual void WillWmDestroy(); |
| 133 virtual void ShowCompositorHostWindow(bool show); | 132 virtual void ShowCompositorHostWindow(bool show); |
| 134 #endif | 133 #endif |
| 135 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) { } | 134 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) { } |
| 136 | 135 |
| 137 #if defined(TOOLKIT_USES_GTK) | 136 #if defined(TOOLKIT_USES_GTK) |
| 138 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } | 137 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } |
| 139 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } | 138 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } |
| 140 virtual void AcceleratedCompositingActivated(bool activated) { } | 139 virtual void AcceleratedCompositingActivated(bool activated) { } |
| 141 #endif | 140 #endif |
| 142 | 141 |
| 142 virtual gfx::PluginWindowHandle AcquireCompositingSurface() { |
| 143 return gfx::kNullPluginWindow; |
| 144 } |
| 145 virtual void ReleaseCompositingSurface(gfx::PluginWindowHandle surface) { } |
| 146 |
| 143 virtual bool ContainsNativeView(gfx::NativeView native_view) const { | 147 virtual bool ContainsNativeView(gfx::NativeView native_view) const { |
| 144 return false; | 148 return false; |
| 145 } | 149 } |
| 146 | 150 |
| 147 bool is_showing() const { return is_showing_; } | 151 bool is_showing() const { return is_showing_; } |
| 148 | 152 |
| 149 private: | 153 private: |
| 150 RenderWidgetHost* rwh_; | 154 RenderWidgetHost* rwh_; |
| 151 bool is_showing_; | 155 bool is_showing_; |
| 152 }; | 156 }; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 295 |
| 292 MockRenderProcessHostFactory rph_factory_; | 296 MockRenderProcessHostFactory rph_factory_; |
| 293 TestRenderViewHostFactory rvh_factory_; | 297 TestRenderViewHostFactory rvh_factory_; |
| 294 | 298 |
| 295 scoped_ptr<TestTabContents> contents_; | 299 scoped_ptr<TestTabContents> contents_; |
| 296 | 300 |
| 297 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 301 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 298 }; | 302 }; |
| 299 | 303 |
| 300 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 304 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |