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

Side by Side Diff: Source/core/dom/Element.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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/dom/DocumentType.h ('k') | Source/core/dom/MessageChannel.h » ('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-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 StyleAffectedByEmpty = 1 << 1, 83 StyleAffectedByEmpty = 1 << 1,
84 IsInCanvasSubtree = 1 << 2, 84 IsInCanvasSubtree = 1 << 2,
85 ContainsFullScreenElement = 1 << 3, 85 ContainsFullScreenElement = 1 << 3,
86 IsInTopLayer = 1 << 4, 86 IsInTopLayer = 1 << 4,
87 HasPendingResources = 1 << 5, 87 HasPendingResources = 1 << 5,
88 88
89 NumberOfElementFlags = 6, // Required size of bitfield used to store the fla gs. 89 NumberOfElementFlags = 6, // Required size of bitfield used to store the fla gs.
90 }; 90 };
91 91
92 class Element : public ContainerNode { 92 class Element : public ContainerNode {
93 DEFINE_WRAPPERTYPEINFO();
93 public: 94 public:
94 static PassRefPtrWillBeRawPtr<Element> create(const QualifiedName&, Document *); 95 static PassRefPtrWillBeRawPtr<Element> create(const QualifiedName&, Document *);
95 virtual ~Element(); 96 virtual ~Element();
96 97
97 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); 98 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy);
98 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut); 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut);
99 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); 100 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste);
100 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); 101 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy);
101 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); 102 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut);
102 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste); 103 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste);
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 864 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
864 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 865 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
865 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 866 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
866 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 867 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
867 { \ 868 { \
868 return adoptRefWillBeNoop(new T(tagName, document)); \ 869 return adoptRefWillBeNoop(new T(tagName, document)); \
869 } 870 }
870 871
871 } // namespace 872 } // namespace
872 873
873 #endif 874 #endif // Element_h
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentType.h ('k') | Source/core/dom/MessageChannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698