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/dom/Element.h

Issue 27132002: Add missing event handler attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@notenumerable
Patch Set: alphabetize Created 7 years, 2 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
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/dom/Element.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 SpellcheckAttributeFalse, 182 SpellcheckAttributeFalse,
183 SpellcheckAttributeDefault 183 SpellcheckAttributeDefault
184 }; 184 };
185 185
186 class Element : public ContainerNode { 186 class Element : public ContainerNode {
187 public: 187 public:
188 static PassRefPtr<Element> create(const QualifiedName&, Document*); 188 static PassRefPtr<Element> create(const QualifiedName&, Document*);
189 virtual ~Element(); 189 virtual ~Element();
190 190
191 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); 191 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort);
192 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy);
193 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut);
194 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste);
195 DEFINE_ATTRIBUTE_EVENT_LISTENER(cancel);
196 DEFINE_ATTRIBUTE_EVENT_LISTENER(canplay);
197 DEFINE_ATTRIBUTE_EVENT_LISTENER(canplaythrough);
192 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); 198 DEFINE_ATTRIBUTE_EVENT_LISTENER(change);
193 DEFINE_ATTRIBUTE_EVENT_LISTENER(click); 199 DEFINE_ATTRIBUTE_EVENT_LISTENER(click);
200 DEFINE_ATTRIBUTE_EVENT_LISTENER(close);
194 DEFINE_ATTRIBUTE_EVENT_LISTENER(contextmenu); 201 DEFINE_ATTRIBUTE_EVENT_LISTENER(contextmenu);
202 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy);
203 DEFINE_ATTRIBUTE_EVENT_LISTENER(cuechange);
204 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut);
195 DEFINE_ATTRIBUTE_EVENT_LISTENER(dblclick); 205 DEFINE_ATTRIBUTE_EVENT_LISTENER(dblclick);
196 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragenter);
197 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragover);
198 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragleave);
199 DEFINE_ATTRIBUTE_EVENT_LISTENER(drop);
200 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragstart);
201 DEFINE_ATTRIBUTE_EVENT_LISTENER(drag); 206 DEFINE_ATTRIBUTE_EVENT_LISTENER(drag);
202 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragend); 207 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragend);
208 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragenter);
209 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragleave);
210 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragover);
211 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragstart);
212 DEFINE_ATTRIBUTE_EVENT_LISTENER(drop);
213 DEFINE_ATTRIBUTE_EVENT_LISTENER(durationchange);
214 DEFINE_ATTRIBUTE_EVENT_LISTENER(emptied);
215 DEFINE_ATTRIBUTE_EVENT_LISTENER(ended);
203 DEFINE_ATTRIBUTE_EVENT_LISTENER(input); 216 DEFINE_ATTRIBUTE_EVENT_LISTENER(input);
204 DEFINE_ATTRIBUTE_EVENT_LISTENER(invalid); 217 DEFINE_ATTRIBUTE_EVENT_LISTENER(invalid);
205 DEFINE_ATTRIBUTE_EVENT_LISTENER(keydown); 218 DEFINE_ATTRIBUTE_EVENT_LISTENER(keydown);
206 DEFINE_ATTRIBUTE_EVENT_LISTENER(keypress); 219 DEFINE_ATTRIBUTE_EVENT_LISTENER(keypress);
207 DEFINE_ATTRIBUTE_EVENT_LISTENER(keyup); 220 DEFINE_ATTRIBUTE_EVENT_LISTENER(keyup);
221 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadeddata);
222 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadedmetadata);
223 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadstart);
208 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousedown); 224 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousedown);
209 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseenter); 225 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseenter);
210 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseleave); 226 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseleave);
211 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousemove); 227 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousemove);
212 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseout); 228 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseout);
213 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseover); 229 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseover);
214 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseup); 230 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseup);
215 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousewheel); 231 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousewheel);
232 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste);
233 DEFINE_ATTRIBUTE_EVENT_LISTENER(pause);
234 DEFINE_ATTRIBUTE_EVENT_LISTENER(play);
235 DEFINE_ATTRIBUTE_EVENT_LISTENER(playing);
236 DEFINE_ATTRIBUTE_EVENT_LISTENER(progress);
237 DEFINE_ATTRIBUTE_EVENT_LISTENER(ratechange);
238 DEFINE_ATTRIBUTE_EVENT_LISTENER(reset);
216 DEFINE_ATTRIBUTE_EVENT_LISTENER(scroll); 239 DEFINE_ATTRIBUTE_EVENT_LISTENER(scroll);
240 DEFINE_ATTRIBUTE_EVENT_LISTENER(search);
241 DEFINE_ATTRIBUTE_EVENT_LISTENER(seeked);
242 DEFINE_ATTRIBUTE_EVENT_LISTENER(seeking);
217 DEFINE_ATTRIBUTE_EVENT_LISTENER(select); 243 DEFINE_ATTRIBUTE_EVENT_LISTENER(select);
244 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart);
245 DEFINE_ATTRIBUTE_EVENT_LISTENER(show);
246 DEFINE_ATTRIBUTE_EVENT_LISTENER(stalled);
218 DEFINE_ATTRIBUTE_EVENT_LISTENER(submit); 247 DEFINE_ATTRIBUTE_EVENT_LISTENER(submit);
248 DEFINE_ATTRIBUTE_EVENT_LISTENER(suspend);
249 DEFINE_ATTRIBUTE_EVENT_LISTENER(timeupdate);
250 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel);
251 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend);
252 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove);
253 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart);
254 DEFINE_ATTRIBUTE_EVENT_LISTENER(volumechange);
255 DEFINE_ATTRIBUTE_EVENT_LISTENER(waiting);
256 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange);
257 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror);
219 DEFINE_ATTRIBUTE_EVENT_LISTENER(wheel); 258 DEFINE_ATTRIBUTE_EVENT_LISTENER(wheel);
220 259
221 // These four attribute event handler attributes are overridden by HTMLBodyE lement 260 // These four attribute event handler attributes are overridden by HTMLBodyE lement
222 // and HTMLFrameSetElement to forward to the DOMWindow. 261 // and HTMLFrameSetElement to forward to the DOMWindow.
223 DECLARE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(blur); 262 DECLARE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(blur);
224 DECLARE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(error); 263 DECLARE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(error);
225 DECLARE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(focus); 264 DECLARE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(focus);
226 DECLARE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(load); 265 DECLARE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(load);
227 266
228 // WebKit extensions
229 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut);
230 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut);
231 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy);
232 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy);
233 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste);
234 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste);
235 DEFINE_ATTRIBUTE_EVENT_LISTENER(reset);
236 DEFINE_ATTRIBUTE_EVENT_LISTENER(search);
237 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart);
238 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart);
239 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove);
240 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend);
241 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel);
242 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange);
243 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror);
244
245 bool hasAttribute(const QualifiedName&) const; 267 bool hasAttribute(const QualifiedName&) const;
246 const AtomicString& getAttribute(const QualifiedName&) const; 268 const AtomicString& getAttribute(const QualifiedName&) const;
247 void setAttribute(const QualifiedName&, const AtomicString& value); 269 void setAttribute(const QualifiedName&, const AtomicString& value);
248 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString& value); 270 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString& value);
249 void removeAttribute(const QualifiedName&); 271 void removeAttribute(const QualifiedName&);
250 272
251 // Typed getters and setters for language bindings. 273 // Typed getters and setters for language bindings.
252 int getIntegralAttribute(const QualifiedName& attributeName) const; 274 int getIntegralAttribute(const QualifiedName& attributeName) const;
253 void setIntegralAttribute(const QualifiedName& attributeName, int value); 275 void setIntegralAttribute(const QualifiedName& attributeName, int value);
254 unsigned getUnsignedIntegralAttribute(const QualifiedName& attributeName) co nst; 276 unsigned getUnsignedIntegralAttribute(const QualifiedName& attributeName) co nst;
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 1084
1063 inline const Attribute* ElementData::attributeItem(unsigned index) const 1085 inline const Attribute* ElementData::attributeItem(unsigned index) const
1064 { 1086 {
1065 RELEASE_ASSERT(index < length()); 1087 RELEASE_ASSERT(index < length());
1066 return attributeBase() + index; 1088 return attributeBase() + index;
1067 } 1089 }
1068 1090
1069 } // namespace 1091 } // namespace
1070 1092
1071 #endif 1093 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/dom/Element.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698