Index: ui/aura/root_window_host.h |
diff --git a/ui/aura/root_window_host.h b/ui/aura/root_window_host.h |
index 47bba42b8e40aa74f785282931147f31a0d3d2f5..d7643c5d4ba16b1f1c2bba22f67af745b4653f4a 100644 |
--- a/ui/aura/root_window_host.h |
+++ b/ui/aura/root_window_host.h |
@@ -6,6 +6,8 @@ |
#define UI_AURA_ROOT_WINDOW_HOST_H_ |
#pragma once |
+#include <vector> |
+ |
#include "base/message_loop.h" |
#include "ui/base/cursor/cursor.h" |
#include "ui/gfx/native_widget_types.h" |
@@ -88,6 +90,11 @@ class RootWindowHost { |
// Sets if the window should be focused when shown. |
virtual void SetFocusWhenShown(bool focus_when_shown) = 0; |
+ // Grabs the snapshot of the root window by using the platform-dependent APIs. |
+ virtual bool GrabSnapshot( |
+ const gfx::Rect& snapshot_bounds, |
+ std::vector<unsigned char>* png_representation) = 0; |
+ |
// Posts |native_event| to the platform's event queue. |
#if !defined(OS_MACOSX) |
virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; |