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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.h

Issue 9582003: Support browser side thumbnailing for GPU composited pages on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 virtual bool IsShowing() OVERRIDE; 186 virtual bool IsShowing() OVERRIDE;
187 virtual gfx::Rect GetViewBounds() const OVERRIDE; 187 virtual gfx::Rect GetViewBounds() const OVERRIDE;
188 virtual void SetShowingContextMenu(bool showing) OVERRIDE; 188 virtual void SetShowingContextMenu(bool showing) OVERRIDE;
189 virtual void SetActive(bool active) OVERRIDE; 189 virtual void SetActive(bool active) OVERRIDE;
190 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE; 190 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE;
191 virtual void SetWindowVisibility(bool visible) OVERRIDE; 191 virtual void SetWindowVisibility(bool visible) OVERRIDE;
192 virtual void WindowFrameChanged() OVERRIDE; 192 virtual void WindowFrameChanged() OVERRIDE;
193 virtual void UnhandledWheelEvent( 193 virtual void UnhandledWheelEvent(
194 const WebKit::WebMouseWheelEvent& event) OVERRIDE; 194 const WebKit::WebMouseWheelEvent& event) OVERRIDE;
195 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 195 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
196 virtual bool CopyFromCompositingSurface(
197 const gfx::Size& size,
198 skia::PlatformCanvas* output) OVERRIDE;
196 199
197 // Implementation of RenderWidgetHostViewPort. 200 // Implementation of RenderWidgetHostViewPort.
198 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, 201 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view,
199 const gfx::Rect& pos) OVERRIDE; 202 const gfx::Rect& pos) OVERRIDE;
200 virtual void InitAsFullscreen( 203 virtual void InitAsFullscreen(
201 content::RenderWidgetHostView* reference_host_view) OVERRIDE; 204 content::RenderWidgetHostView* reference_host_view) OVERRIDE;
202 virtual void DidBecomeSelected() OVERRIDE; 205 virtual void DidBecomeSelected() OVERRIDE;
203 virtual void WasHidden() OVERRIDE; 206 virtual void WasHidden() OVERRIDE;
204 virtual void MovePluginWindows( 207 virtual void MovePluginWindows(
205 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; 208 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 // hidden until the software backing store has been updated. This variable is 408 // hidden until the software backing store has been updated. This variable is
406 // set when the gpu widget needs to be hidden once a paint is completed. 409 // set when the gpu widget needs to be hidden once a paint is completed.
407 bool needs_gpu_visibility_update_after_repaint_; 410 bool needs_gpu_visibility_update_after_repaint_;
408 411
409 gfx::PluginWindowHandle compositing_surface_; 412 gfx::PluginWindowHandle compositing_surface_;
410 413
411 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 414 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
412 }; 415 };
413 416
414 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 417 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698