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 #include "chrome/browser/gtk/accessibility_event_router_gtk.h" | 5 #include "chrome/browser/gtk/accessibility_event_router_gtk.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/stl_util-inl.h" | 10 #include "base/stl_util-inl.h" |
11 #include "chrome/browser/extensions/extension_accessibility_api.h" | 11 #include "chrome/browser/extensions/extension_accessibility_api.h" |
12 #include "chrome/browser/gtk/gtk_chrome_link_button.h" | 12 #include "chrome/browser/gtk/gtk_chrome_link_button.h" |
13 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/common/notification_type.h" | 14 #include "chrome/common/notification_type.h" |
15 #include "views/controls/textfield/native_textfield_gtk.h" | 15 #include "views/controls/textfield/native_textfield_gtk.h" |
16 | 16 |
17 #if defined(TOOLKIT_VIEWS) | 17 #if defined(TOOLKIT_VIEWS) |
18 #include "views/controls/textfield/gtk_views_textview.h" | 18 #include "views/controls/textfield/gtk_views_textview.h" |
19 #include "views/controls/textfield/gtk_views_entry.h" | 19 #include "views/controls/textfield/gtk_views_entry.h" |
20 #endif | 20 #endif |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 name = gtk_label_get_label(GTK_LABEL(child)); | 649 name = gtk_label_get_label(GTK_LABEL(child)); |
650 break; | 650 break; |
651 } | 651 } |
652 } | 652 } |
653 #endif | 653 #endif |
654 | 654 |
655 // Send the event. | 655 // Send the event. |
656 AccessibilityMenuItemInfo info(profile, name, submenu != NULL, index, count); | 656 AccessibilityMenuItemInfo info(profile, name, submenu != NULL, index, count); |
657 SendAccessibilityNotification(type, &info); | 657 SendAccessibilityNotification(type, &info); |
658 } | 658 } |
OLD | NEW |