| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 409 |
| 410 // Whether this kind of node can receive focus by default. Most nodes are | 410 // Whether this kind of node can receive focus by default. Most nodes are |
| 411 // not focusable but some elements, such as form controls and links, are. | 411 // not focusable but some elements, such as form controls and links, are. |
| 412 virtual bool supportsFocus() const; | 412 virtual bool supportsFocus() const; |
| 413 // Whether the node can actually be focused. | 413 // Whether the node can actually be focused. |
| 414 virtual bool isFocusable() const; | 414 virtual bool isFocusable() const; |
| 415 virtual bool isKeyboardFocusable(KeyboardEvent*) const; | 415 virtual bool isKeyboardFocusable(KeyboardEvent*) const; |
| 416 virtual bool isMouseFocusable() const; | 416 virtual bool isMouseFocusable() const; |
| 417 virtual Node* focusDelegate(); | 417 virtual Node* focusDelegate(); |
| 418 | 418 |
| 419 #if ENABLE(DIALOG_ELEMENT) |
| 420 bool isInert() const; |
| 421 #endif |
| 422 |
| 419 enum UserSelectAllTreatment { | 423 enum UserSelectAllTreatment { |
| 420 UserSelectAllDoesNotAffectEditability, | 424 UserSelectAllDoesNotAffectEditability, |
| 421 UserSelectAllIsAlwaysNonEditable | 425 UserSelectAllIsAlwaysNonEditable |
| 422 }; | 426 }; |
| 423 bool isContentEditable(UserSelectAllTreatment = UserSelectAllDoesNotAffectEd
itability); | 427 bool isContentEditable(UserSelectAllTreatment = UserSelectAllDoesNotAffectEd
itability); |
| 424 bool isContentRichlyEditable(); | 428 bool isContentRichlyEditable(); |
| 425 | 429 |
| 426 void inspect(); | 430 void inspect(); |
| 427 | 431 |
| 428 bool rendererIsEditable(EditableType editableType = ContentIsEditable, UserS
electAllTreatment treatment = UserSelectAllIsAlwaysNonEditable) const | 432 bool rendererIsEditable(EditableType editableType = ContentIsEditable, UserS
electAllTreatment treatment = UserSelectAllIsAlwaysNonEditable) const |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 bool dispatchBeforeLoadEvent(const String& sourceURL); | 658 bool dispatchBeforeLoadEvent(const String& sourceURL); |
| 655 | 659 |
| 656 virtual void dispatchFocusEvent(PassRefPtr<Node> oldFocusedNode, FocusDirect
ion); | 660 virtual void dispatchFocusEvent(PassRefPtr<Node> oldFocusedNode, FocusDirect
ion); |
| 657 virtual void dispatchBlurEvent(PassRefPtr<Node> newFocusedNode); | 661 virtual void dispatchBlurEvent(PassRefPtr<Node> newFocusedNode); |
| 658 virtual void dispatchChangeEvent(); | 662 virtual void dispatchChangeEvent(); |
| 659 virtual void dispatchInputEvent(); | 663 virtual void dispatchInputEvent(); |
| 660 | 664 |
| 661 // Perform the default action for an event. | 665 // Perform the default action for an event. |
| 662 virtual void defaultEventHandler(Event*); | 666 virtual void defaultEventHandler(Event*); |
| 663 | 667 |
| 668 // Used for disabled form elements; if true, prevents mouse events from bein
g dispatched |
| 669 // to event listeners, and prevents DOMActivate events from being sent at al
l. |
| 670 virtual bool disabled() const; |
| 671 |
| 664 using TreeShared<Node>::ref; | 672 using TreeShared<Node>::ref; |
| 665 using TreeShared<Node>::deref; | 673 using TreeShared<Node>::deref; |
| 666 | 674 |
| 667 virtual EventTargetData* eventTargetData(); | 675 virtual EventTargetData* eventTargetData(); |
| 668 virtual EventTargetData* ensureEventTargetData(); | 676 virtual EventTargetData* ensureEventTargetData(); |
| 669 | 677 |
| 670 #if ENABLE(MICRODATA) | 678 #if ENABLE(MICRODATA) |
| 671 DOMSettableTokenList* itemProp(); | 679 DOMSettableTokenList* itemProp(); |
| 672 DOMSettableTokenList* itemRef(); | 680 DOMSettableTokenList* itemRef(); |
| 673 DOMSettableTokenList* itemType(); | 681 DOMSettableTokenList* itemType(); |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 | 913 |
| 906 } //namespace | 914 } //namespace |
| 907 | 915 |
| 908 #ifndef NDEBUG | 916 #ifndef NDEBUG |
| 909 // Outside the WebCore namespace for ease of invocation from gdb. | 917 // Outside the WebCore namespace for ease of invocation from gdb. |
| 910 void showTree(const WebCore::Node*); | 918 void showTree(const WebCore::Node*); |
| 911 void showNodePath(const WebCore::Node*); | 919 void showNodePath(const WebCore::Node*); |
| 912 #endif | 920 #endif |
| 913 | 921 |
| 914 #endif | 922 #endif |
| OLD | NEW |