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

Side by Side Diff: Source/core/xml/XMLHttpRequest.idl

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.idl ('k') | Source/core/xml/XMLHttpRequestUpload.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
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 23 matching lines...) Expand all
34 // FIXME: enable once support for json responseText is completed. (bug #73648 ) 34 // FIXME: enable once support for json responseText is completed. (bug #73648 )
35 // "json", 35 // "json",
36 "text" 36 "text"
37 }; 37 };
38 38
39 [ 39 [
40 GlobalContext=Window&WorkerGlobalScope, 40 GlobalContext=Window&WorkerGlobalScope,
41 ActiveDOMObject, 41 ActiveDOMObject,
42 Constructor, 42 Constructor,
43 ConstructorCallWith=ScriptExecutionContext, 43 ConstructorCallWith=ScriptExecutionContext,
44 CustomConstructor(optional XMLHttpRequestOptions options), 44 CustomConstructor(optional XMLHttpRequestOptions options)
45 EventTarget 45 ] interface XMLHttpRequest : EventTarget {
46 ] interface XMLHttpRequest {
47 // From XMLHttpRequestEventTarget 46 // From XMLHttpRequestEventTarget
48 // event handler attributes 47 // event handler attributes
49 attribute EventListener onabort; 48 attribute EventListener onabort;
50 attribute EventListener onerror; 49 attribute EventListener onerror;
51 attribute EventListener onload; 50 attribute EventListener onload;
52 attribute EventListener onloadend; 51 attribute EventListener onloadend;
53 attribute EventListener onloadstart; 52 attribute EventListener onloadstart;
54 attribute EventListener onprogress; 53 attribute EventListener onprogress;
55 attribute EventListener ontimeout; 54 attribute EventListener ontimeout;
56 55
(...skipping 29 matching lines...) Expand all
86 [GetterRaisesException] readonly attribute Document responseXML; 85 [GetterRaisesException] readonly attribute Document responseXML;
87 86
88 [SetterRaisesException] attribute XMLHttpRequestResponseType responseType; 87 [SetterRaisesException] attribute XMLHttpRequestResponseType responseType;
89 [CustomGetter, GetterRaisesException] readonly attribute Object response; 88 [CustomGetter, GetterRaisesException] readonly attribute Object response;
90 89
91 [GetterRaisesException] readonly attribute unsigned short status; 90 [GetterRaisesException] readonly attribute unsigned short status;
92 [GetterRaisesException] readonly attribute DOMString statusText; 91 [GetterRaisesException] readonly attribute DOMString statusText;
93 92
94 // Extension 93 // Extension
95 void overrideMimeType(DOMString override); 94 void overrideMimeType(DOMString override);
96
97 // EventTarget interface
98 void addEventListener(DOMString type,
99 EventListener listener,
100 optional boolean useCapture);
101 void removeEventListener(DOMString type,
102 EventListener listener,
103 optional boolean useCapture);
104 [RaisesException] boolean dispatchEvent(Event evt);
105 }; 95 };
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.idl ('k') | Source/core/xml/XMLHttpRequestUpload.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698