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

Unified Diff: ui/snapshot/snapshot_aura.cc

Issue 11399002: Implemented GetWindowSnapshot on RenderViewImpl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added stub methods for iOS Created 8 years 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/snapshot/snapshot_android.cc ('k') | ui/snapshot/snapshot_export.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/snapshot_aura.cc
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc b/ui/snapshot/snapshot_aura.cc
similarity index 85%
rename from chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
rename to ui/snapshot/snapshot_aura.cc
index 4ca3b63e0fe2b26d540392fc9d959a6dadf7f731..1eca6d573b4c03a027132efbb3803230fcd79494 100644
--- a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
+++ b/ui/snapshot/snapshot_aura.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/window_snapshot/window_snapshot.h"
+#include "ui/snapshot/snapshot.h"
#include "base/logging.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -13,8 +13,13 @@
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/rect.h"
-namespace chrome {
-namespace internal {
+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,
@@ -50,5 +55,4 @@ bool GrabWindowSnapshot(gfx::NativeWindow window,
return true;
}
-} // namespace internal
-} // namespace chrome
+} // namespace ui
« no previous file with comments | « ui/snapshot/snapshot_android.cc ('k') | ui/snapshot/snapshot_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698