Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(841)

Unified Diff: ui/window_snapshot/window_snapshot_gtk.cc

Issue 10821104: Support GrabWindowSnapshot with no g_browser_process (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/window_snapshot/window_snapshot_aura.cc ('k') | ui/window_snapshot/window_snapshot_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/window_snapshot/window_snapshot_aura.cc ('k') | ui/window_snapshot/window_snapshot_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698