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 #ifndef VIEWS_CONTROLS_MENU_CHROME_MENU_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_CHROME_MENU_H_ |
6 #define VIEWS_CONTROLS_MENU_CHROME_MENU_H_ | 6 #define VIEWS_CONTROLS_MENU_CHROME_MENU_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "app/drag_drop_types.h" | 11 #include "app/drag_drop_types.h" |
12 #include "app/gfx/font.h" | 12 #include "app/gfx/font.h" |
13 #include "base/gfx/native_widget_types.h" | 13 #include "base/gfx/native_widget_types.h" |
14 #include "base/gfx/point.h" | 14 #include "base/gfx/point.h" |
15 #include "base/gfx/rect.h" | 15 #include "base/gfx/rect.h" |
16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
17 #include "base/task.h" | 17 #include "base/task.h" |
| 18 #include "base/timer.h" |
18 #include "third_party/skia/include/core/SkBitmap.h" | 19 #include "third_party/skia/include/core/SkBitmap.h" |
19 #include "views/controls/menu/controller.h" | 20 #include "views/controls/menu/controller.h" |
20 #include "views/event.h" | 21 #include "views/event.h" |
21 #include "views/view.h" | 22 #include "views/view.h" |
22 | 23 |
23 namespace views { | 24 namespace views { |
24 | 25 |
25 class MenuController; | 26 class MenuController; |
26 class MenuHost; | 27 class MenuHost; |
27 class MenuItemView; | 28 class MenuItemView; |
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 // Task for scrolling the menu. If non-null indicates a scroll is currently | 948 // Task for scrolling the menu. If non-null indicates a scroll is currently |
948 // underway. | 949 // underway. |
949 scoped_ptr<MenuScrollTask> scroll_task_; | 950 scoped_ptr<MenuScrollTask> scroll_task_; |
950 | 951 |
951 DISALLOW_COPY_AND_ASSIGN(MenuController); | 952 DISALLOW_COPY_AND_ASSIGN(MenuController); |
952 }; | 953 }; |
953 | 954 |
954 } // namespace views | 955 } // namespace views |
955 | 956 |
956 #endif // VIEWS_CONTROLS_MENU_CHROME_MENU_H_ | 957 #endif // VIEWS_CONTROLS_MENU_CHROME_MENU_H_ |
OLD | NEW |