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

Side by Side Diff: Source/core/dom/Attr.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/css/WebKitCSSTransformValue.idl ('k') | Source/core/dom/CDATASection.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, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 19 matching lines...) Expand all
30 30
31 namespace blink { 31 namespace blink {
32 32
33 // Attr can have Text children 33 // Attr can have Text children
34 // therefore it has to be a fullblown Node. The plan 34 // therefore it has to be a fullblown Node. The plan
35 // is to dynamically allocate a textchild and store the 35 // is to dynamically allocate a textchild and store the
36 // resulting nodevalue in the attribute upon 36 // resulting nodevalue in the attribute upon
37 // destruction. however, this is not yet implemented. 37 // destruction. however, this is not yet implemented.
38 38
39 class Attr FINAL : public ContainerNode { 39 class Attr FINAL : public ContainerNode {
40 DEFINE_WRAPPERTYPEINFO();
40 public: 41 public:
41 static PassRefPtrWillBeRawPtr<Attr> create(Element&, const QualifiedName&); 42 static PassRefPtrWillBeRawPtr<Attr> create(Element&, const QualifiedName&);
42 static PassRefPtrWillBeRawPtr<Attr> create(Document&, const QualifiedName&, const AtomicString& value); 43 static PassRefPtrWillBeRawPtr<Attr> create(Document&, const QualifiedName&, const AtomicString& value);
43 virtual ~Attr(); 44 virtual ~Attr();
44 45
45 String name() const { return m_name.toString(); } 46 String name() const { return m_name.toString(); }
46 bool specified() const { return true; } 47 bool specified() const { return true; }
47 Element* ownerElement() const { return m_element; } 48 Element* ownerElement() const { return m_element; }
48 49
49 const AtomicString& value() const; 50 const AtomicString& value() const;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // use a single field. 98 // use a single field.
98 AtomicString m_standaloneValueOrAttachedLocalName; 99 AtomicString m_standaloneValueOrAttachedLocalName;
99 unsigned m_ignoreChildrenChanged; 100 unsigned m_ignoreChildrenChanged;
100 }; 101 };
101 102
102 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); 103 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode());
103 104
104 } // namespace blink 105 } // namespace blink
105 106
106 #endif // Attr_h 107 #endif // Attr_h
OLDNEW
« no previous file with comments | « Source/core/css/WebKitCSSTransformValue.idl ('k') | Source/core/dom/CDATASection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698