Index: ui/window_snapshot/window_snapshot_gtk.cc |
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc b/ui/window_snapshot/window_snapshot_gtk.cc |
similarity index 87% |
rename from chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc |
rename to ui/window_snapshot/window_snapshot_gtk.cc |
index 150aab5b98ab78e8a29586ea989a9a79f4dd42ba..50f825547fa2b0ac7ac5330c60e2aea3e614a2ad 100644 |
--- a/chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc |
+++ b/ui/window_snapshot/window_snapshot_gtk.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 <gdk/gdkx.h> |
#include <gtk/gtk.h> |
@@ -27,11 +27,11 @@ cairo_status_t SnapshotCallback(void* closure, |
} // 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) { |
GdkWindow* gdk_window = gtk_widget_get_window(GTK_WIDGET(window_handle)); |
Display* display = GDK_WINDOW_XDISPLAY(gdk_window); |
XID win = GDK_WINDOW_XID(gdk_window); |
@@ -75,4 +75,4 @@ bool GrabWindowSnapshotImpl(gfx::NativeWindow window_handle, |
return true; |
} |
-} // namespace chrome |
+} // namespace ui |