| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_RENDER_WIDGET_HOST_VIEW_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(OS_MACOSX) | 9 #if defined(OS_MACOSX) |
| 10 #include <OpenGL/OpenGL.h> | 10 #include <OpenGL/OpenGL.h> |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 virtual void AcceleratedSurfaceBuffersSwapped( | 227 virtual void AcceleratedSurfaceBuffersSwapped( |
| 228 gfx::PluginWindowHandle window, uint64 surface_id) = 0; | 228 gfx::PluginWindowHandle window, uint64 surface_id) = 0; |
| 229 virtual void GpuRenderingStateDidChange() = 0; | 229 virtual void GpuRenderingStateDidChange() = 0; |
| 230 #endif | 230 #endif |
| 231 | 231 |
| 232 #if defined(TOOLKIT_USES_GTK) | 232 #if defined(TOOLKIT_USES_GTK) |
| 233 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; | 233 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; |
| 234 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; | 234 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; |
| 235 #endif | 235 #endif |
| 236 | 236 |
| 237 #if defined(OS_WIN) |
| 238 virtual gfx::PluginWindowHandle CreateCompositorHostWindow() = 0; |
| 239 virtual void WillWmDestroy() = 0; |
| 240 virtual void ShowCompositorHostWindow(bool show) = 0; |
| 241 #endif |
| 242 |
| 237 // Toggles visual muting of the render view area. This is on when a | 243 // Toggles visual muting of the render view area. This is on when a |
| 238 // constrained window is showing. | 244 // constrained window is showing. |
| 239 virtual void SetVisuallyDeemphasized(bool deemphasized) = 0; | 245 virtual void SetVisuallyDeemphasized(bool deemphasized) = 0; |
| 240 | 246 |
| 241 void set_popup_type(WebKit::WebPopupType popup_type) { | 247 void set_popup_type(WebKit::WebPopupType popup_type) { |
| 242 popup_type_ = popup_type; | 248 popup_type_ = popup_type; |
| 243 } | 249 } |
| 244 WebKit::WebPopupType popup_type() const { return popup_type_; } | 250 WebKit::WebPopupType popup_type() const { return popup_type_; } |
| 245 | 251 |
| 246 // Subclasses should override this method to do whatever is appropriate to set | 252 // Subclasses should override this method to do whatever is appropriate to set |
| (...skipping 23 matching lines...) Expand all Loading... |
| 270 | 276 |
| 271 // A custom background to paint behind the web content. This will be tiled | 277 // A custom background to paint behind the web content. This will be tiled |
| 272 // horizontally. Can be null, in which case we fall back to painting white. | 278 // horizontally. Can be null, in which case we fall back to painting white. |
| 273 SkBitmap background_; | 279 SkBitmap background_; |
| 274 | 280 |
| 275 private: | 281 private: |
| 276 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 282 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| 277 }; | 283 }; |
| 278 | 284 |
| 279 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 285 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |