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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) | 249 #if defined(OS_WIN) |
250 virtual gfx::PluginWindowHandle CreateCompositorHostWindow() = 0; | 250 virtual gfx::PluginWindowHandle GetCompositorHostWindow() = 0; |
251 virtual void WillWmDestroy() = 0; | 251 virtual void WillWmDestroy() = 0; |
252 virtual void ShowCompositorHostWindow(bool show) = 0; | 252 virtual void ShowCompositorHostWindow(bool show) = 0; |
253 #endif | 253 #endif |
254 | 254 |
255 // 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 |
256 // constrained window is showing. | 256 // constrained window is showing. |
257 virtual void SetVisuallyDeemphasized(bool deemphasized) = 0; | 257 virtual void SetVisuallyDeemphasized(bool deemphasized) = 0; |
258 | 258 |
| 259 |
259 void set_popup_type(WebKit::WebPopupType popup_type) { | 260 void set_popup_type(WebKit::WebPopupType popup_type) { |
260 popup_type_ = popup_type; | 261 popup_type_ = popup_type; |
261 } | 262 } |
262 WebKit::WebPopupType popup_type() const { return popup_type_; } | 263 WebKit::WebPopupType popup_type() const { return popup_type_; } |
263 | 264 |
264 // Subclasses should override this method to do whatever is appropriate to set | 265 // Subclasses should override this method to do whatever is appropriate to set |
265 // the custom background for their platform. | 266 // the custom background for their platform. |
266 virtual void SetBackground(const SkBitmap& background) { | 267 virtual void SetBackground(const SkBitmap& background) { |
267 background_ = background; | 268 background_ = background; |
268 } | 269 } |
(...skipping 30 matching lines...) Expand all Loading... |
299 | 300 |
300 // The current reserved area in view coordinates where contents should not be | 301 // The current reserved area in view coordinates where contents should not be |
301 // rendered to draw the resize corner, sidebar mini tabs etc. | 302 // rendered to draw the resize corner, sidebar mini tabs etc. |
302 gfx::Rect reserved_rect_; | 303 gfx::Rect reserved_rect_; |
303 | 304 |
304 private: | 305 private: |
305 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 306 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
306 }; | 307 }; |
307 | 308 |
308 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 309 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |