| 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 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 IntPoint minimumScrollOffset() const; | 983 IntPoint minimumScrollOffset() const; |
| 984 IntPoint maximumScrollOffset() const; | 984 IntPoint maximumScrollOffset() const; |
| 985 void setScrollOffset(const IntPoint&) const; | 985 void setScrollOffset(const IntPoint&) const; |
| 986 | 986 |
| 987 // If this object itself scrolls, return its ScrollableArea. | 987 // If this object itself scrolls, return its ScrollableArea. |
| 988 virtual ScrollableArea* getScrollableAreaIfScrollable() const { return 0; } | 988 virtual ScrollableArea* getScrollableAreaIfScrollable() const { return 0; } |
| 989 | 989 |
| 990 // Modify or take an action on an object. | 990 // Modify or take an action on an object. |
| 991 virtual void increment() {} | 991 virtual void increment() {} |
| 992 virtual void decrement() {} | 992 virtual void decrement() {} |
| 993 bool performDefaultAction() const { return press(); } | 993 bool performDefaultAction() { return press(); } |
| 994 virtual bool press() const; | 994 virtual bool press(); |
| 995 // Make this object visible by scrolling as many nested scrollable views as | 995 // Make this object visible by scrolling as many nested scrollable views as |
| 996 // needed. | 996 // needed. |
| 997 void scrollToMakeVisible() const; | 997 void scrollToMakeVisible() const; |
| 998 // Same, but if the whole object can't be made visible, try for this subrect, | 998 // Same, but if the whole object can't be made visible, try for this subrect, |
| 999 // in local coordinates. | 999 // in local coordinates. |
| 1000 void scrollToMakeVisibleWithSubFocus(const IntRect&) const; | 1000 void scrollToMakeVisibleWithSubFocus(const IntRect&) const; |
| 1001 // Scroll this object to a given point in global coordinates of the top-level | 1001 // Scroll this object to a given point in global coordinates of the top-level |
| 1002 // window. | 1002 // window. |
| 1003 void scrollToGlobalPoint(const IntPoint&) const; | 1003 void scrollToGlobalPoint(const IntPoint&) const; |
| 1004 virtual void setFocused(bool) {} | 1004 virtual void setFocused(bool) {} |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 static unsigned s_numberOfLiveAXObjects; | 1106 static unsigned s_numberOfLiveAXObjects; |
| 1107 }; | 1107 }; |
| 1108 | 1108 |
| 1109 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 1109 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 1110 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ | 1110 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ |
| 1111 object.predicate) | 1111 object.predicate) |
| 1112 | 1112 |
| 1113 } // namespace blink | 1113 } // namespace blink |
| 1114 | 1114 |
| 1115 #endif // AXObject_h | 1115 #endif // AXObject_h |
| OLD | NEW |