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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.idl

Issue 1609313002: Use BlobCallback in toBlob instead of FileCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase master and Renamed mimeType to contentType to match other bits in Blob.h Created 4 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 3 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // handled differently the return type could be changed to "RenderingContext ?" 46 // handled differently the return type could be changed to "RenderingContext ?"
47 // and the [CallWith=ScriptState] extended attribute removed. 47 // and the [CallWith=ScriptState] extended attribute removed.
48 // 48 //
49 [CallWith=ScriptState] any getContext(DOMString contextId, [PermissiveDictio naryConversion] optional CanvasContextCreationAttributes attributes); 49 [CallWith=ScriptState] any getContext(DOMString contextId, [PermissiveDictio naryConversion] optional CanvasContextCreationAttributes attributes);
50 50
51 // Note: The arguments argument is variadic in the spec, but not here as 51 // Note: The arguments argument is variadic in the spec, but not here as
52 // only one extra argument is actually used. 52 // only one extra argument is actually used.
53 // FIXME: type should not have a default value. 53 // FIXME: type should not have a default value.
54 [RaisesException] DOMString toDataURL(optional DOMString type = null, option al any arguments); 54 [RaisesException] DOMString toDataURL(optional DOMString type = null, option al any arguments);
55 55
56 [RaisesException, CallWith=ScriptState, RuntimeEnabled=ExperimentalCanvasFea tures] void toBlob(FileCallback _callback, optional DOMString type = null, optio nal any arguments); 56 [RaisesException, CallWith=ScriptState, RuntimeEnabled=ExperimentalCanvasFea tures] void toBlob(BlobCallback _callback, optional DOMString type = null, optio nal any arguments);
57 }; 57 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698