| OLD | NEW |
| 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 CHROME_BROWSER_UI_GTK_ACCESSIBLE_WIDGET_HELPER_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_ACCESSIBLE_WIDGET_HELPER_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_ACCESSIBLE_WIDGET_HELPER_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_ACCESSIBLE_WIDGET_HELPER_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| 11 #include <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/singleton.h" | 15 #include "base/singleton.h" |
| 16 #include "chrome/browser/accessibility_events.h" | 16 #include "chrome/browser/accessibility_events.h" |
| 17 #include "chrome/browser/gtk/accessibility_event_router_gtk.h" | 17 #include "chrome/browser/ui/gtk/accessibility_event_router_gtk.h" |
| 18 | 18 |
| 19 class Profile; | 19 class Profile; |
| 20 | 20 |
| 21 // NOTE: This class is part of the Accessibility Extension API, which lets | 21 // NOTE: This class is part of the Accessibility Extension API, which lets |
| 22 // extensions receive accessibility events. It's distinct from code that | 22 // extensions receive accessibility events. It's distinct from code that |
| 23 // implements platform accessibility APIs like MSAA or ATK. | 23 // implements platform accessibility APIs like MSAA or ATK. |
| 24 // | 24 // |
| 25 // Helper class that helps to manage the accessibility information for all | 25 // Helper class that helps to manage the accessibility information for all |
| 26 // of the widgets in a container. Create an instance of this class for | 26 // of the widgets in a container. Create an instance of this class for |
| 27 // each container GtkWidget (like a dialog) that should send accessibility | 27 // each container GtkWidget (like a dialog) that should send accessibility |
| (...skipping 29 matching lines...) Expand all Loading... |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 AccessibilityEventRouterGtk* accessibility_event_router_; | 59 AccessibilityEventRouterGtk* accessibility_event_router_; |
| 60 Profile* profile_; | 60 Profile* profile_; |
| 61 GtkWidget* root_widget_; | 61 GtkWidget* root_widget_; |
| 62 std::string window_title_; | 62 std::string window_title_; |
| 63 std::set<GtkWidget*> managed_widgets_; | 63 std::set<GtkWidget*> managed_widgets_; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 #endif // CHROME_BROWSER_UI_GTK_ACCESSIBLE_WIDGET_HELPER_GTK_H_ | 66 #endif // CHROME_BROWSER_UI_GTK_ACCESSIBLE_WIDGET_HELPER_GTK_H_ |
| OLD | NEW |