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

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

Issue 5528007: If compositor window already exists, then simply return it rather than compla... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/gpu_process_host.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698