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

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

Issue 2791943002: Re-land: Initial skeleton of Accessibility Object Model Phase 1 (Closed)
Patch Set: Fix for crash with test Created 3 years, 8 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 IntRect visibleBoundsInVisualViewport() const; 249 IntRect visibleBoundsInVisualViewport() const;
249 250
250 ClientRectList* getClientRects(); 251 ClientRectList* getClientRects();
251 ClientRect* getBoundingClientRect(); 252 ClientRect* getBoundingClientRect();
252 253
253 bool hasNonEmptyLayoutSize() const; 254 bool hasNonEmptyLayoutSize() const;
254 255
255 const AtomicString& computedRole(); 256 const AtomicString& computedRole();
256 String computedName(); 257 String computedName();
257 258
259 AccessibleNode* existingAccessibleNode() const;
260 AccessibleNode* accessibleNode();
261
258 void didMoveToNewDocument(Document&) override; 262 void didMoveToNewDocument(Document&) override;
259 263
260 void removeAttribute(const AtomicString& name); 264 void removeAttribute(const AtomicString& name);
261 void removeAttributeNS(const AtomicString& namespaceURI, 265 void removeAttributeNS(const AtomicString& namespaceURI,
262 const AtomicString& localName); 266 const AtomicString& localName);
263 267
264 Attr* detachAttribute(size_t index); 268 Attr* detachAttribute(size_t index);
265 269
266 Attr* getAttributeNode(const AtomicString& name); 270 Attr* getAttributeNode(const AtomicString& name);
267 Attr* getAttributeNodeNS(const AtomicString& namespaceURI, 271 Attr* getAttributeNodeNS(const AtomicString& namespaceURI,
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1225 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1222 static T* create(const QualifiedName&, Document&) 1226 static T* create(const QualifiedName&, Document&)
1223 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1227 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1224 T* T::create(const QualifiedName& tagName, Document& document) { \ 1228 T* T::create(const QualifiedName& tagName, Document& document) { \
1225 return new T(tagName, document); \ 1229 return new T(tagName, document); \
1226 } 1230 }
1227 1231
1228 } // namespace blink 1232 } // namespace blink
1229 1233
1230 #endif // Element_h 1234 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698