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

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

Issue 696903002: Remove a lot of API surface from Element. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « sky/engine/core/frame/UseCounter.h ('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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void setDir(const AtomicString&); 49 void setDir(const AtomicString&);
50 50
51 void click(); 51 void click();
52 52
53 virtual void accessKeyAction(bool sendMouseEvents) override; 53 virtual void accessKeyAction(bool sendMouseEvents) override;
54 54
55 virtual bool isLabelable() const { return false; } 55 virtual bool isLabelable() const { return false; }
56 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html #interactive-content 56 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html #interactive-content
57 virtual bool isInteractiveContent() const; 57 virtual bool isInteractiveContent() const;
58 58
59 virtual bool matchesReadOnlyPseudoClass() const override;
60 virtual bool matchesReadWritePseudoClass() const override;
61
62 static const AtomicString& eventParameterName(); 59 static const AtomicString& eventParameterName();
63 60
64 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override; 61 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override;
65 62
66 protected: 63 protected:
67 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); 64 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType);
68 65
69 private: 66 private:
70 bool isHTMLElement() const = delete; // This will catch anyone doing an unne cessary check. 67 bool isHTMLElement() const = delete; // This will catch anyone doing an unne cessary check.
71 bool isStyledElement() const = delete; // This will catch anyone doing an un necessary check. 68 bool isStyledElement() const = delete; // This will catch anyone doing an un necessary check.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \ 106 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \
110 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \ 107 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \
111 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \ 108 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \
112 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 109 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
113 110
114 } // namespace blink 111 } // namespace blink
115 112
116 #include "core/HTMLElementTypeHelpers.h" 113 #include "core/HTMLElementTypeHelpers.h"
117 114
118 #endif // HTMLElement_h 115 #endif // HTMLElement_h
OLDNEW
« no previous file with comments | « sky/engine/core/frame/UseCounter.h ('k') | sky/engine/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698