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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 virtual void GpuRenderingStateDidChange() = 0; | 251 virtual void GpuRenderingStateDidChange() = 0; |
252 #endif | 252 #endif |
253 | 253 |
254 #if defined(TOOLKIT_USES_GTK) | 254 #if defined(TOOLKIT_USES_GTK) |
255 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; | 255 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; |
256 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; | 256 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; |
257 virtual void AcceleratedCompositingActivated(bool activated) = 0; | 257 virtual void AcceleratedCompositingActivated(bool activated) = 0; |
258 #endif | 258 #endif |
259 | 259 |
260 #if defined(OS_WIN) | 260 #if defined(OS_WIN) |
261 virtual gfx::PluginWindowHandle GetCompositorHostWindow() = 0; | |
262 virtual void WillWmDestroy() = 0; | 261 virtual void WillWmDestroy() = 0; |
263 virtual void ShowCompositorHostWindow(bool show) = 0; | 262 virtual void ShowCompositorHostWindow(bool show) = 0; |
264 #endif | 263 #endif |
265 | 264 |
| 265 virtual gfx::PluginWindowHandle AcquireCompositingSurface() = 0; |
| 266 virtual void ReleaseCompositingSurface(gfx::PluginWindowHandle surface) = 0; |
| 267 |
266 // Toggles visual muting of the render view area. This is on when a | 268 // Toggles visual muting of the render view area. This is on when a |
267 // constrained window is showing, for example. |color| is the shade of | 269 // constrained window is showing, for example. |color| is the shade of |
268 // the overlay that covers the render view. If |animate| is true, the overlay | 270 // the overlay that covers the render view. If |animate| is true, the overlay |
269 // gradually fades in; otherwise it takes effect immediately. To remove the | 271 // gradually fades in; otherwise it takes effect immediately. To remove the |
270 // fade effect, pass a NULL value for |color|. In this case, |animate| is | 272 // fade effect, pass a NULL value for |color|. In this case, |animate| is |
271 // ignored. | 273 // ignored. |
272 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) = 0; | 274 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) = 0; |
273 | 275 |
274 void set_popup_type(WebKit::WebPopupType popup_type) { | 276 void set_popup_type(WebKit::WebPopupType popup_type) { |
275 popup_type_ = popup_type; | 277 popup_type_ = popup_type; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 314 |
313 // The current reserved area in view coordinates where contents should not be | 315 // The current reserved area in view coordinates where contents should not be |
314 // rendered to draw the resize corner, sidebar mini tabs etc. | 316 // rendered to draw the resize corner, sidebar mini tabs etc. |
315 gfx::Rect reserved_rect_; | 317 gfx::Rect reserved_rect_; |
316 | 318 |
317 private: | 319 private: |
318 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 320 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
319 }; | 321 }; |
320 | 322 |
321 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 323 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |