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

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

Issue 2750533006: Initial skeleton of Accessibility Object Model Phase 1 (Closed)
Patch Set: Addressed feedback, removed validation Created 3 years, 9 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
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 24 matching lines...) Expand all
35 #include "core/dom/Document.h" 35 #include "core/dom/Document.h"
36 #include "core/dom/ElementData.h" 36 #include "core/dom/ElementData.h"
37 #include "core/dom/SpaceSplitString.h" 37 #include "core/dom/SpaceSplitString.h"
38 #include "platform/heap/Handle.h" 38 #include "platform/heap/Handle.h"
39 #include "platform/scroll/ScrollTypes.h" 39 #include "platform/scroll/ScrollTypes.h"
40 #include "public/platform/WebFocusType.h" 40 #include "public/platform/WebFocusType.h"
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class ElementAnimations; 44 class ElementAnimations;
45 class AccessibleNode;
45 class Attr; 46 class Attr;
46 class Attribute; 47 class Attribute;
47 class CSSStyleDeclaration; 48 class CSSStyleDeclaration;
48 class ClientRect; 49 class ClientRect;
49 class ClientRectList; 50 class ClientRectList;
50 class CompositorMutation; 51 class CompositorMutation;
51 class CustomElementDefinition; 52 class CustomElementDefinition;
52 class DOMStringMap; 53 class DOMStringMap;
53 class DOMTokenList; 54 class DOMTokenList;
54 class ElementRareData; 55 class ElementRareData;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 IntRect visibleBoundsInVisualViewport() const; 248 IntRect visibleBoundsInVisualViewport() const;
248 249
249 ClientRectList* getClientRects(); 250 ClientRectList* getClientRects();
250 ClientRect* getBoundingClientRect(); 251 ClientRect* getBoundingClientRect();
251 252
252 bool hasNonEmptyLayoutSize() const; 253 bool hasNonEmptyLayoutSize() const;
253 254
254 const AtomicString& computedRole(); 255 const AtomicString& computedRole();
255 String computedName(); 256 String computedName();
256 257
258 AccessibleNode* existingAccessibleNode() const;
259 AccessibleNode* accessibleNode();
260
257 void didMoveToNewDocument(Document&) override; 261 void didMoveToNewDocument(Document&) override;
258 262
259 void removeAttribute(const AtomicString& name); 263 void removeAttribute(const AtomicString& name);
260 void removeAttributeNS(const AtomicString& namespaceURI, 264 void removeAttributeNS(const AtomicString& namespaceURI,
261 const AtomicString& localName); 265 const AtomicString& localName);
262 266
263 Attr* detachAttribute(size_t index); 267 Attr* detachAttribute(size_t index);
264 268
265 Attr* getAttributeNode(const AtomicString& name); 269 Attr* getAttributeNode(const AtomicString& name);
266 Attr* getAttributeNodeNS(const AtomicString& namespaceURI, 270 Attr* getAttributeNodeNS(const AtomicString& namespaceURI,
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1199 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1196 static T* create(const QualifiedName&, Document&) 1200 static T* create(const QualifiedName&, Document&)
1197 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1201 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1198 T* T::create(const QualifiedName& tagName, Document& document) { \ 1202 T* T::create(const QualifiedName& tagName, Document& document) { \
1199 return new T(tagName, document); \ 1203 return new T(tagName, document); \
1200 } 1204 }
1201 1205
1202 } // namespace blink 1206 } // namespace blink
1203 1207
1204 #endif // Element_h 1208 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698