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

Side by Side Diff: sky/engine/core/html/HTMLElement.h

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/engine/core/html/HTMLCanvasElement.idl ('k') | sky/engine/core/html/HTMLElement.cpp » ('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 * Copyright (C) 2004-2007, 2009, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2007, 2009, 2014 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 14 matching lines...) Expand all
25 25
26 #include "sky/engine/core/dom/Element.h" 26 #include "sky/engine/core/dom/Element.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 class HTMLElement : public Element { 30 class HTMLElement : public Element {
31 DEFINE_WRAPPERTYPEINFO(); 31 DEFINE_WRAPPERTYPEINFO();
32 public: 32 public:
33 DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(HTMLElement); 33 DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(HTMLElement);
34 34
35 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override;
36
37 protected: 35 protected:
38 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); 36 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType);
39 37
40 private: 38 private:
41 bool isHTMLElement() const = delete; // This will catch anyone doing an unne cessary check. 39 bool isHTMLElement() const = delete; // This will catch anyone doing an unne cessary check.
42 bool isStyledElement() const = delete; // This will catch anyone doing an un necessary check. 40 bool isStyledElement() const = delete; // This will catch anyone doing an un necessary check.
43 }; 41 };
44 42
45 DEFINE_ELEMENT_TYPE_CASTS(HTMLElement, isHTMLElement()); 43 DEFINE_ELEMENT_TYPE_CASTS(HTMLElement, isHTMLElement());
46 44
(...skipping 18 matching lines...) Expand all
65 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \ 63 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \
66 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \ 64 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \
67 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \ 65 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \
68 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 66 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
69 67
70 } // namespace blink 68 } // namespace blink
71 69
72 #include "gen/sky/core/HTMLElementTypeHelpers.h" 70 #include "gen/sky/core/HTMLElementTypeHelpers.h"
73 71
74 #endif // SKY_ENGINE_CORE_HTML_HTMLELEMENT_H_ 72 #endif // SKY_ENGINE_CORE_HTML_HTMLELEMENT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/html/HTMLCanvasElement.idl ('k') | sky/engine/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698