| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/views/controls/button/button_dropdown.h" | 5 #include "chrome/views/controls/button/button_dropdown.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" |
| 7 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 8 #include "chrome/common/l10n_util.h" | |
| 9 #include "chrome/views/controls/menu/view_menu_delegate.h" | 9 #include "chrome/views/controls/menu/view_menu_delegate.h" |
| 10 #include "chrome/views/widget/widget.h" | 10 #include "chrome/views/widget/widget.h" |
| 11 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 | 14 |
| 15 // How long to wait before showing the menu | 15 // How long to wait before showing the menu |
| 16 static const int kMenuTimerDelay = 500; | 16 static const int kMenuTimerDelay = 500; |
| 17 | 17 |
| 18 //////////////////////////////////////////////////////////////////////////////// | 18 //////////////////////////////////////////////////////////////////////////////// |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 } | 183 } |
| 184 | 184 |
| 185 bool ButtonDropDown::GetAccessibleState(AccessibilityTypes::State* state) { | 185 bool ButtonDropDown::GetAccessibleState(AccessibilityTypes::State* state) { |
| 186 DCHECK(state); | 186 DCHECK(state); |
| 187 | 187 |
| 188 *state = AccessibilityTypes::STATE_HASPOPUP; | 188 *state = AccessibilityTypes::STATE_HASPOPUP; |
| 189 return true; | 189 return true; |
| 190 } | 190 } |
| 191 | 191 |
| 192 } // namespace views | 192 } // namespace views |
| OLD | NEW |