Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1768)

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view.h

Issue 4815001: Use inner HWND for accelerated rendering on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 virtual void AcceleratedSurfaceBuffersSwapped( 228 virtual void AcceleratedSurfaceBuffersSwapped(
229 gfx::PluginWindowHandle window, uint64 surface_id) = 0; 229 gfx::PluginWindowHandle window, uint64 surface_id) = 0;
230 virtual void GpuRenderingStateDidChange() = 0; 230 virtual void GpuRenderingStateDidChange() = 0;
231 #endif 231 #endif
232 232
233 #if defined(TOOLKIT_USES_GTK) 233 #if defined(TOOLKIT_USES_GTK)
234 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; 234 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0;
235 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; 235 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0;
236 #endif 236 #endif
237 237
238 #if defined(OS_WIN)
239 virtual gfx::PluginWindowHandle CreateCompositorHostWindow() = 0;
240 virtual void WillWmDestroy() = 0;
241 virtual void ShowCompositorHostWindow(bool show) = 0;
242 #endif
243
238 // Toggles visual muting of the render view area. This is on when a 244 // Toggles visual muting of the render view area. This is on when a
239 // constrained window is showing. 245 // constrained window is showing.
240 virtual void SetVisuallyDeemphasized(bool deemphasized) = 0; 246 virtual void SetVisuallyDeemphasized(bool deemphasized) = 0;
241 247
242 void set_popup_type(WebKit::WebPopupType popup_type) { 248 void set_popup_type(WebKit::WebPopupType popup_type) {
243 popup_type_ = popup_type; 249 popup_type_ = popup_type;
244 } 250 }
245 WebKit::WebPopupType popup_type() const { return popup_type_; } 251 WebKit::WebPopupType popup_type() const { return popup_type_; }
246 252
247 // Subclasses should override this method to do whatever is appropriate to set 253 // Subclasses should override this method to do whatever is appropriate to set
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 288
283 // The current reserved area in view coordinates where contents should not be 289 // The current reserved area in view coordinates where contents should not be
284 // rendered to draw the resize corner, sidebar mini tabs etc. 290 // rendered to draw the resize corner, sidebar mini tabs etc.
285 gfx::Rect reserved_rect_; 291 gfx::Rect reserved_rect_;
286 292
287 private: 293 private:
288 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 294 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
289 }; 295 };
290 296
291 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 297 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698