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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/window_snapshot/window_snapshot.h
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot.h b/chrome/browser/ui/window_snapshot/window_snapshot.h
deleted file mode 100644
index 943630edd12ce88b1f7cee5e0dc28ecb5aa6c175..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/window_snapshot/window_snapshot.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_
-#define CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_
-
-#include <vector>
-
-#include "ui/gfx/native_widget_types.h"
-
-class PrefRegistrySimple;
-
-namespace gfx {
-class Rect;
-}
-
-namespace chrome {
-
-void RegisterScreenshotPrefs(PrefRegistrySimple* registry);
-
-// Grabs a snapshot of the rectangle area |snapshot_bounds| with respect to the
-// top left corner of the designated window and stores a PNG representation
-// into a byte vector. On Windows, |window| may be NULL to grab a snapshot of
-// the primary monitor. This takes into account calling user context (ie. checks
-// policy settings if taking screenshots is allowed), and is intended to be used
-// by browser code. If you need to take a screenshot for debugging purposes,
-// consider using ui::GrabWindowSnapshot.
-// Returns true if the operation is successful (ie. permitted).
-bool GrabWindowSnapshotForUser(gfx::NativeWindow window,
- std::vector<unsigned char>* png_representation,
- const gfx::Rect& snapshot_bounds);
-
-} // namespace chrome
-
-#endif // CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_
« 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