| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include "core/CSSPropertyNames.h" | 28 #include "core/CSSPropertyNames.h" |
| 29 #include "core/HTMLNames.h" | 29 #include "core/HTMLNames.h" |
| 30 #include "core/css/CSSPrimitiveValue.h" | 30 #include "core/css/CSSPrimitiveValue.h" |
| 31 #include "core/css/CSSSelector.h" | 31 #include "core/css/CSSSelector.h" |
| 32 #include "core/dom/Attribute.h" | 32 #include "core/dom/Attribute.h" |
| 33 #include "core/dom/ContainerNode.h" | 33 #include "core/dom/ContainerNode.h" |
| 34 #include "core/dom/ElementData.h" | 34 #include "core/dom/ElementData.h" |
| 35 #include "core/dom/SpaceSplitString.h" | 35 #include "core/dom/SpaceSplitString.h" |
| 36 #include "core/html/CollectionType.h" | 36 #include "core/html/CollectionType.h" |
| 37 #include "core/page/FocusType.h" | |
| 38 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 38 #include "public/platform/WebFocusType.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class ActiveAnimations; | 42 class ActiveAnimations; |
| 43 class Attr; | 43 class Attr; |
| 44 class Attribute; | 44 class Attribute; |
| 45 class CSSStyleDeclaration; | 45 class CSSStyleDeclaration; |
| 46 class ClientRect; | 46 class ClientRect; |
| 47 class ClientRectList; | 47 class ClientRectList; |
| 48 class CustomElementDefinition; | 48 class CustomElementDefinition; |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 | 356 |
| 357 virtual bool isLiveLink() const { return false; } | 357 virtual bool isLiveLink() const { return false; } |
| 358 KURL hrefURL() const; | 358 KURL hrefURL() const; |
| 359 | 359 |
| 360 KURL getURLAttribute(const QualifiedName&) const; | 360 KURL getURLAttribute(const QualifiedName&) const; |
| 361 KURL getNonEmptyURLAttribute(const QualifiedName&) const; | 361 KURL getNonEmptyURLAttribute(const QualifiedName&) const; |
| 362 | 362 |
| 363 virtual const AtomicString imageSourceURL() const; | 363 virtual const AtomicString imageSourceURL() const; |
| 364 virtual Image* imageContents() { return nullptr; } | 364 virtual Image* imageContents() { return nullptr; } |
| 365 | 365 |
| 366 virtual void focus(bool restorePreviousSelection = true, FocusType = FocusTy
peNone); | 366 virtual void focus(bool restorePreviousSelection = true, WebFocusType = WebF
ocusTypeNone); |
| 367 virtual void updateFocusAppearance(bool restorePreviousSelection); | 367 virtual void updateFocusAppearance(bool restorePreviousSelection); |
| 368 virtual void blur(); | 368 virtual void blur(); |
| 369 // Whether this element can receive focus at all. Most elements are not | 369 // Whether this element can receive focus at all. Most elements are not |
| 370 // focusable but some elements, such as form controls and links, are. Unlike | 370 // focusable but some elements, such as form controls and links, are. Unlike |
| 371 // rendererIsFocusable(), this method may be called when layout is not up to | 371 // rendererIsFocusable(), this method may be called when layout is not up to |
| 372 // date, so it must not use the renderer to determine focusability. | 372 // date, so it must not use the renderer to determine focusability. |
| 373 virtual bool supportsFocus() const; | 373 virtual bool supportsFocus() const; |
| 374 // Whether the node can actually be focused. | 374 // Whether the node can actually be focused. |
| 375 bool isFocusable() const; | 375 bool isFocusable() const; |
| 376 virtual bool isKeyboardFocusable() const; | 376 virtual bool isKeyboardFocusable() const; |
| 377 virtual bool isMouseFocusable() const; | 377 virtual bool isMouseFocusable() const; |
| 378 virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusType); | 378 virtual void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType); |
| 379 virtual void dispatchBlurEvent(Element* newFocusedElement); | 379 virtual void dispatchBlurEvent(Element* newFocusedElement); |
| 380 virtual void dispatchFocusInEvent(const AtomicString& eventType, Element* ol
dFocusedElement, FocusType); | 380 virtual void dispatchFocusInEvent(const AtomicString& eventType, Element* ol
dFocusedElement, WebFocusType); |
| 381 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse
dElement); | 381 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse
dElement); |
| 382 | 382 |
| 383 String innerText(); | 383 String innerText(); |
| 384 String outerText(); | 384 String outerText(); |
| 385 String innerHTML() const; | 385 String innerHTML() const; |
| 386 String outerHTML() const; | 386 String outerHTML() const; |
| 387 void setInnerHTML(const String&, ExceptionState&); | 387 void setInnerHTML(const String&, ExceptionState&); |
| 388 void setOuterHTML(const String&, ExceptionState&); | 388 void setOuterHTML(const String&, ExceptionState&); |
| 389 | 389 |
| 390 Element* insertAdjacentElement(const String& where, Element* newChild, Excep
tionState&); | 390 Element* insertAdjacentElement(const String& where, Element* newChild, Excep
tionState&); |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 880 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 881 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 881 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 882 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 882 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 883 { \ | 883 { \ |
| 884 return adoptRefWillBeNoop(new T(tagName, document)); \ | 884 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 885 } | 885 } |
| 886 | 886 |
| 887 } // namespace | 887 } // namespace |
| 888 | 888 |
| 889 #endif // Element_h | 889 #endif // Element_h |
| OLD | NEW |