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

Unified Diff: ui/aura/root_window.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.h
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h
index 708fa6cefbfee9b5889dec3e30397806b0f97e5f..50bec16ae828fdba130e516359ba0aca99248c6c 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -6,6 +6,8 @@
#define UI_AURA_ROOT_WINDOW_H_
#pragma once
+#include <vector>
+
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
@@ -248,6 +250,9 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
// Sets if the window should be focused when shown.
void SetFocusWhenShown(bool focus_when_shown);
+ bool GrabWindowSnapshot(std::vector<unsigned char>* png_representation,
Daniel Erat 2012/05/14 23:17:40 nit: Add a comment describing what this does. Sho
Jun Mukai 2012/05/15 22:39:24 Done.
+ const gfx::Rect& snapshot_bounds);
+
// Overridden from Window:
virtual RootWindow* GetRootWindow() OVERRIDE;
virtual const RootWindow* GetRootWindow() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698