| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 virtual void focus(bool restorePreviousSelection = true, WebFocusType = WebF
ocusTypeNone); | 367 virtual void focus(bool restorePreviousSelection = true, WebFocusType = WebF
ocusTypeNone); |
| 368 virtual void updateFocusAppearance(bool restorePreviousSelection); | 368 virtual void updateFocusAppearance(bool restorePreviousSelection); |
| 369 virtual void blur(); | 369 virtual void blur(); |
| 370 // Whether this element can receive focus at all. Most elements are not | 370 // Whether this element can receive focus at all. Most elements are not |
| 371 // focusable but some elements, such as form controls and links, are. Unlike | 371 // focusable but some elements, such as form controls and links, are. Unlike |
| 372 // rendererIsFocusable(), this method may be called when layout is not up to | 372 // rendererIsFocusable(), this method may be called when layout is not up to |
| 373 // date, so it must not use the renderer to determine focusability. | 373 // date, so it must not use the renderer to determine focusability. |
| 374 virtual bool supportsFocus() const; | 374 virtual bool supportsFocus() const; |
| 375 // Whether the node can actually be focused. | 375 // Whether the node can actually be focused. |
| 376 bool isFocusable() const; | 376 bool isFocusable() const; |
| 377 bool isTabStop() const; |
| 378 void setIsTabStop(bool); |
| 377 virtual bool isKeyboardFocusable() const; | 379 virtual bool isKeyboardFocusable() const; |
| 378 virtual bool isMouseFocusable() const; | 380 virtual bool isMouseFocusable() const; |
| 379 virtual void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType); | 381 virtual void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType); |
| 380 virtual void dispatchBlurEvent(Element* newFocusedElement); | 382 virtual void dispatchBlurEvent(Element* newFocusedElement); |
| 381 virtual void dispatchFocusInEvent(const AtomicString& eventType, Element* ol
dFocusedElement, WebFocusType); | 383 virtual void dispatchFocusInEvent(const AtomicString& eventType, Element* ol
dFocusedElement, WebFocusType); |
| 382 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse
dElement); | 384 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse
dElement); |
| 383 | 385 |
| 384 String innerText(); | 386 String innerText(); |
| 385 String outerText(); | 387 String outerText(); |
| 386 String innerHTML() const; | 388 String innerHTML() const; |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 881 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 880 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 882 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 881 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 883 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 882 { \ | 884 { \ |
| 883 return adoptRefWillBeNoop(new T(tagName, document)); \ | 885 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 884 } | 886 } |
| 885 | 887 |
| 886 } // namespace | 888 } // namespace |
| 887 | 889 |
| 888 #endif // Element_h | 890 #endif // Element_h |
| OLD | NEW |