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

Unified Diff: Source/modules/encoding/TextEncoder.idl

Issue 15901002: Implement Encoding API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline webexposed global constructor tests Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/encoding/TextEncoder.cpp ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/encoding/TextEncoder.idl
diff --git a/Source/core/html/ime/Composition.idl b/Source/modules/encoding/TextEncoder.idl
similarity index 82%
copy from Source/core/html/ime/Composition.idl
copy to Source/modules/encoding/TextEncoder.idl
index 494d2a06b75f42a4c55b6a01b0069e2701f412a3..ed63e2748d46c5be028e7edcbcbee6bbb3aecb75 100644
--- a/Source/core/html/ime/Composition.idl
+++ b/Source/modules/encoding/TextEncoder.idl
@@ -28,12 +28,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// http://www.w3.org/TR/ime-api/
[
- NoInterfaceObject
-] interface Composition {
- readonly attribute DOMString text;
- readonly attribute long selectionStart;
- readonly attribute long selectionEnd;
- sequence<unsigned long> getSegments();
+ EnabledAtRuntime=EncodingAPI,
+ GlobalContext=Window&WorkerGlobalScope,
+ Constructor([Default=NullString] optional DOMString utfLabel),
+ ConstructorRaisesException
+] interface TextEncoder {
+ readonly attribute DOMString encoding;
+ Uint8Array encode([Default=NullString] optional DOMString input, optional Dictionary options);
};
« no previous file with comments | « Source/modules/encoding/TextEncoder.cpp ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698