Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / public / browser / readback_types.h
blob4929ab9de9c6825399c40aa25782978c2d14fc54
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_READBACK_TYPES_H_
6 #define CONTENT_PUBLIC_BROWSER_READBACK_TYPES_H_
8 #include "base/callback.h"
10 class SkBitmap;
12 namespace content {
14 // ReadbackResponse type used in ContentReadbackHandler.
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_
20 enum ReadbackResponse {
21 READBACK_SUCCESS,
22 READBACK_FAILED,
23 READBACK_SURFACE_UNAVAILABLE,
24 READBACK_BITMAP_ALLOCATION_FAILURE,
27 typedef const base::Callback<void(const SkBitmap&, ReadbackResponse)>
28 ReadbackRequestCallback;
30 } // namespace content
32 #endif // CONTENT_PUBLIC_BROWSER_READBACK_TYPES_H_