Index: chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc |
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc b/chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc |
index bacc004ffca3a185924f2c6c957de247f0daf976..dfb3e290d9726686929f2cdf1511448c3522c119 100644 |
--- a/chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc |
+++ b/chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc |
@@ -11,10 +11,11 @@ |
#include "ui/base/x/x11_util.h" |
#include "ui/gfx/rect.h" |
-namespace browser { |
+namespace { |
-static cairo_status_t SnapshotCallback( |
- void *closure, const unsigned char *data, unsigned int length) { |
+cairo_status_t SnapshotCallback(void* closure, |
+ const unsigned char* data, |
+ unsigned int length) { |
std::vector<unsigned char>* png_representation = |
static_cast<std::vector<unsigned char>*>(closure); |
@@ -24,6 +25,10 @@ static cairo_status_t SnapshotCallback( |
return CAIRO_STATUS_SUCCESS; |
} |
+} // namespace |
+ |
+namespace chrome { |
+ |
bool GrabWindowSnapshot(gfx::NativeWindow window_handle, |
std::vector<unsigned char>* png_representation, |
const gfx::Rect& snapshot_bounds) { |
@@ -70,4 +75,4 @@ bool GrabWindowSnapshot(gfx::NativeWindow window_handle, |
return true; |
} |
-} // namespace browser |
+} // namespace chrome |