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

Unified Diff: ui/aura/root_window.cc

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.h ('k') | ui/aura/root_window_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index ad3d3efb5ecc05b946b99c56785c7cf7f3ff5d96..e6797dcd024fa26ceb2e6e6fe40a9336e38d2018 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -532,6 +532,12 @@ void RootWindow::SetFocusWhenShown(bool focused) {
host_->SetFocusWhenShown(focused);
}
+bool RootWindow::GrabSnapshot(const gfx::Rect& snapshot_bounds,
+ std::vector<unsigned char>* png_representation) {
+ DCHECK(bounds().Contains(snapshot_bounds));
+ return host_->GrabSnapshot(snapshot_bounds, png_representation);
+}
+
////////////////////////////////////////////////////////////////////////////////
// RootWindow, Window overrides:
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/aura/root_window_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698