OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Nuanti Ltd. | 3 * Copyright (C) 2008 Nuanti Ltd. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 virtual FrameView* documentFrameView() const; | 507 virtual FrameView* documentFrameView() const; |
508 virtual Element* anchorElement() const { return 0; } | 508 virtual Element* anchorElement() const { return 0; } |
509 virtual Element* actionElement() const { return 0; } | 509 virtual Element* actionElement() const { return 0; } |
510 virtual Widget* widgetForAttachmentView() const { return 0; } | 510 virtual Widget* widgetForAttachmentView() const { return 0; } |
511 String language() const; | 511 String language() const; |
512 bool hasAttribute(const QualifiedName&) const; | 512 bool hasAttribute(const QualifiedName&) const; |
513 const AtomicString& getAttribute(const QualifiedName&) const; | 513 const AtomicString& getAttribute(const QualifiedName&) const; |
514 | 514 |
515 // Selected text. | 515 // Selected text. |
516 virtual PlainTextRange selectedTextRange() const { return PlainTextRange();
} | 516 virtual PlainTextRange selectedTextRange() const { return PlainTextRange();
} |
517 virtual String selectedText() const { return String(); } | |
518 | 517 |
519 // Modify or take an action on an object. | 518 // Modify or take an action on an object. |
520 virtual void increment() { } | 519 virtual void increment() { } |
521 virtual void decrement() { } | 520 virtual void decrement() { } |
522 bool performDefaultAction() const { return press(); } | 521 bool performDefaultAction() const { return press(); } |
523 virtual bool press() const; | 522 virtual bool press() const; |
524 // Make this object visible by scrolling as many nested scrollable views as
needed. | 523 // Make this object visible by scrolling as many nested scrollable views as
needed. |
525 void scrollToMakeVisible() const; | 524 void scrollToMakeVisible() const; |
526 // Same, but if the whole object can't be made visible, try for this subrect
, in local coordinates. | 525 // Same, but if the whole object can't be made visible, try for this subrect
, in local coordinates. |
527 void scrollToMakeVisibleWithSubFocus(const IntRect&) const; | 526 void scrollToMakeVisibleWithSubFocus(const IntRect&) const; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 | 575 |
577 bool m_detached; | 576 bool m_detached; |
578 }; | 577 }; |
579 | 578 |
580 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 579 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
581 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 580 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
582 | 581 |
583 } // namespace WebCore | 582 } // namespace WebCore |
584 | 583 |
585 #endif // AXObject_h | 584 #endif // AXObject_h |
OLD | NEW |