| Index: content/browser/window_util_win.cc
|
| diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_win.cc b/content/browser/window_util_win.cc
|
| similarity index 91%
|
| rename from chrome/browser/ui/window_snapshot/window_snapshot_win.cc
|
| rename to content/browser/window_util_win.cc
|
| index bbef524f4a5f9452ebb8645b82501220b40b781b..296ee598405b8c91c7905d3999318f2d7c7073b7 100644
|
| --- a/chrome/browser/ui/window_snapshot/window_snapshot_win.cc
|
| +++ b/content/browser/window_util_win.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 "content/public/browser/window_util.h"
|
|
|
| #include "base/win/scoped_gdi_object.h"
|
| #include "base/win/scoped_hdc.h"
|
| @@ -34,8 +34,13 @@ gfx::Rect GetWindowBounds(gfx::NativeWindow window_handle) {
|
|
|
| } // namespace
|
|
|
| -namespace chrome {
|
| -namespace internal {
|
| +namespace content {
|
| +
|
| +bool GrabViewSnapshot(gfx::NativeView view_handle,
|
| + std::vector<unsigned char>* png_representation,
|
| + const gfx::Rect& snapshot_bounds) {
|
| + return GrabWindowSnapshot(view_handle, png_representation, snapshot_bounds);
|
| +}
|
|
|
| bool GrabWindowSnapshot(gfx::NativeWindow window_handle,
|
| std::vector<unsigned char>* png_representation,
|
| @@ -98,5 +103,4 @@ bool GrabWindowSnapshot(gfx::NativeWindow window_handle,
|
| return true;
|
| }
|
|
|
| -} // namespace internal
|
| -} // namespace chrome
|
| +} // namespace content
|
|
|