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

Side by Side Diff: content/public/browser/readback_types.h

Issue 1040393002: The Java Client should be aware of the readback status. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build errors Created 5 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 | « content/public/android/javatests/src/org/chromium/content/browser/ContentViewReadbackTest.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_COMMON_READBACK_TYPES_H_ 5 #ifndef CONTENT_COMMON_READBACK_TYPES_H_
6 #define CONTENT_COMMON_READBACK_TYPES_H_ 6 #define CONTENT_COMMON_READBACK_TYPES_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 9
10 class SkBitmap; 10 class SkBitmap;
11 11
12 namespace content { 12 namespace content {
13 13
14 // ReadbackResponse type used in ContentReadbackHandler.
15 //
16 // A Java counterpart will be generated for this enum.
17 // GENERATED_JAVA_ENUM_PACKAGE: (
18 // org.chromium.content_public.browser.readback_types)
19 // GENERATED_JAVA_PREFIX_TO_STRIP: READBACK_
14 enum ReadbackResponse { 20 enum ReadbackResponse {
15 READBACK_SUCCESS, 21 READBACK_SUCCESS,
16 READBACK_FAILED, 22 READBACK_FAILED,
17 READBACK_FORMAT_NOT_SUPPORTED, 23 READBACK_FORMAT_NOT_SUPPORTED,
18 READBACK_NOT_SUPPORTED, 24 READBACK_NOT_SUPPORTED,
19 READBACK_SURFACE_UNAVAILABLE, 25 READBACK_SURFACE_UNAVAILABLE,
20 READBACK_MEMORY_ALLOCATION_FAILURE, 26 READBACK_MEMORY_ALLOCATION_FAILURE,
21 }; 27 };
22 28
23 typedef const base::Callback<void(const SkBitmap&, ReadbackResponse)> 29 typedef const base::Callback<void(const SkBitmap&, ReadbackResponse)>
24 ReadbackRequestCallback; 30 ReadbackRequestCallback;
25 31
26 } // namespace content 32 } // namespace content
27 33
28 #endif // CONTENT_COMMON_READBACK_TYPES_H_ 34 #endif // CONTENT_COMMON_READBACK_TYPES_H_
OLDNEW
« no previous file with comments | « content/public/android/javatests/src/org/chromium/content/browser/ContentViewReadbackTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698