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

Unified Diff: ui/base/snapshot/snapshot_aura.cc

Issue 11399002: Implemented GetWindowSnapshot on RenderViewImpl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed aura snapshot circular dependency Created 8 years, 1 month 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/base/snapshot/snapshot_aura.cc
diff --git a/ui/base/snapshot/snapshot_aura.cc b/ui/base/snapshot/snapshot_aura.cc
new file mode 100644
index 0000000000000000000000000000000000000000..152f2c8ae06539925e47caca4cfd4943e69b6263
--- /dev/null
+++ b/ui/base/snapshot/snapshot_aura.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/base/snapshot/snapshot.h"
+
+#include "ui/gfx/rect.h"
+
+namespace ui {
+
+bool GrabViewSnapshot(gfx::NativeView view,
+ std::vector<unsigned char>* png_representation,
+ const gfx::Rect& snapshot_bounds) {
+ return GrabWindowSnapshot(view, png_representation, snapshot_bounds);
+}
+
+bool GrabWindowSnapshot(gfx::NativeWindow window,
+ std::vector<unsigned char>* png_representation,
+ const gfx::Rect& snapshot_bounds) {
+ // TODO(bajones): Implement Aura snapshot functionality
+ return false;
+}
+
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698