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

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

Issue 8523022: Change snasphotting API to take in a bounds Rect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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.cc
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc b/chrome/browser/ui/window_snapshot/window_snapshot.cc
similarity index 69%
copy from chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
copy to chrome/browser/ui/window_snapshot/window_snapshot.cc
index 843c89c7509edf8b4a52ec86215546e64c79e110..48bc91907c7296b626eceb52a163f0f70ef21101 100644
--- a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
+++ b/chrome/browser/ui/window_snapshot/window_snapshot.cc
@@ -4,16 +4,13 @@
#include "chrome/browser/ui/window_snapshot/window_snapshot.h"
-#include "base/logging.h"
#include "ui/gfx/rect.h"
namespace browser {
-gfx::Rect GrabWindowSnapshot(gfx::NativeWindow window_handle,
+gfx::Rect GrabWindowSnapshot(gfx::NativeWindow native_window,
std::vector<unsigned char>* png_representation) {
- // TODO(saintlou): Stub for Aura.
- NOTIMPLEMENTED();
- return gfx::Rect();
+ return GrabWindowSnapshot(native_window, png_representation, gfx::Rect());
}
} // namespace browser

Powered by Google App Engine
This is Rietveld 408576698