OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 ImageBitmapSource_h |
| 6 #define ImageBitmapSource_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 10 #include "bindings/core/v8/ScriptState.h" |
| 11 #include "core/CoreExport.h" |
| 12 #include "core/dom/ExceptionCode.h" |
| 13 #include "platform/geometry/IntSize.h" |
| 14 |
| 15 namespace blink { |
| 16 |
| 17 class ImageBitmap; |
| 18 |
| 19 class CORE_EXPORT ImageBitmapSource { |
| 20 public: |
| 21 virtual IntSize bitmapSourceSize() const { return IntSize(); } |
| 22 virtual ScriptPromise createImageBitmap(ScriptState*, EventTarget&, int sx,
int sy, int sw, int sh, ExceptionState&); |
| 23 |
| 24 virtual bool isBlob() const { return false; } |
| 25 |
| 26 static ScriptPromise fulfillImageBitmap(ScriptState*, PassRefPtrWillBeRawPtr
<ImageBitmap>); |
| 27 protected: |
| 28 virtual ~ImageBitmapSource() {} |
| 29 }; |
| 30 |
| 31 } // namespace blink |
| 32 |
| 33 #endif |
OLD | NEW |