| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_VIEWS_MENU_TEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_MENU_TEST_BASE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_MENU_TEST_BASE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_MENU_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/test/base/view_event_test_base.h" | 11 #include "chrome/test/base/view_event_test_base.h" |
| 11 #include "ui/events/keycodes/keyboard_codes.h" | 12 #include "ui/events/keycodes/keyboard_codes.h" |
| 12 #include "ui/views/controls/button/menu_button_listener.h" | 13 #include "ui/views/controls/button/menu_button_listener.h" |
| 13 #include "ui/views/controls/menu/menu_delegate.h" | 14 #include "ui/views/controls/menu/menu_delegate.h" |
| 14 | 15 |
| 15 namespace views { | 16 namespace views { |
| 16 class MenuButton; | 17 class MenuButton; |
| 17 class MenuItemView; | 18 class MenuItemView; |
| 18 class MenuRunner; | 19 class MenuRunner; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 views::MenuItemView* menu_; | 84 views::MenuItemView* menu_; |
| 84 scoped_ptr<views::MenuRunner> menu_runner_; | 85 scoped_ptr<views::MenuRunner> menu_runner_; |
| 85 | 86 |
| 86 // The command id of the last pressed menu item since the menu was opened. | 87 // The command id of the last pressed menu item since the menu was opened. |
| 87 int last_command_; | 88 int last_command_; |
| 88 | 89 |
| 89 DISALLOW_COPY_AND_ASSIGN(MenuTestBase); | 90 DISALLOW_COPY_AND_ASSIGN(MenuTestBase); |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 #endif // CHROME_BROWSER_UI_VIEWS_MENU_TEST_BASE_H_ | 93 #endif // CHROME_BROWSER_UI_VIEWS_MENU_TEST_BASE_H_ |
| OLD | NEW |