| Index: ui/window_snapshot/window_snapshot_win.cc
|
| diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_win.cc b/ui/window_snapshot/window_snapshot_win.cc
|
| similarity index 92%
|
| rename from chrome/browser/ui/window_snapshot/window_snapshot_win.cc
|
| rename to ui/window_snapshot/window_snapshot_win.cc
|
| index bd6e9a00a3fcb33c2384dc6d6d4f7af162709a16..0aafd3827058e1276e1b3316b751d3a2b96b2a3b 100644
|
| --- a/chrome/browser/ui/window_snapshot/window_snapshot_win.cc
|
| +++ b/ui/window_snapshot/window_snapshot_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 "ui/window_snapshot/window_snapshot.h"
|
|
|
| #include "base/win/scoped_gdi_object.h"
|
| #include "base/win/scoped_hdc.h"
|
| @@ -34,11 +34,11 @@ gfx::Rect GetWindowBounds(gfx::NativeWindow window_handle) {
|
|
|
| } // namespace
|
|
|
| -namespace chrome {
|
| +namespace ui {
|
|
|
| -bool GrabWindowSnapshotImpl(gfx::NativeWindow window_handle,
|
| - std::vector<unsigned char>* png_representation,
|
| - const gfx::Rect& snapshot_bounds) {
|
| +bool GrabWindowSnapshot(gfx::NativeWindow window_handle,
|
| + std::vector<unsigned char>* png_representation,
|
| + const gfx::Rect& snapshot_bounds) {
|
| DCHECK(snapshot_bounds.right() <= GetWindowBounds(window_handle).right());
|
| DCHECK(snapshot_bounds.bottom() <= GetWindowBounds(window_handle).bottom());
|
|
|
| @@ -97,4 +97,4 @@ bool GrabWindowSnapshotImpl(gfx::NativeWindow window_handle,
|
| return true;
|
| }
|
|
|
| -} // namespace chrome
|
| +} // namespace ui
|
|
|