| 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 #include "views/controls/button/button_dropdown.h" | 5 #include "views/controls/button/button_dropdown.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "grit/ui_strings.h" | 11 #include "grit/ui_strings.h" |
| 12 #include "ui/base/accessibility/accessible_view_state.h" | 12 #include "ui/base/accessibility/accessible_view_state.h" |
| 13 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
| 14 #include "ui/base/models/menu_model.h" | 14 #include "ui/base/models/menu_model.h" |
| 15 #include "ui/views/widget/widget.h" | |
| 16 #include "views/controls/menu/menu_item_view.h" | 15 #include "views/controls/menu/menu_item_view.h" |
| 17 #include "views/controls/menu/menu_model_adapter.h" | 16 #include "views/controls/menu/menu_model_adapter.h" |
| 18 #include "views/controls/menu/menu_runner.h" | 17 #include "views/controls/menu/menu_runner.h" |
| 18 #include "views/widget/widget.h" |
| 19 | 19 |
| 20 namespace views { | 20 namespace views { |
| 21 | 21 |
| 22 // static | 22 // static |
| 23 const char ButtonDropDown::kViewClassName[] = | 23 const char ButtonDropDown::kViewClassName[] = |
| 24 "views/controls/button/ButtonDropDown"; | 24 "views/controls/button/ButtonDropDown"; |
| 25 | 25 |
| 26 // How long to wait before showing the menu. | 26 // How long to wait before showing the menu. |
| 27 const int kMenuTimerDelay = 500; | 27 const int kMenuTimerDelay = 500; |
| 28 | 28 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 SetState(BS_NORMAL); | 185 SetState(BS_NORMAL); |
| 186 } | 186 } |
| 187 | 187 |
| 188 //////////////////////////////////////////////////////////////////////////////// | 188 //////////////////////////////////////////////////////////////////////////////// |
| 189 // | 189 // |
| 190 // ButtonDropDown - Accessibility | 190 // ButtonDropDown - Accessibility |
| 191 // | 191 // |
| 192 //////////////////////////////////////////////////////////////////////////////// | 192 //////////////////////////////////////////////////////////////////////////////// |
| 193 | 193 |
| 194 } // namespace views | 194 } // namespace views |
| OLD | NEW |