OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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 UI_SNAPSHOT_SNAPSHOT_AURA_H_ | |
6 #define UI_SNAPSHOT_SNAPSHOT_AURA_H_ | |
7 | |
8 #include "ui/snapshot/snapshot.h" | |
9 | |
10 namespace ui { | |
11 | |
12 // These functions are identical to those in snapshot.h, except they're | |
13 // guaranteed to read the frame using an Aura CopyOutputRequest and not the | |
14 // native windowing system. | |
15 SNAPSHOT_EXPORT bool GrabWindowSnapshotAura(gfx::NativeWindow window, | |
sky
2017/03/23 03:29:13
As these functions are only for aura can these tak
| |
16 const gfx::Rect& snapshot_bounds, | |
sky
2017/03/23 03:29:13
Are the bounds in these functions pixels or dips?
| |
17 gfx::Image* image); | |
18 | |
19 SNAPSHOT_EXPORT bool GrabViewSnapshotAura(gfx::NativeView view, | |
20 const gfx::Rect& snapshot_bounds, | |
21 gfx::Image* image); | |
22 | |
23 SNAPSHOT_EXPORT void GrabWindowSnapshotAndScaleAsyncAura( | |
24 gfx::NativeWindow window, | |
25 const gfx::Rect& source_rect, | |
26 const gfx::Size& target_size, | |
27 scoped_refptr<base::TaskRunner> background_task_runner, | |
28 const GrabWindowSnapshotAsyncCallback& callback); | |
29 | |
30 SNAPSHOT_EXPORT void GrabWindowSnapshotAsyncAura( | |
31 gfx::NativeWindow window, | |
32 const gfx::Rect& source_rect, | |
33 const GrabWindowSnapshotAsyncCallback& callback); | |
34 | |
35 SNAPSHOT_EXPORT void GrabViewSnapshotAsyncAura( | |
36 gfx::NativeView view, | |
37 const gfx::Rect& source_rect, | |
38 const GrabWindowSnapshotAsyncCallback& callback); | |
39 | |
40 } // namespace ui | |
41 | |
42 #endif // UI_SNAPSHOT_SNAPSHOT_AURA_H_ | |
OLD | NEW |