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

Unified Diff: ui/window_snapshot/window_snapshot_aura.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.h ('k') | ui/window_snapshot/window_snapshot_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/window_snapshot/window_snapshot_aura.cc
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc b/ui/window_snapshot/window_snapshot_aura.cc
similarity index 84%
rename from chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
rename to ui/window_snapshot/window_snapshot_aura.cc
index 378228364c777ae9e24a11fdf3ed51a9427d0a52..7329ce52451b3291dcafc9f3b221b067ef871818 100644
--- a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
+++ b/ui/window_snapshot/window_snapshot_aura.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/logging.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -13,11 +13,11 @@
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/rect.h"
-namespace chrome {
+namespace ui {
-bool GrabWindowSnapshotImpl(gfx::NativeWindow window,
- std::vector<unsigned char>* png_representation,
- const gfx::Rect& snapshot_bounds) {
+bool GrabWindowSnapshot(gfx::NativeWindow window,
+ std::vector<unsigned char>* png_representation,
+ const gfx::Rect& snapshot_bounds) {
ui::Compositor* compositor = window->layer()->GetCompositor();
gfx::Rect read_pixels_bounds = snapshot_bounds;
@@ -48,4 +48,4 @@ bool GrabWindowSnapshotImpl(gfx::NativeWindow window,
return true;
}
-} // namespace chrome
+} // namespace ui
« no previous file with comments | « ui/window_snapshot/window_snapshot.h ('k') | ui/window_snapshot/window_snapshot_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698