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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 virtual void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); | 110 virtual void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); |
111 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, | 111 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, |
112 int32 width, | 112 int32 width, |
113 int32 height, | 113 int32 height, |
114 uint64 surface_id); | 114 uint64 surface_id); |
115 virtual void AcceleratedSurfaceSetTransportDIB( | 115 virtual void AcceleratedSurfaceSetTransportDIB( |
116 gfx::PluginWindowHandle window, | 116 gfx::PluginWindowHandle window, |
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(gfx::PluginWindowHandle window, | 120 virtual void AcceleratedSurfaceBuffersSwapped( |
121 uint64 surface_id); | 121 gfx::PluginWindowHandle window, |
| 122 uint64 surface_id, |
| 123 int renderer_id, |
| 124 int32 route_id, |
| 125 uint64 swap_buffers_count); |
122 virtual void GpuRenderingStateDidChange(); | 126 virtual void GpuRenderingStateDidChange(); |
123 #endif | 127 #endif |
124 virtual void SetVisuallyDeemphasized(bool deemphasized) { } | 128 virtual void SetVisuallyDeemphasized(bool deemphasized) { } |
125 | 129 |
126 #if defined(TOOLKIT_USES_GTK) | 130 #if defined(TOOLKIT_USES_GTK) |
127 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } | 131 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } |
128 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } | 132 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } |
129 #endif | 133 #endif |
130 | 134 |
131 virtual bool ContainsNativeView(gfx::NativeView native_view) const { | 135 virtual bool ContainsNativeView(gfx::NativeView native_view) const { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 283 |
280 MockRenderProcessHostFactory rph_factory_; | 284 MockRenderProcessHostFactory rph_factory_; |
281 TestRenderViewHostFactory rvh_factory_; | 285 TestRenderViewHostFactory rvh_factory_; |
282 | 286 |
283 scoped_ptr<TestTabContents> contents_; | 287 scoped_ptr<TestTabContents> contents_; |
284 | 288 |
285 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 289 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
286 }; | 290 }; |
287 | 291 |
288 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 292 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |