| OLD | NEW |
| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "base/singleton.h" | 14 #include "base/singleton.h" |
| 15 #include "chrome/browser/accessibility_events.h" | 15 #include "chrome/browser/accessibility_events.h" |
| 16 #include "chrome/browser/views/accessibility_event_router_views.h" | |
| 17 | 16 |
| 18 #if defined(OS_LINUX) | 17 #if defined(OS_LINUX) |
| 19 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" | 18 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" |
| 20 #endif | 19 #endif |
| 21 | 20 |
| 21 class AccessibilityEventRouterViews; |
| 22 class Profile; | 22 class Profile; |
| 23 namespace views { |
| 24 class View; |
| 25 } |
| 23 | 26 |
| 24 // NOTE: This class is part of the Accessibility Extension API, which lets | 27 // NOTE: This class is part of the Accessibility Extension API, which lets |
| 25 // extensions receive accessibility events. It's distinct from code that | 28 // extensions receive accessibility events. It's distinct from code that |
| 26 // implements platform accessibility APIs like MSAA or ATK. | 29 // implements platform accessibility APIs like MSAA or ATK. |
| 27 // | 30 // |
| 28 // Helper class that helps to manage the accessibility information for a | 31 // Helper class that helps to manage the accessibility information for a |
| 29 // view and all of its descendants. Create an instance of this class for | 32 // view and all of its descendants. Create an instance of this class for |
| 30 // the root of a tree of views (like a dialog) that should send accessibility | 33 // the root of a tree of views (like a dialog) that should send accessibility |
| 31 // events for all of its descendants. | 34 // events for all of its descendants. |
| 32 // | 35 // |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 std::vector<views::View*> managed_views_; | 73 std::vector<views::View*> managed_views_; |
| 71 | 74 |
| 72 #if defined(OS_LINUX) | 75 #if defined(OS_LINUX) |
| 73 scoped_ptr<AccessibleWidgetHelper> widget_helper_; | 76 scoped_ptr<AccessibleWidgetHelper> widget_helper_; |
| 74 #endif | 77 #endif |
| 75 | 78 |
| 76 DISALLOW_COPY_AND_ASSIGN(AccessibleViewHelper); | 79 DISALLOW_COPY_AND_ASSIGN(AccessibleViewHelper); |
| 77 }; | 80 }; |
| 78 | 81 |
| 79 #endif // CHROME_BROWSER_VIEWS_ACCESSIBLE_VIEW_HELPER_H_ | 82 #endif // CHROME_BROWSER_VIEWS_ACCESSIBLE_VIEW_HELPER_H_ |
| OLD | NEW |