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

Unified Diff: ui/aura/root_window_host.h

Issue 10386124: Introduce XGetImage() for GrabWindowSnapshot() in ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
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..fe1b1801af122a6018875f917ab9c2da94bdfae0 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 window snapshot by using the platform-dependent APIs.
+ virtual bool GrabWindowSnapshot(
+ std::vector<unsigned char>* png_representation,
+ const gfx::Rect& snapshot_bounds) = 0;
+
// Posts |native_event| to the platform's event queue.
#if !defined(OS_MACOSX)
virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0;

Powered by Google App Engine
This is Rietveld 408576698