| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 int32 width, | 117 int32 width, |
| 118 int32 height, | 118 int32 height, |
| 119 TransportDIB::Handle transport_dib); | 119 TransportDIB::Handle transport_dib); |
| 120 virtual void AcceleratedSurfaceBuffersSwapped( | 120 virtual void AcceleratedSurfaceBuffersSwapped( |
| 121 gfx::PluginWindowHandle window, | 121 gfx::PluginWindowHandle window, |
| 122 uint64 surface_id, | 122 uint64 surface_id, |
| 123 int renderer_id, | 123 int renderer_id, |
| 124 int32 route_id, | 124 int32 route_id, |
| 125 uint64 swap_buffers_count); | 125 uint64 swap_buffers_count); |
| 126 virtual void GpuRenderingStateDidChange(); | 126 virtual void GpuRenderingStateDidChange(); |
| 127 #elif defined(OS_WIN) |
| 128 virtual gfx::PluginWindowHandle CreateCompositorHostWindow(); |
| 129 virtual void WillWmDestroy(); |
| 130 virtual void ShowCompositorHostWindow(bool show); |
| 127 #endif | 131 #endif |
| 128 virtual void SetVisuallyDeemphasized(bool deemphasized) { } | 132 virtual void SetVisuallyDeemphasized(bool deemphasized) { } |
| 129 | 133 |
| 130 #if defined(TOOLKIT_USES_GTK) | 134 #if defined(TOOLKIT_USES_GTK) |
| 131 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } | 135 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } |
| 132 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } | 136 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } |
| 133 virtual void AcceleratedCompositingActivated(bool activated) { } | 137 virtual void AcceleratedCompositingActivated(bool activated) { } |
| 134 #endif | 138 #endif |
| 135 | 139 |
| 136 virtual bool ContainsNativeView(gfx::NativeView native_view) const { | 140 virtual bool ContainsNativeView(gfx::NativeView native_view) const { |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 | 288 |
| 285 MockRenderProcessHostFactory rph_factory_; | 289 MockRenderProcessHostFactory rph_factory_; |
| 286 TestRenderViewHostFactory rvh_factory_; | 290 TestRenderViewHostFactory rvh_factory_; |
| 287 | 291 |
| 288 scoped_ptr<TestTabContents> contents_; | 292 scoped_ptr<TestTabContents> contents_; |
| 289 | 293 |
| 290 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 294 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 291 }; | 295 }; |
| 292 | 296 |
| 293 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 297 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |