| 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_GTK_ACCESSIBILITY_EVENT_ROUTER_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_ACCESSIBILITY_EVENT_ROUTER_GTK_H_ | 
| 6 #define CHROME_BROWSER_GTK_ACCESSIBILITY_EVENT_ROUTER_GTK_H_ | 6 #define CHROME_BROWSER_GTK_ACCESSIBILITY_EVENT_ROUTER_GTK_H_ | 
| 7 | 7 | 
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> | 
| 9 | 9 | 
| 10 #include <string> | 10 #include <string> | 
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 120   void SendComboBoxNotification( | 120   void SendComboBoxNotification( | 
| 121       GtkWidget* widget, NotificationType type, Profile* profile); | 121       GtkWidget* widget, NotificationType type, Profile* profile); | 
| 122   void SendListBoxNotification( | 122   void SendListBoxNotification( | 
| 123       GtkWidget* widget, NotificationType type, Profile* profile); | 123       GtkWidget* widget, NotificationType type, Profile* profile); | 
| 124   void SendMenuItemNotification( | 124   void SendMenuItemNotification( | 
| 125       GtkWidget* widget, NotificationType type, Profile* profile); | 125       GtkWidget* widget, NotificationType type, Profile* profile); | 
| 126   void SendRadioButtonNotification( | 126   void SendRadioButtonNotification( | 
| 127       GtkWidget* widget, NotificationType type, Profile* profile); | 127       GtkWidget* widget, NotificationType type, Profile* profile); | 
| 128   void SendTabNotification( | 128   void SendTabNotification( | 
| 129       GtkWidget* widget, NotificationType type, Profile* profile); | 129       GtkWidget* widget, NotificationType type, Profile* profile); | 
| 130   void SendTextBoxNotification( | 130   void SendEntryNotification( | 
|  | 131       GtkWidget* widget, NotificationType type, Profile* profile); | 
|  | 132   void SendTextViewNotification( | 
| 131       GtkWidget* widget, NotificationType type, Profile* profile); | 133       GtkWidget* widget, NotificationType type, Profile* profile); | 
| 132 | 134 | 
| 133   void InstallEventListeners(); | 135   void InstallEventListeners(); | 
| 134   void RemoveEventListeners(); | 136   void RemoveEventListeners(); | 
| 135 | 137 | 
| 136   // Start and stop listening to signals. | 138   // Start and stop listening to signals. | 
| 137   void StartListening(); | 139   void StartListening(); | 
| 138   void StopListening(); | 140   void StopListening(); | 
| 139 | 141 | 
| 140   // Add a signal emission hook for one particular signal name and | 142   // Add a signal emission hook for one particular signal name and | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
| 158   std::vector<InstalledHook> installed_hooks_; | 160   std::vector<InstalledHook> installed_hooks_; | 
| 159 | 161 | 
| 160   // True if we are currently listening to signals. | 162   // True if we are currently listening to signals. | 
| 161   bool listening_; | 163   bool listening_; | 
| 162 | 164 | 
| 163   // The profile associated with the most recent window event  - used to | 165   // The profile associated with the most recent window event  - used to | 
| 164   // figure out where to route a few events that can't be directly traced | 166   // figure out where to route a few events that can't be directly traced | 
| 165   // to a window with a profile (like menu events). | 167   // to a window with a profile (like menu events). | 
| 166   Profile* most_recent_profile_; | 168   Profile* most_recent_profile_; | 
| 167 | 169 | 
|  | 170   // The most recent focused widget. | 
|  | 171   GtkWidget* most_recent_widget_; | 
|  | 172 | 
| 168   // Used to schedule invocations of StartListening() and to defer handling | 173   // Used to schedule invocations of StartListening() and to defer handling | 
| 169   // of some events until the next time through the event loop. | 174   // of some events until the next time through the event loop. | 
| 170   ScopedRunnableMethodFactory<AccessibilityEventRouterGtk> method_factory_; | 175   ScopedRunnableMethodFactory<AccessibilityEventRouterGtk> method_factory_; | 
| 171 }; | 176 }; | 
| 172 | 177 | 
| 173 #endif  // CHROME_BROWSER_GTK_ACCESSIBILITY_EVENT_ROUTER_GTK_H_ | 178 #endif  // CHROME_BROWSER_GTK_ACCESSIBILITY_EVENT_ROUTER_GTK_H_ | 
| OLD | NEW | 
|---|