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

Unified Diff: ui/aura/root_window_host.h

Issue 11273059: ash: Clean up system background layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apply review feedback Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/root_window_host_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window_host.h
diff --git a/ui/aura/root_window_host.h b/ui/aura/root_window_host.h
index 1b6e483e7988b9578a415ec2b90c20af4497cb34..0766a6a3b48be8a5c151703fc23a05a6f86d853c 100644
--- a/ui/aura/root_window_host.h
+++ b/ui/aura/root_window_host.h
@@ -12,6 +12,8 @@
#include "ui/base/cursor/cursor.h"
#include "ui/gfx/native_widget_types.h"
+class SkCanvas;
+
namespace gfx {
class Point;
class Rect;
@@ -87,6 +89,13 @@ class AURA_EXPORT RootWindowHost {
// Sets if the window should be focused when shown.
virtual void SetFocusWhenShown(bool focus_when_shown) = 0;
+ // Copies |source_bounds| from the root window (as displayed on the host
+ // machine) to |canvas| at offset |dest_offset|. The bounds need to be in
+ // physical pixels.
+ virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds,
+ const gfx::Point& dest_offset,
+ SkCanvas* canvas) = 0;
+
// Grabs the snapshot of the root window by using the platform-dependent APIs.
// The bounds need to be in physical pixels.
virtual bool GrabSnapshot(
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/root_window_host_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698