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

Unified Diff: base/mac_util.h

Issue 333018: Add GrabWindowSnapshot method to mac_util class. This code is due to dmaclac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « base/base.gyp ('k') | base/mac_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac_util.h
===================================================================
--- base/mac_util.h (revision 30116)
+++ base/mac_util.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2008-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -7,13 +7,16 @@
#include <Carbon/Carbon.h>
#include <string>
+#include <vector>
class FilePath;
#ifdef __OBJC__
@class NSBundle;
+@class NSWindow;
#else
class NSBundle;
+class NSWindow;
#endif
namespace mac_util {
@@ -72,6 +75,9 @@
// this will show the menu bar. Must be called on main thread.
void ReleaseFullScreen();
+// Pulls a snapshot of the entire browser into png_representation.
+void GrabWindowSnapshot(NSWindow* window,
+ std::vector<unsigned char>* png_representation);
} // namespace mac_util
#endif // BASE_MAC_UTIL_H_
« no previous file with comments | « base/base.gyp ('k') | base/mac_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698