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

Side by Side Diff: ui/snapshot/snapshot_aura.h

Issue 2752373002: Use PrintWindow() to implement snapshots on windows 8.1+ (Closed)
Patch Set: rebase Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « ui/snapshot/BUILD.gn ('k') | ui/snapshot/snapshot_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ui/snapshot/BUILD.gn ('k') | ui/snapshot/snapshot_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698