Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_ | 5 #ifndef CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_ |
| 6 #define CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_ | 6 #define CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
| 12 | 12 |
| 13 class PrefService; | |
| 14 | |
| 13 namespace gfx { | 15 namespace gfx { |
| 14 class Rect; | 16 class Rect; |
| 15 } | 17 } |
| 16 | 18 |
| 17 namespace browser { | 19 namespace browser { |
| 18 | 20 |
| 19 // Grabs a snapshot of the rectangle area |snapshot_bounds| with respect to the | 21 // Grabs a snapshot of the rectangle area |snapshot_bounds| with respect to the |
| 20 // top left corner of the designated window and stores a PNG representation | 22 // top left corner of the designated window and stores a PNG representation |
| 21 // into a byte vector. On Windows, |window| may be NULL to grab a snapshot of | 23 // into a byte vector. On Windows, |window| may be NULL to grab a snapshot of |
| 22 // the primary monitor. Returns true if the operation is successful. | 24 // the primary monitor. Returns true if the operation is successful. |
| 23 bool GrabWindowSnapshot(gfx::NativeWindow window, | 25 bool GrabWindowSnapshot(gfx::NativeWindow window, |
| 24 std::vector<unsigned char>* png_representation, | 26 std::vector<unsigned char>* png_representation, |
| 25 const gfx::Rect& snapshot_bounds); | 27 const gfx::Rect& snapshot_bounds); |
| 26 | 28 |
| 29 #if defined(OS_CHROMEOS) | |
| 30 void RegisterPrefs(PrefService* service); | |
|
Mattias Nissler (ping if slow)
2012/07/12 08:59:32
This should have a better name. browser::RegisterP
qfel
2012/07/12 14:48:06
Most of the stuff called in RegisterLocalState (br
| |
| 31 #endif | |
| 32 | |
| 27 } // namespace browser | 33 } // namespace browser |
| 28 | 34 |
| 29 #endif // CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_ | 35 #endif // CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_ |
| OLD | NEW |