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

Side by Side Diff: Source/core/html/HTMLElement.idl

Issue 23797002: Hack to add accessors for WebIDL attributes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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/html/HTMLDivElement.idl ('k') | move_attributes.html » ('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) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 [ 21 [
22 CustomToV8 22 CustomToV8
23 ] interface HTMLElement : Element { 23 ] interface HTMLElement : Element {
24 //attribute DOMString testAttrOnHTMLElement;
25 //[ExposeV8GetterAndSetter] attribute DOMString testAttrOnHTMLElementWithGette rAndSetter;
26
24 [Reflect, TreatNullAs=NullString] attribute DOMString title; 27 [Reflect, TreatNullAs=NullString] attribute DOMString title;
25 [Reflect, TreatNullAs=NullString] attribute DOMString lang; 28 [Reflect, TreatNullAs=NullString] attribute DOMString lang;
26 attribute boolean translate; 29 attribute boolean translate;
27 [Reflect, TreatNullAs=NullString] attribute DOMString dir; 30 [Reflect, TreatNullAs=NullString] attribute DOMString dir;
28 31
29 [CustomElementCallbacks] attribute long tabIndex; 32 [CustomElementCallbacks] attribute long tabIndex;
30 [CustomElementCallbacks] attribute boolean draggable; 33 [CustomElementCallbacks] attribute boolean draggable;
31 [Reflect, TreatNullAs=NullString] attribute DOMString webkitdropzone; 34 [Reflect, TreatNullAs=NullString] attribute DOMString webkitdropzone;
32 [Reflect] attribute boolean hidden; 35 [Reflect] attribute boolean hidden;
33 [Reflect, TreatNullAs=NullString] attribute DOMString accessKey; 36 [Reflect, TreatNullAs=NullString] attribute DOMString accessKey;
34 37
35 // Extensions 38 // Extensions
36 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityL ogging=SetterForIsolatedWorlds, SetterRaisesException] attribute DOMString inner HTML; 39 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityL ogging=SetterForIsolatedWorlds, SetterRaisesException, ExposeV8GetterAndSetter] attribute DOMString innerHTML;
37 [TreatNullAs=NullString, CustomElementCallbacks, SetterRaisesException] attr ibute DOMString innerText; 40 [TreatNullAs=NullString, CustomElementCallbacks, SetterRaisesException] attr ibute DOMString innerText;
38 [TreatNullAs=NullString, CustomElementCallbacks, SetterRaisesException] attr ibute DOMString outerHTML; 41 [TreatNullAs=NullString, CustomElementCallbacks, SetterRaisesException] attr ibute DOMString outerHTML;
39 [TreatNullAs=NullString, CustomElementCallbacks, SetterRaisesException] attr ibute DOMString outerText; 42 [TreatNullAs=NullString, CustomElementCallbacks, SetterRaisesException] attr ibute DOMString outerText;
40 43
41 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement([Default=Undefined] optional DOMString where, 44 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement([Default=Undefined] optional DOMString where,
42 [Default=Undefined] optional Element element); 45 [Default=Undefined] optional Element element);
43 [CustomElementCallbacks, RaisesException] void insertAdjacentHTML([Default=U ndefined] optional DOMString where, 46 [CustomElementCallbacks, RaisesException] void insertAdjacentHTML([Default=U ndefined] optional DOMString where,
44 [Default=Undefined] optional DOMString html); 47 [Default=Undefined] optional DOMString html);
45 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText([Def ault=Undefined] optional DOMString where, 48 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText([Def ault=Undefined] optional DOMString where,
46 [Default=Undefined] optional DOMString text); 49 [Default=Undefined] optional DOMString text);
47 50
48 [RuntimeEnabled=IMEAPI] readonly attribute InputMethodContext inputMethodCon text; 51 [RuntimeEnabled=IMEAPI] readonly attribute InputMethodContext inputMethodCon text;
49 52
50 [TreatNullAs=NullString, CustomElementCallbacks, SetterRaisesException] attr ibute DOMString contentEditable; 53 [TreatNullAs=NullString, CustomElementCallbacks, SetterRaisesException] attr ibute DOMString contentEditable;
51 readonly attribute boolean isContentEditable; 54 readonly attribute boolean isContentEditable;
52 55
53 attribute boolean spellcheck; 56 attribute boolean spellcheck;
54 57
55 void click(); 58 void click();
56 }; 59 };
57 60
58 HTMLElement implements GlobalEventHandlers; 61 HTMLElement implements GlobalEventHandlers;
OLDNEW
« no previous file with comments | « Source/core/html/HTMLDivElement.idl ('k') | move_attributes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698