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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 virtual short tabIndex() const; | 405 virtual short tabIndex() const; |
406 | 406 |
407 // Whether this kind of node can receive focus by default. Most nodes are | 407 // Whether this kind of node can receive focus by default. Most nodes are |
408 // not focusable but some elements, such as form controls and links, are. | 408 // not focusable but some elements, such as form controls and links, are. |
409 virtual bool supportsFocus() const; | 409 virtual bool supportsFocus() const; |
410 // Whether the node can actually be focused. | 410 // Whether the node can actually be focused. |
411 virtual bool isFocusable() const; | 411 virtual bool isFocusable() const; |
412 virtual bool isKeyboardFocusable(KeyboardEvent*) const; | 412 virtual bool isKeyboardFocusable(KeyboardEvent*) const; |
413 virtual bool isMouseFocusable() const; | 413 virtual bool isMouseFocusable() const; |
414 virtual Node* focusDelegate(); | 414 virtual Node* focusDelegate(); |
| 415 // This is called only when the node is focused. |
| 416 virtual bool shouldHaveFocusAppearance() const; |
415 | 417 |
416 enum UserSelectAllTreatment { | 418 enum UserSelectAllTreatment { |
417 UserSelectAllDoesNotAffectEditability, | 419 UserSelectAllDoesNotAffectEditability, |
418 UserSelectAllIsAlwaysNonEditable | 420 UserSelectAllIsAlwaysNonEditable |
419 }; | 421 }; |
420 bool isContentEditable(UserSelectAllTreatment = UserSelectAllDoesNotAffectEd
itability); | 422 bool isContentEditable(UserSelectAllTreatment = UserSelectAllDoesNotAffectEd
itability); |
421 bool isContentRichlyEditable(); | 423 bool isContentRichlyEditable(); |
422 | 424 |
423 bool rendererIsEditable(EditableType editableType = ContentIsEditable, UserS
electAllTreatment treatment = UserSelectAllIsAlwaysNonEditable) const | 425 bool rendererIsEditable(EditableType editableType = ContentIsEditable, UserS
electAllTreatment treatment = UserSelectAllIsAlwaysNonEditable) const |
424 { | 426 { |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent
Options = SendNoEvents, SimulatedClickVisualOptions = ShowPressedLook); | 655 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent
Options = SendNoEvents, SimulatedClickVisualOptions = ShowPressedLook); |
654 | 656 |
655 virtual bool dispatchBeforeLoadEvent(const String& sourceURL); | 657 virtual bool dispatchBeforeLoadEvent(const String& sourceURL); |
656 virtual void dispatchFocusEvent(PassRefPtr<Node> oldFocusedNode, FocusDirect
ion); | 658 virtual void dispatchFocusEvent(PassRefPtr<Node> oldFocusedNode, FocusDirect
ion); |
657 virtual void dispatchBlurEvent(PassRefPtr<Node> newFocusedNode); | 659 virtual void dispatchBlurEvent(PassRefPtr<Node> newFocusedNode); |
658 virtual void dispatchChangeEvent(); | 660 virtual void dispatchChangeEvent(); |
659 virtual void dispatchInputEvent(); | 661 virtual void dispatchInputEvent(); |
660 | 662 |
661 // Perform the default action for an event. | 663 // Perform the default action for an event. |
662 virtual void defaultEventHandler(Event*); | 664 virtual void defaultEventHandler(Event*); |
| 665 virtual void willCallDefaultEventHandler(const Event&); |
663 | 666 |
664 using TreeShared<Node>::ref; | 667 using TreeShared<Node>::ref; |
665 using TreeShared<Node>::deref; | 668 using TreeShared<Node>::deref; |
666 | 669 |
667 virtual EventTargetData* eventTargetData(); | 670 virtual EventTargetData* eventTargetData(); |
668 virtual EventTargetData* ensureEventTargetData(); | 671 virtual EventTargetData* ensureEventTargetData(); |
669 | 672 |
670 void getRegisteredMutationObserversOfType(HashMap<MutationObserver*, Mutatio
nRecordDeliveryOptions>&, MutationObserver::MutationType, const QualifiedName* a
ttributeName); | 673 void getRegisteredMutationObserversOfType(HashMap<MutationObserver*, Mutatio
nRecordDeliveryOptions>&, MutationObserver::MutationType, const QualifiedName* a
ttributeName); |
671 void registerMutationObserver(MutationObserver*, MutationObserverOptions, co
nst HashSet<AtomicString>& attributeFilter); | 674 void registerMutationObserver(MutationObserver*, MutationObserverOptions, co
nst HashSet<AtomicString>& attributeFilter); |
672 void unregisterMutationObserver(MutationObserverRegistration*); | 675 void unregisterMutationObserver(MutationObserverRegistration*); |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 | 911 |
909 } //namespace | 912 } //namespace |
910 | 913 |
911 #ifndef NDEBUG | 914 #ifndef NDEBUG |
912 // Outside the WebCore namespace for ease of invocation from gdb. | 915 // Outside the WebCore namespace for ease of invocation from gdb. |
913 void showTree(const WebCore::Node*); | 916 void showTree(const WebCore::Node*); |
914 void showNodePath(const WebCore::Node*); | 917 void showNodePath(const WebCore::Node*); |
915 #endif | 918 #endif |
916 | 919 |
917 #endif | 920 #endif |
OLD | NEW |