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

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: rebase 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
« 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 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;
« 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