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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 ScrollStateCallback* getApplyScroll(); | 412 ScrollStateCallback* getApplyScroll(); |
413 | 413 |
414 // Whether this element can receive focus at all. Most elements are not | 414 // Whether this element can receive focus at all. Most elements are not |
415 // focusable but some elements, such as form controls and links, are. Unlike | 415 // focusable but some elements, such as form controls and links, are. Unlike |
416 // layoutObjectIsFocusable(), this method may be called when layout is not u
p to | 416 // layoutObjectIsFocusable(), this method may be called when layout is not u
p to |
417 // date, so it must not use the layoutObject to determine focusability. | 417 // date, so it must not use the layoutObject to determine focusability. |
418 virtual bool supportsFocus() const; | 418 virtual bool supportsFocus() const; |
419 // isFocusable(), isKeyboardFocusable(), and isMouseFocusable() check | 419 // isFocusable(), isKeyboardFocusable(), and isMouseFocusable() check |
420 // whether the element can actually be focused. Callers should ensure | 420 // whether the element can actually be focused. Callers should ensure |
421 // ComputedStyle is up to date; | 421 // ComputedStyle is up to date; |
422 // e.g. by calling Document::updateLayoutTreeIgnorePendingStylesheets(). | 422 // e.g. by calling Document::updateStyleAndLayoutTreeIgnorePendingStylesheet
s(). |
423 bool isFocusable() const; | 423 bool isFocusable() const; |
424 virtual bool isKeyboardFocusable() const; | 424 virtual bool isKeyboardFocusable() const; |
425 virtual bool isMouseFocusable() const; | 425 virtual bool isMouseFocusable() const; |
426 bool isFocusedElementInDocument() const; | 426 bool isFocusedElementInDocument() const; |
427 | 427 |
428 virtual void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType, In
putDeviceCapabilities* sourceCapabilities = nullptr); | 428 virtual void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType, In
putDeviceCapabilities* sourceCapabilities = nullptr); |
429 virtual void dispatchBlurEvent(Element* newFocusedElement, WebFocusType, Inp
utDeviceCapabilities* sourceCapabilities = nullptr); | 429 virtual void dispatchBlurEvent(Element* newFocusedElement, WebFocusType, Inp
utDeviceCapabilities* sourceCapabilities = nullptr); |
430 virtual void dispatchFocusInEvent(const AtomicString& eventType, Element* ol
dFocusedElement, WebFocusType, InputDeviceCapabilities* sourceCapabilities = nul
lptr); | 430 virtual void dispatchFocusInEvent(const AtomicString& eventType, Element* ol
dFocusedElement, WebFocusType, InputDeviceCapabilities* sourceCapabilities = nul
lptr); |
431 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse
dElement, InputDeviceCapabilities* sourceCapabilities = nullptr); | 431 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse
dElement, InputDeviceCapabilities* sourceCapabilities = nullptr); |
432 | 432 |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 static T* create(const QualifiedName&, Document&) | 961 static T* create(const QualifiedName&, Document&) |
962 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 962 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
963 T* T::create(const QualifiedName& tagName, Document& document) \ | 963 T* T::create(const QualifiedName& tagName, Document& document) \ |
964 { \ | 964 { \ |
965 return new T(tagName, document); \ | 965 return new T(tagName, document); \ |
966 } | 966 } |
967 | 967 |
968 } // namespace blink | 968 } // namespace blink |
969 | 969 |
970 #endif // Element_h | 970 #endif // Element_h |
OLD | NEW |