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. source_rect and target_size are in DIP. |
| 15 |
| 16 SNAPSHOT_EXPORT void GrabWindowSnapshotAndScaleAsyncAura( |
| 17 aura::Window* window, |
| 18 const gfx::Rect& source_rect, |
| 19 const gfx::Size& target_size, |
| 20 scoped_refptr<base::TaskRunner> background_task_runner, |
| 21 const GrabWindowSnapshotAsyncCallback& callback); |
| 22 |
| 23 SNAPSHOT_EXPORT void GrabWindowSnapshotAsyncAura( |
| 24 aura::Window* window, |
| 25 const gfx::Rect& source_rect, |
| 26 const GrabWindowSnapshotAsyncCallback& callback); |
| 27 |
| 28 } // namespace ui |
| 29 |
| 30 #endif // UI_SNAPSHOT_SNAPSHOT_AURA_H_ |
OLD | NEW |