summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/browser_accessibility.h
diff options
context:
space:
mode:
authordtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 21:18:50 +0000
committerdtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 21:18:50 +0000
commit0d7dad6df2d9d6d9676ca7adb02e3c92beaa8a79 (patch)
treef646a38a4c8a43acdfea7addaf660bea0a02cbcc /chrome/browser/cocoa/browser_accessibility.h
parent027db59033125d49ab7cbf4a553e6be7c83b0960 (diff)
downloadchromium_src-0d7dad6df2d9d6d9676ca7adb02e3c92beaa8a79.zip
chromium_src-0d7dad6df2d9d6d9676ca7adb02e3c92beaa8a79.tar.gz
chromium_src-0d7dad6df2d9d6d9676ca7adb02e3c92beaa8a79.tar.bz2
Make the BrowserAccessibilityManagerMac own the management of the cocoa ax tree.
BUG=55657 TEST=passing unit tests. Review URL: http://codereview.chromium.org/3826002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63110 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_accessibility.h')
-rw-r--r--chrome/browser/cocoa/browser_accessibility.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/chrome/browser/cocoa/browser_accessibility.h b/chrome/browser/cocoa/browser_accessibility.h
deleted file mode 100644
index 7a6fdb4..0000000
--- a/chrome/browser/cocoa/browser_accessibility.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_COCOA_BROWSER_ACCESSIBILITY_H_
-#define CHROME_BROWSER_COCOA_BROWSER_ACCESSIBILITY_H_
-#pragma once
-
-#import <Cocoa/Cocoa.h>
-
-#import "base/scoped_nsobject.h"
-#include "chrome/browser/accessibility/browser_accessibility_mac.h"
-#import "chrome/browser/cocoa/browser_accessibility_delegate.h"
-
-// BrowserAccessibilityCocoa is a cocoa wrapper around the BrowserAccessibility
-// object. The renderer converts webkit's accessibility tree into a
-// WebAccessibility tree and passes it to the browser process over IPC.
-// This class converts it into a format Cocoa can query.
-@interface BrowserAccessibilityCocoa : NSObject {
- @private
- BrowserAccessibility* browserAccessibility_;
- id<BrowserAccessibilityDelegateCocoa> delegate_;
- scoped_nsobject<NSMutableArray> children_;
- // The parent of the accessibility object. This can be another
- // BrowserAccessibilityCocoa or a RenderWidgetHostViewCocoa.
- id parent_; // weak
-}
-
-// This creates a cocoa browser accessibility object around
-// the cross platform BrowserAccessibility object. The delegate is
-// used to communicate with the host renderer. None of these
-// parameters can be null.
-- (id)initWithObject:(BrowserAccessibility*)accessibility
- delegate:(id<BrowserAccessibilityDelegateCocoa>)delegate
- parent:(id)parent;
-
-// Updates children from backing BrowserAccessibility.
-- (NSArray*)updateChildren;
-// Updates all descendants from the backing BrowserAccessibility.
-- (void)updateDescendants;
-
-@property(nonatomic, readonly) BrowserAccessibility* browserAccessibility;
-
-// Children is an array of BrowserAccessibility objects, representing
-// the accessibility children of this object.
-@property(nonatomic, readonly) NSArray* children;
-// isIgnored returns whether or not the accessibility object
-// should be ignored by the accessibility hierarchy.
-@property(nonatomic, readonly, getter=isIgnored) BOOL ignored;
-// The origin of this object in the page's document.
-// This is relative to webkit's top-left origin, not Cocoa's
-// bottom-left origin.
-@property(nonatomic, readonly) NSPoint origin;
-// A string indicating the role of this object as far as accessibility
-// is concerned.
-@property(nonatomic, readonly) NSString* role;
-// The size of this object.
-@property(nonatomic, readonly) NSSize size;
-
-@end
-
-#endif // CHROME_BROWSER_COCOA_BROWSER_ACCESSIBILITY_H_