| Index: ui/base/snapshot/snapshot_aura.cc
|
| diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc b/ui/base/snapshot/snapshot_aura.cc
|
| similarity index 84%
|
| rename from chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
|
| rename to ui/base/snapshot/snapshot_aura.cc
|
| index f7164c7da358d59464a83327398026dde91006bc..3ba743995341356d552740819397117390d69187 100644
|
| --- a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
|
| +++ b/ui/base/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/base/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,
|
| @@ -48,5 +53,4 @@ bool GrabWindowSnapshot(gfx::NativeWindow window,
|
| return true;
|
| }
|
|
|
| -} // namespace internal
|
| -} // namespace chrome
|
| +} // namespace ui
|
|
|