~ubuntu-branches/ubuntu/lucid/webkit/lucid-security

« back to all changes in this revision

Viewing changes to WebCore/accessibility/AccessibilityObject.h

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-03-17 15:05:11 UTC
  • mfrom: (1.2.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100317150511-nyun8s32wgt8dhh9
Tags: 1.1.90-1
* New upstream release
- This marks the preparation for the 1.2 stable branch
* debian/copyright:
- updated with changes since 1.1.22
* debian/libwebkit-1.0-2.symbols:
- added new API introduced in 1.1.23

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include "Range.h"
35
35
#include "VisiblePosition.h"
36
36
#include "VisibleSelection.h"
37
 
#include <wtf/Platform.h>
38
37
#include <wtf/RefPtr.h>
39
38
#include <wtf/Vector.h>
40
39
 
204
203
    AccessibilityOrientationHorizontal,
205
204
};
206
205
    
207
 
enum AccessibilityObjectPlatformInclusion {
 
206
enum AccessibilityObjectInclusion {
208
207
    IncludeObject,
209
208
    IgnoreObject,
210
209
    DefaultBehavior,
347
346
    virtual void ariaFlowToElements(AccessibilityChildrenVector&) const { }
348
347
    
349
348
    // ARIA drag and drop
350
 
    virtual bool supportsARIADropping() { return false; }
351
 
    virtual bool supportsARIADragging() { return false; }
 
349
    virtual bool supportsARIADropping() const { return false; }
 
350
    virtual bool supportsARIADragging() const { return false; }
352
351
    virtual bool isARIAGrabbed() { return false; }
353
352
    virtual void setARIAGrabbed(bool) { }
354
353
    virtual void determineARIADropEffects(Vector<String>&) { }
415
414
    virtual FrameView* topDocumentFrameView() const { return 0; }
416
415
    virtual FrameView* documentFrameView() const;
417
416
    virtual String language() const;
 
417
    String language(Node*) const;
418
418
    virtual unsigned hierarchicalLevel() const { return 0; }
419
419
    
420
420
    virtual void setFocused(bool) { }
446
446
    virtual void handleActiveDescendantChanged() { }
447
447
 
448
448
    static AccessibilityRole ariaRoleToWebCoreRole(const String&);
449
 
    
 
449
    static const AtomicString& getAttribute(Node*, const QualifiedName&);
 
450
 
450
451
    virtual VisiblePositionRange visiblePositionRange() const { return VisiblePositionRange(); }
451
452
    virtual VisiblePositionRange visiblePositionRangeForLine(unsigned) const { return VisiblePositionRange(); }
452
453
    
518
519
    virtual bool ariaLiveRegionAtomic() const { return false; }
519
520
    virtual bool ariaLiveRegionBusy() const { return false; }
520
521
    
 
522
    bool supportsARIAAttributes() const;
 
523
    
521
524
#if HAVE(ACCESSIBILITY)
522
525
#if PLATFORM(GTK)
523
526
    AccessibilityObjectWrapper* wrapper() const;
531
534
#endif
532
535
#endif
533
536
 
 
537
#if HAVE(ACCESSIBILITY)
534
538
    // a platform-specific method for determining if an attachment is ignored
535
 
#if HAVE(ACCESSIBILITY)
536
539
    bool accessibilityIgnoreAttachment() const;
 
540
    // gives platforms the opportunity to indicate if and how an object should be included
 
541
    AccessibilityObjectInclusion accessibilityPlatformIncludesObject() const;
537
542
#else
538
543
    bool accessibilityIgnoreAttachment() const { return true; }
539
 
#endif
540
 
 
541
 
    // gives platforms the opportunity to indicate if and how an object should be included
542
 
#if HAVE(ACCESSIBILITY)
543
 
    AccessibilityObjectPlatformInclusion accessibilityPlatformIncludesObject() const;
544
 
#else
545
 
    AccessibilityObjectPlatformInclusion accessibilityPlatformIncludesObject() const { return DefaultBehavior; }
 
544
    AccessibilityObjectInclusion accessibilityPlatformIncludesObject() const { return DefaultBehavior; }
546
545
#endif
547
546
 
548
547
    // allows for an AccessibilityObject to update its render tree or perform