Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager.h

Issue 8082019: more content exports needed for unit_tests and browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert export of browser_accessibility_win for now Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 // Class that can perform actions on behalf of the BrowserAccessibilityManager. 27 // Class that can perform actions on behalf of the BrowserAccessibilityManager.
28 class CONTENT_EXPORT BrowserAccessibilityDelegate { 28 class CONTENT_EXPORT BrowserAccessibilityDelegate {
29 public: 29 public:
30 virtual ~BrowserAccessibilityDelegate() {} 30 virtual ~BrowserAccessibilityDelegate() {}
31 virtual void SetAccessibilityFocus(int acc_obj_id) = 0; 31 virtual void SetAccessibilityFocus(int acc_obj_id) = 0;
32 virtual void AccessibilityDoDefaultAction(int acc_obj_id) = 0; 32 virtual void AccessibilityDoDefaultAction(int acc_obj_id) = 0;
33 virtual bool HasFocus() = 0; 33 virtual bool HasFocus() = 0;
34 virtual gfx::Rect GetViewBounds() const = 0; 34 virtual gfx::Rect GetViewBounds() const = 0;
35 }; 35 };
36 36
37 class BrowserAccessibilityFactory { 37 class CONTENT_EXPORT BrowserAccessibilityFactory {
38 public: 38 public:
39 virtual ~BrowserAccessibilityFactory() {} 39 virtual ~BrowserAccessibilityFactory() {}
40 40
41 // Create an instance of BrowserAccessibility and return a new 41 // Create an instance of BrowserAccessibility and return a new
42 // reference to it. 42 // reference to it.
43 virtual BrowserAccessibility* Create(); 43 virtual BrowserAccessibility* Create();
44 }; 44 };
45 45
46 // Manages a tree of BrowserAccessibility objects. 46 // Manages a tree of BrowserAccessibility objects.
47 class BrowserAccessibilityManager { 47 class CONTENT_EXPORT BrowserAccessibilityManager {
48 public: 48 public:
49 // Creates the platform specific BrowserAccessibilityManager. Ownership passes 49 // Creates the platform specific BrowserAccessibilityManager. Ownership passes
50 // to the caller. 50 // to the caller.
51 static BrowserAccessibilityManager* Create( 51 static BrowserAccessibilityManager* Create(
52 gfx::NativeView parent_view, 52 gfx::NativeView parent_view,
53 const WebAccessibility& src, 53 const WebAccessibility& src,
54 BrowserAccessibilityDelegate* delegate, 54 BrowserAccessibilityDelegate* delegate,
55 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); 55 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory());
56 56
57 // Creates the platform specific BrowserAccessibilityManager. Ownership passes 57 // Creates the platform specific BrowserAccessibilityManager. Ownership passes
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // we use internally here. 162 // we use internally here.
163 base::hash_map<int32, int32> renderer_id_to_child_id_map_; 163 base::hash_map<int32, int32> renderer_id_to_child_id_map_;
164 164
165 // A mapping from child IDs to BrowserAccessibility objects. 165 // A mapping from child IDs to BrowserAccessibility objects.
166 base::hash_map<int32, BrowserAccessibility*> child_id_map_; 166 base::hash_map<int32, BrowserAccessibility*> child_id_map_;
167 167
168 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); 168 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager);
169 }; 169 };
170 170
171 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 171 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698