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

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

Issue 2592983002: [devtools] Support different encodings for Page.CaptureScreenshot. (Closed)
Patch Set: Encode in ui snapshot methods instead. Created 3 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_SNAPSHOT_SNAPSHOT_ASYNC_H_ 5 #ifndef UI_SNAPSHOT_SNAPSHOT_ASYNC_H_
6 #define UI_SNAPSHOT_SNAPSHOT_ASYNC_H_ 6 #define UI_SNAPSHOT_SNAPSHOT_ASYNC_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 14 matching lines...) Expand all
25 // ui::GrabWindowSnapshot callback. 25 // ui::GrabWindowSnapshot callback.
26 class SnapshotAsync { 26 class SnapshotAsync {
27 public: 27 public:
28 static void ScaleCopyOutputResult( 28 static void ScaleCopyOutputResult(
29 const GrabWindowSnapshotAsyncCallback& callback, 29 const GrabWindowSnapshotAsyncCallback& callback,
30 const gfx::Size& target_size, 30 const gfx::Size& target_size,
31 scoped_refptr<base::TaskRunner> background_task_runner, 31 scoped_refptr<base::TaskRunner> background_task_runner,
32 std::unique_ptr<cc::CopyOutputResult> result); 32 std::unique_ptr<cc::CopyOutputResult> result);
33 33
34 static void EncodeCopyOutputResult( 34 static void EncodeCopyOutputResult(
35 const GrabWindowSnapshotAsyncPNGCallback& callback, 35 const GrabWindowSnapshotAsyncEncodedCallback& callback,
36 scoped_refptr<base::TaskRunner> background_task_runner, 36 scoped_refptr<base::TaskRunner> background_task_runner,
37 SnapshotEncoding encoding,
38 SnapshotQuality quality,
37 std::unique_ptr<cc::CopyOutputResult> result); 39 std::unique_ptr<cc::CopyOutputResult> result);
38 40
39 private: 41 private:
40 DISALLOW_IMPLICIT_CONSTRUCTORS(SnapshotAsync); 42 DISALLOW_IMPLICIT_CONSTRUCTORS(SnapshotAsync);
41 }; 43 };
42 44
43 } // namespace ui 45 } // namespace ui
44 46
45 #endif // UI_SNAPSHOT_SNAPSHOT_ASYNC_H_ 47 #endif // UI_SNAPSHOT_SNAPSHOT_ASYNC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698