OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/controls/menu/menu_controller.h" | 5 #include "ui/views/controls/menu/menu_controller.h" |
6 | 6 |
7 #include "base/i18n/case_conversion.h" | 7 #include "base/i18n/case_conversion.h" |
8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "ui/accessibility/ax_enums.h" |
13 #include "ui/base/dragdrop/drag_utils.h" | 14 #include "ui/base/dragdrop/drag_utils.h" |
14 #include "ui/base/dragdrop/os_exchange_data.h" | 15 #include "ui/base/dragdrop/os_exchange_data.h" |
15 #include "ui/display/screen.h" | 16 #include "ui/display/screen.h" |
16 #include "ui/events/event.h" | 17 #include "ui/events/event.h" |
17 #include "ui/events/event_utils.h" | 18 #include "ui/events/event_utils.h" |
18 #include "ui/gfx/canvas.h" | 19 #include "ui/gfx/canvas.h" |
19 #include "ui/gfx/geometry/point.h" | 20 #include "ui/gfx/geometry/point.h" |
20 #include "ui/gfx/geometry/vector2d.h" | 21 #include "ui/gfx/geometry/vector2d.h" |
21 #include "ui/gfx/native_widget_types.h" | 22 #include "ui/gfx/native_widget_types.h" |
22 #include "ui/native_theme/native_theme.h" | 23 #include "ui/native_theme/native_theme.h" |
(...skipping 2655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2678 if (hot_button_) | 2679 if (hot_button_) |
2679 hot_button_->SetHotTracked(false); | 2680 hot_button_->SetHotTracked(false); |
2680 hot_button_ = hot_button; | 2681 hot_button_ = hot_button; |
2681 if (hot_button) { | 2682 if (hot_button) { |
2682 hot_button->SetHotTracked(true); | 2683 hot_button->SetHotTracked(true); |
2683 hot_button->NotifyAccessibilityEvent(ui::AX_EVENT_SELECTION, true); | 2684 hot_button->NotifyAccessibilityEvent(ui::AX_EVENT_SELECTION, true); |
2684 } | 2685 } |
2685 } | 2686 } |
2686 | 2687 |
2687 } // namespace views | 2688 } // namespace views |
OLD | NEW |