Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 CONTENT_PUBLIC_BROWSER_WINDOW_UTIL_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_WINDOW_UTIL_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "ui/gfx/native_widget_types.h" | |
| 11 | |
| 12 class PrefService; | |
|
jam
2012/11/09 02:21:29
nuke
| |
| 13 | |
| 14 namespace gfx { | |
| 15 class Rect; | |
| 16 } | |
| 17 | |
| 18 namespace content { | |
| 19 | |
| 20 // Like chrome::GrabWindowSnapshotForUser, but does not perform additional | |
|
jam
2012/11/09 02:21:29
content shouldn't refer to chrome even in comments
| |
| 21 // security checks - just grabs a snapshot. This is intended to be used for | |
| 22 // debugging purposes where no BrowserProcess instance is available (ie. tests). | |
| 23 // DO NOT use in a result of user action. | |
| 24 bool GrabWindowSnapshot( | |
| 25 gfx::NativeWindow window, | |
| 26 std::vector<unsigned char>* png_representation, | |
| 27 const gfx::Rect& snapshot_bounds); | |
| 28 | |
| 29 bool GrabViewSnapshot( | |
| 30 gfx::NativeView view, | |
| 31 std::vector<unsigned char>* png_representation, | |
| 32 const gfx::Rect& snapshot_bounds); | |
| 33 | |
| 34 } // namespace content | |
| 35 | |
| 36 #endif // CONTENT_PUBLIC_BROWSER_WINDOW_UTIL_H_ | |
| OLD | NEW |