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

Side by Side Diff: chrome/browser/ui/window_snapshot/window_snapshot.h

Issue 132203004: Remove window_snapshot.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing include Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_
6 #define CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_
7
8 #include <vector>
9
10 #include "ui/gfx/native_widget_types.h"
11
12 class PrefRegistrySimple;
13
14 namespace gfx {
15 class Rect;
16 }
17
18 namespace chrome {
19
20 void RegisterScreenshotPrefs(PrefRegistrySimple* registry);
21
22 // Grabs a snapshot of the rectangle area |snapshot_bounds| with respect to the
23 // top left corner of the designated window and stores a PNG representation
24 // into a byte vector. On Windows, |window| may be NULL to grab a snapshot of
25 // the primary monitor. This takes into account calling user context (ie. checks
26 // policy settings if taking screenshots is allowed), and is intended to be used
27 // by browser code. If you need to take a screenshot for debugging purposes,
28 // consider using ui::GrabWindowSnapshot.
29 // Returns true if the operation is successful (ie. permitted).
30 bool GrabWindowSnapshotForUser(gfx::NativeWindow window,
31 std::vector<unsigned char>* png_representation,
32 const gfx::Rect& snapshot_bounds);
33
34 } // namespace chrome
35
36 #endif // CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/panels/panel_stack_window_cocoa.mm ('k') | chrome/browser/ui/window_snapshot/window_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698