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

Unified Diff: ui/snapshot/snapshot_win.cc

Issue 11399002: Implemented GetWindowSnapshot on RenderViewImpl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added stub methods for iOS Created 8 years 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/snapshot/snapshot_mac_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/snapshot_win.cc
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_win.cc b/ui/snapshot/snapshot_win.cc
similarity index 92%
rename from chrome/browser/ui/window_snapshot/window_snapshot_win.cc
rename to ui/snapshot/snapshot_win.cc
index bbef524f4a5f9452ebb8645b82501220b40b781b..3a8d1e715765722381f8fa8e25592c039427bdb1 100644
--- a/chrome/browser/ui/window_snapshot/window_snapshot_win.cc
+++ b/ui/snapshot/snapshot_win.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/snapshot/snapshot.h"
#include "base/win/scoped_gdi_object.h"
#include "base/win/scoped_hdc.h"
@@ -34,8 +34,13 @@ gfx::Rect GetWindowBounds(gfx::NativeWindow window_handle) {
} // namespace
-namespace chrome {
-namespace internal {
+namespace ui {
+
+bool GrabViewSnapshot(gfx::NativeView view_handle,
+ std::vector<unsigned char>* png_representation,
+ const gfx::Rect& snapshot_bounds) {
+ return GrabWindowSnapshot(view_handle, png_representation, snapshot_bounds);
+}
bool GrabWindowSnapshot(gfx::NativeWindow window_handle,
std::vector<unsigned char>* png_representation,
@@ -98,5 +103,4 @@ bool GrabWindowSnapshot(gfx::NativeWindow window_handle,
return true;
}
-} // namespace internal
-} // namespace chrome
+} // namespace ui
« no previous file with comments | « ui/snapshot/snapshot_mac_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698