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 |