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

Side by Side Diff: third_party/WebKit/Source/core/imagebitmap/ImageBitmapSource.h

Issue 1455763002: Use union type in ImageBitmapFactories.idl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using polymophism in ImageBitmapSource Created 5 years 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
(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() { return IntSize(); }
22 virtual PassRefPtrWillBeRawPtr<ImageBitmap> createImageBitmap(EventTarget&, ImageBitmapSource*, int sx, int sy, int sw, int sh, ExceptionState&) { return nu llptr; }
davve 2015/11/27 11:19:43 Drive-by review: Why do you pass ImageBitmapSource
xidachen 2015/11/27 19:00:25 Great comments! I remove this parameter and there
23
24 virtual bool isBlob() const { return false; }
25
26 protected:
27 virtual ~ImageBitmapSource() {}
28 };
29
30 } // namespace blink
31
32 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.idl ('k') | third_party/WebKit/Source/core/imagebitmap/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698