Index: ui/aura/root_window.cc |
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc |
index ad3d3efb5ecc05b946b99c56785c7cf7f3ff5d96..e3ed5d017b7bf7286ee7a13b63facb0e7c2d6a71 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(std::vector<unsigned char>* png_representation, |
+ const gfx::Rect& snapshot_bounds) { |
+ DCHECK(bounds().Contains(snapshot_bounds)); |
+ return host_->GrabSnapshot(png_representation, snapshot_bounds); |
+} |
+ |
//////////////////////////////////////////////////////////////////////////////// |
// RootWindow, Window overrides: |