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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 uint64 swap_buffers_count) = 0; | 239 uint64 swap_buffers_count) = 0; |
240 virtual void GpuRenderingStateDidChange() = 0; | 240 virtual void GpuRenderingStateDidChange() = 0; |
241 #endif | 241 #endif |
242 | 242 |
243 #if defined(TOOLKIT_USES_GTK) | 243 #if defined(TOOLKIT_USES_GTK) |
244 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; | 244 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; |
245 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; | 245 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; |
246 virtual void AcceleratedCompositingActivated(bool activated) = 0; | 246 virtual void AcceleratedCompositingActivated(bool activated) = 0; |
247 #endif | 247 #endif |
248 | 248 |
| 249 #if defined(OS_WIN) |
| 250 virtual gfx::PluginWindowHandle CreateCompositorHostWindow() = 0; |
| 251 virtual void WillWmDestroy() = 0; |
| 252 virtual void ShowCompositorHostWindow(bool show) = 0; |
| 253 #endif |
| 254 |
249 // Toggles visual muting of the render view area. This is on when a | 255 // Toggles visual muting of the render view area. This is on when a |
250 // constrained window is showing. | 256 // constrained window is showing. |
251 virtual void SetVisuallyDeemphasized(bool deemphasized) = 0; | 257 virtual void SetVisuallyDeemphasized(bool deemphasized) = 0; |
252 | 258 |
253 void set_popup_type(WebKit::WebPopupType popup_type) { | 259 void set_popup_type(WebKit::WebPopupType popup_type) { |
254 popup_type_ = popup_type; | 260 popup_type_ = popup_type; |
255 } | 261 } |
256 WebKit::WebPopupType popup_type() const { return popup_type_; } | 262 WebKit::WebPopupType popup_type() const { return popup_type_; } |
257 | 263 |
258 // Subclasses should override this method to do whatever is appropriate to set | 264 // Subclasses should override this method to do whatever is appropriate to set |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 299 |
294 // The current reserved area in view coordinates where contents should not be | 300 // The current reserved area in view coordinates where contents should not be |
295 // rendered to draw the resize corner, sidebar mini tabs etc. | 301 // rendered to draw the resize corner, sidebar mini tabs etc. |
296 gfx::Rect reserved_rect_; | 302 gfx::Rect reserved_rect_; |
297 | 303 |
298 private: | 304 private: |
299 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 305 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
300 }; | 306 }; |
301 | 307 |
302 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 308 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |