Chromium Code Reviews| Index: content/public/browser/readback_types.h |
| diff --git a/content/public/browser/readback_types.h b/content/public/browser/readback_types.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3187f9f5aaf72dbfcddb1619301a66f99cad71a8 |
| --- /dev/null |
| +++ b/content/public/browser/readback_types.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_COMMON_READBACK_TYPES_H_ |
| +#define CONTENT_COMMON_READBACK_TYPES_H_ |
| + |
| +#include "base/callback.h" |
| + |
| +class SkBitmap; |
| + |
| +namespace content { |
| + |
| +enum ReadbackResponse { |
| + READBACK_SUCCESS, |
| + READBACK_FAILED, |
| + READBACK_FORMAT_NOT_SUPPORTED, |
| + READBACK_NOT_SUPPORTED, |
| + READBACK_SURFACE_UNAVAILABLE, |
| + READBACK_MEMORY_ALLOCATION_FAILURE, |
| +}; |
| + |
| +typedef const base::Callback<void(const SkBitmap&, const ReadbackResponse&)> |
| + ReadbackRequestCallback; |
| +} // namespace |
|
piman
2014/11/07 01:55:42
nit: 'namespace content'
Add blank line before }
sivag
2014/11/07 12:27:41
Done.
|
| + |
| +#endif // CONTENT_COMMON_READBACK_TYPES_H_ |