OLD | NEW |
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 class ElementRareData; | 54 class ElementRareData; |
55 class ElementShadow; | 55 class ElementShadow; |
56 class ExceptionState; | 56 class ExceptionState; |
57 class Image; | 57 class Image; |
58 class IntSize; | 58 class IntSize; |
59 class Locale; | 59 class Locale; |
60 class MutableStylePropertySet; | 60 class MutableStylePropertySet; |
61 class PropertySetCSSStyleDeclaration; | 61 class PropertySetCSSStyleDeclaration; |
62 class PseudoElement; | 62 class PseudoElement; |
63 class ScrollState; | 63 class ScrollState; |
| 64 class ScrollStateCallback; |
64 class ScrollToOptions; | 65 class ScrollToOptions; |
65 class ShadowRoot; | 66 class ShadowRoot; |
66 class ShadowRootInit; | 67 class ShadowRootInit; |
67 class StylePropertySet; | 68 class StylePropertySet; |
68 | 69 |
69 enum SpellcheckAttributeState { | 70 enum SpellcheckAttributeState { |
70 SpellcheckAttributeTrue, | 71 SpellcheckAttributeTrue, |
71 SpellcheckAttributeFalse, | 72 SpellcheckAttributeFalse, |
72 SpellcheckAttributeDefault | 73 SpellcheckAttributeDefault |
73 }; | 74 }; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // will be returned. This is not a trivial getter and its return value shoul
d be cached | 163 // will be returned. This is not a trivial getter and its return value shoul
d be cached |
163 // for performance. | 164 // for performance. |
164 AttributeCollection attributes() const; | 165 AttributeCollection attributes() const; |
165 // This variant will not update the potentially invalid attributes. To be us
ed when not interested | 166 // This variant will not update the potentially invalid attributes. To be us
ed when not interested |
166 // in style attribute or one of the SVG animation attributes. | 167 // in style attribute or one of the SVG animation attributes. |
167 AttributeCollection attributesWithoutUpdate() const; | 168 AttributeCollection attributesWithoutUpdate() const; |
168 | 169 |
169 void scrollIntoView(bool alignToTop = true); | 170 void scrollIntoView(bool alignToTop = true); |
170 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); | 171 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); |
171 | 172 |
172 void distributeScroll(ScrollState&); | |
173 void applyScroll(ScrollState&); | |
174 | |
175 int offsetLeft(); | 173 int offsetLeft(); |
176 int offsetTop(); | 174 int offsetTop(); |
177 int offsetWidth(); | 175 int offsetWidth(); |
178 int offsetHeight(); | 176 int offsetHeight(); |
179 | 177 |
180 Element* offsetParent(); | 178 Element* offsetParent(); |
181 int clientLeft(); | 179 int clientLeft(); |
182 int clientTop(); | 180 int clientTop(); |
183 int clientWidth(); | 181 int clientWidth(); |
184 int clientHeight(); | 182 int clientHeight(); |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 | 360 |
363 KURL getURLAttribute(const QualifiedName&) const; | 361 KURL getURLAttribute(const QualifiedName&) const; |
364 KURL getNonEmptyURLAttribute(const QualifiedName&) const; | 362 KURL getNonEmptyURLAttribute(const QualifiedName&) const; |
365 | 363 |
366 virtual const AtomicString imageSourceURL() const; | 364 virtual const AtomicString imageSourceURL() const; |
367 virtual Image* imageContents() { return nullptr; } | 365 virtual Image* imageContents() { return nullptr; } |
368 | 366 |
369 virtual void focus(bool restorePreviousSelection = true, WebFocusType = WebF
ocusTypeNone); | 367 virtual void focus(bool restorePreviousSelection = true, WebFocusType = WebF
ocusTypeNone); |
370 virtual void updateFocusAppearance(bool restorePreviousSelection); | 368 virtual void updateFocusAppearance(bool restorePreviousSelection); |
371 virtual void blur(); | 369 virtual void blur(); |
| 370 |
| 371 void setDistributeScroll(ScrollStateCallback*); |
| 372 ScriptValue distributeScroll(ScriptState*); |
| 373 void nativeDistributeScroll(ScrollState&); |
| 374 void setApplyScroll(ScrollStateCallback*); |
| 375 ScriptValue applyScroll(ScriptState*); |
| 376 void nativeApplyScroll(ScrollState&); |
| 377 |
| 378 void callDistributeScroll(ScrollState&); |
| 379 void callApplyScroll(ScrollState&); |
| 380 |
372 // Whether this element can receive focus at all. Most elements are not | 381 // Whether this element can receive focus at all. Most elements are not |
373 // focusable but some elements, such as form controls and links, are. Unlike | 382 // focusable but some elements, such as form controls and links, are. Unlike |
374 // layoutObjectIsFocusable(), this method may be called when layout is not u
p to | 383 // layoutObjectIsFocusable(), this method may be called when layout is not u
p to |
375 // date, so it must not use the layoutObject to determine focusability. | 384 // date, so it must not use the layoutObject to determine focusability. |
376 virtual bool supportsFocus() const; | 385 virtual bool supportsFocus() const; |
377 // Whether the node can actually be focused. | 386 // Whether the node can actually be focused. |
378 bool isFocusable() const; | 387 bool isFocusable() const; |
379 bool isFocusedElementInDocument() const; | 388 bool isFocusedElementInDocument() const; |
380 virtual bool isKeyboardFocusable() const; | 389 virtual bool isKeyboardFocusable() const; |
381 virtual bool isMouseFocusable() const; | 390 virtual bool isMouseFocusable() const; |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 886 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
878 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 887 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
879 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 888 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
880 { \ | 889 { \ |
881 return adoptRefWillBeNoop(new T(tagName, document)); \ | 890 return adoptRefWillBeNoop(new T(tagName, document)); \ |
882 } | 891 } |
883 | 892 |
884 } // namespace | 893 } // namespace |
885 | 894 |
886 #endif // Element_h | 895 #endif // Element_h |
OLD | NEW |