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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 virtual void ShowCompositorHostWindow(bool show); | 134 virtual void ShowCompositorHostWindow(bool show); |
135 #endif | 135 #endif |
136 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) { } | 136 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) { } |
137 | 137 |
138 #if defined(TOOLKIT_USES_GTK) | 138 #if defined(TOOLKIT_USES_GTK) |
139 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } | 139 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) { } |
140 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } | 140 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) { } |
141 virtual void AcceleratedCompositingActivated(bool activated) { } | 141 virtual void AcceleratedCompositingActivated(bool activated) { } |
142 #endif | 142 #endif |
143 | 143 |
144 virtual gfx::PluginWindowHandle AcquireCompositingSurface(); | 144 virtual gfx::PluginWindowHandle GetCompositingSurface(); |
145 virtual void ReleaseCompositingSurface(gfx::PluginWindowHandle surface) { } | |
146 | 145 |
147 virtual bool ContainsNativeView(gfx::NativeView native_view) const; | 146 virtual bool ContainsNativeView(gfx::NativeView native_view) const; |
148 | 147 |
149 bool is_showing() const { return is_showing_; } | 148 bool is_showing() const { return is_showing_; } |
150 | 149 |
151 private: | 150 private: |
152 RenderWidgetHost* rwh_; | 151 RenderWidgetHost* rwh_; |
153 bool is_showing_; | 152 bool is_showing_; |
154 }; | 153 }; |
155 | 154 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 MockRenderProcessHostFactory rph_factory_; | 312 MockRenderProcessHostFactory rph_factory_; |
314 TestRenderViewHostFactory rvh_factory_; | 313 TestRenderViewHostFactory rvh_factory_; |
315 | 314 |
316 private: | 315 private: |
317 scoped_ptr<TestTabContents> contents_; | 316 scoped_ptr<TestTabContents> contents_; |
318 | 317 |
319 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 318 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
320 }; | 319 }; |
321 | 320 |
322 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 321 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |