~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-01-06 21:25:06 UTC
  • mfrom: (1.2.6 upstream) (4.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100106212506-gd0czn4zrwf1j19l
* New upstream release
- adds basic Content-Encoding support, thanks to soup
  (Closes: #529271)
- fixes over-advertising content types as supported by
  the media player (Closes: #559420)
* debian/control:
- updated libsoup build requirement (>= 2.28.2)
* debian/libwebkit-1.0-2.symbols:
- updated with new symbols
* debian/copyright:
- updated information since 1.1.17
* Imported patch from https://bugs.webkit.org/show_bug.cgi?id=30623
- I am shipping this patch because I believe it is correct, it is the
  way to go, it fixes a race, and it needs testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
#if PLATFORM(MAC)
42
42
#include <wtf/RetainPtr.h>
43
 
#elif PLATFORM(WIN) && !PLATFORM(WINCE)
 
43
#elif PLATFORM(WIN) && !OS(WINCE)
44
44
#include "AccessibilityObjectWrapperWin.h"
45
45
#include "COMPtr.h"
46
46
#elif PLATFORM(CHROMIUM)
165
165
    TabListRole,
166
166
    TabPanelRole,
167
167
    TreeRole,
 
168
    TreeGridRole,
168
169
    TreeItemRole,
169
170
    DirectoryRole,
170
 
    
 
171
    EditableTextRole,
 
172
    ListItemRole,
 
173
 
171
174
    // ARIA Grouping roles
172
175
    LandmarkApplicationRole,
173
176
    LandmarkBannerRole,
279
282
    virtual bool isTableCell() const { return false; }
280
283
    virtual bool isFieldset() const { return false; }
281
284
    virtual bool isGroup() const { return false; }
 
285
    virtual bool isARIATreeGridRow() const { return false; }
282
286
    bool isTabList() const { return roleValue() == TabListRole; }
283
287
    bool isTabItem() const { return roleValue() == TabRole; }
284
288
    bool isRadioGroup() const { return roleValue() == RadioGroupRole; }
285
289
    bool isComboBox() const { return roleValue() == ComboBoxRole; }
286
290
    bool isTree() const { return roleValue() == TreeRole; }
287
291
    bool isTreeItem() const { return roleValue() == TreeItemRole; }
 
292
    bool isScrollbar() const { return roleValue() == ScrollBarRole; }
 
293
    bool isButton() const { return roleValue() == ButtonRole; }
288
294
    
289
295
    virtual bool isChecked() const { return false; }
290
296
    virtual bool isEnabled() const { return false; }
331
337
    virtual bool supportsARIAFlowTo() const { return false; }
332
338
    virtual void ariaFlowToElements(AccessibilityChildrenVector&) const { }
333
339
    
 
340
    // ARIA drag and drop
 
341
    virtual bool supportsARIADropping() { return false; }
 
342
    virtual bool supportsARIADragging() { return false; }
 
343
    virtual bool isARIAGrabbed() { return false; }
 
344
    virtual void setARIAGrabbed(bool) { }
 
345
    virtual void determineARIADropEffects(Vector<String>&) { }
 
346
    
334
347
    virtual AccessibilityObject* doAccessibilityHitTest(const IntPoint&) const { return 0; }
335
348
    virtual AccessibilityObject* focusedUIElement() const { return 0; }
336
349
 
411
424
    virtual void decrement() { }
412
425
 
413
426
    virtual void childrenChanged() { }
 
427
    virtual void contentChanged() { }
414
428
    virtual const AccessibilityChildrenVector& children() { return m_children; }
415
429
    virtual void addChildren() { }
416
430
    virtual bool canHaveChildren() const { return true; }
478
492
    virtual String stringRoleForMSAA() const { return String(); }
479
493
    virtual String nameForMSAA() const { return String(); }
480
494
    virtual String descriptionForMSAA() const { return String(); }
481
 
    
 
495
    virtual AccessibilityRole roleValueForMSAA() const { return roleValue(); }
 
496
 
482
497
    // Used by an ARIA tree to get all its rows.
483
498
    void ariaTreeRows(AccessibilityChildrenVector&);
484
499
    // Used by an ARIA tree item to get all of its direct rows that it can disclose.
486
501
    // Used by an ARIA tree item to get only its content, and not its child tree items and groups. 
487
502
    void ariaTreeItemContent(AccessibilityChildrenVector&);
488
503
    
 
504
    // ARIA live-region features.
 
505
    bool supportsARIALiveRegion() const;
 
506
    bool isInsideARIALiveRegion() const;
 
507
    virtual const AtomicString& ariaLiveRegionStatus() const { return nullAtom; }
 
508
    virtual const AtomicString& ariaLiveRegionRelevant() const { return nullAtom; }
 
509
    virtual bool ariaLiveRegionAtomic() const { return false; }
 
510
    virtual bool ariaLiveRegionBusy() const { return false; }
 
511
    
489
512
#if HAVE(ACCESSIBILITY)
490
513
#if PLATFORM(GTK)
491
514
    AccessibilityObjectWrapper* wrapper() const;
529
552
    
530
553
#if PLATFORM(MAC)
531
554
    RetainPtr<AccessibilityObjectWrapper> m_wrapper;
532
 
#elif PLATFORM(WIN) && !PLATFORM(WINCE)
 
555
#elif PLATFORM(WIN) && !OS(WINCE)
533
556
    COMPtr<AccessibilityObjectWrapper> m_wrapper;
534
557
#elif PLATFORM(GTK)
535
558
    AtkObject* m_wrapper;