summaryrefslogtreecommitdiff
path: root/chromium/ui/aura/root_window_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/aura/root_window_host.h')
-rw-r--r--chromium/ui/aura/root_window_host.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/ui/aura/root_window_host.h b/chromium/ui/aura/root_window_host.h
index f1b52041707..09e48fad817 100644
--- a/chromium/ui/aura/root_window_host.h
+++ b/chromium/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 Insets;
class Point;
@@ -97,6 +99,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;
+
// Posts |native_event| to the platform's event queue.
#if !defined(OS_MACOSX)
virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0;