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

Unified Diff: chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc

Issue 10826011: chrome: Put window_snapshot into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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
« no previous file with comments | « chrome/browser/ui/window_snapshot/window_snapshot_aura.cc ('k') | chrome/browser/ui/window_snapshot/window_snapshot_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698