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

Side by Side Diff: chrome/browser/views/accessible_view_helper.h

Issue 2811023: Make the location bar generate accessibility extension API events... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_VIEWS_ACCESSIBLE_VIEW_HELPER_H_ 5 #ifndef CHROME_BROWSER_VIEWS_ACCESSIBLE_VIEW_HELPER_H_
6 #define CHROME_BROWSER_VIEWS_ACCESSIBLE_VIEW_HELPER_H_ 6 #define CHROME_BROWSER_VIEWS_ACCESSIBLE_VIEW_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/scoped_ptr.h"
12 #include "base/singleton.h" 13 #include "base/singleton.h"
13 #include "chrome/browser/accessibility_events.h" 14 #include "chrome/browser/accessibility_events.h"
14 #include "chrome/browser/views/accessibility_event_router_views.h" 15 #include "chrome/browser/views/accessibility_event_router_views.h"
15 16
17 #if defined(OS_LINUX)
18 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h"
19 #endif
20
16 class Profile; 21 class Profile;
17 22
18 // NOTE: This class is part of the Accessibility Extension API, which lets 23 // NOTE: This class is part of the Accessibility Extension API, which lets
19 // extensions receive accessibility events. It's distinct from code that 24 // extensions receive accessibility events. It's distinct from code that
20 // implements platform accessibility APIs like MSAA or ATK. 25 // implements platform accessibility APIs like MSAA or ATK.
21 // 26 //
22 // Helper class that helps to manage the accessibility information for a 27 // Helper class that helps to manage the accessibility information for a
23 // view and all of its descendants. Create an instance of this class for 28 // view and all of its descendants. Create an instance of this class for
24 // the root of a tree of views (like a dialog) that should send accessibility 29 // the root of a tree of views (like a dialog) that should send accessibility
25 // events for all of its descendants. 30 // events for all of its descendants.
(...skipping 30 matching lines...) Expand all
56 // view->GetAccessibleName(). 61 // view->GetAccessibleName().
57 void SetViewName(views::View* view, int string_id); 62 void SetViewName(views::View* view, int string_id);
58 63
59 private: 64 private:
60 AccessibilityEventRouterViews* accessibility_event_router_; 65 AccessibilityEventRouterViews* accessibility_event_router_;
61 Profile* profile_; 66 Profile* profile_;
62 views::View* view_tree_; 67 views::View* view_tree_;
63 std::string window_title_; 68 std::string window_title_;
64 std::vector<views::View*> managed_views_; 69 std::vector<views::View*> managed_views_;
65 70
71 #if defined(OS_LINUX)
72 scoped_ptr<AccessibleWidgetHelper> widget_helper_;
73 #endif
74
66 DISALLOW_COPY_AND_ASSIGN(AccessibleViewHelper); 75 DISALLOW_COPY_AND_ASSIGN(AccessibleViewHelper);
67 }; 76 };
68 77
69 #endif // CHROME_BROWSER_VIEWS_ACCESSIBLE_VIEW_HELPER_H_ 78 #endif // CHROME_BROWSER_VIEWS_ACCESSIBLE_VIEW_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/accessible_widget_helper_gtk.cc ('k') | chrome/browser/views/accessible_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698