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/chrome_menu.h" | 5 #include "chrome/views/chrome_menu.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <uxtheme.h> | 8 #include <uxtheme.h> |
9 #include <Vssym32.h> | 9 #include <Vssym32.h> |
10 | 10 |
11 #include "base/base_drag_source.h" | 11 #include "base/base_drag_source.h" |
12 #include "base/gfx/native_theme.h" | 12 #include "base/gfx/native_theme.h" |
13 #include "base/gfx/skia_utils.h" | |
14 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
15 #include "base/task.h" | 14 #include "base/task.h" |
16 #include "base/timer.h" | 15 #include "base/timer.h" |
17 #include "base/win_util.h" | 16 #include "base/win_util.h" |
18 #include "chrome/browser/drag_utils.h" | 17 #include "chrome/browser/drag_utils.h" |
19 #include "chrome/common/gfx/chrome_canvas.h" | 18 #include "chrome/common/gfx/chrome_canvas.h" |
20 #include "chrome/common/gfx/color_utils.h" | 19 #include "chrome/common/gfx/color_utils.h" |
21 #include "chrome/common/l10n_util.h" | 20 #include "chrome/common/l10n_util.h" |
22 #include "chrome/common/os_exchange_data.h" | 21 #include "chrome/common/os_exchange_data.h" |
23 #include "chrome/views/border.h" | 22 #include "chrome/views/border.h" |
24 #include "chrome/views/root_view.h" | 23 #include "chrome/views/root_view.h" |
25 #include "chrome/views/view_constants.h" | 24 #include "chrome/views/view_constants.h" |
26 #include "chrome/views/widget_win.h" | 25 #include "chrome/views/widget_win.h" |
27 #include "generated_resources.h" | 26 #include "generated_resources.h" |
| 27 #include "skia/ext/skia_utils_win.h" |
28 | 28 |
29 #undef min | 29 #undef min |
30 #undef max | 30 #undef max |
31 | 31 |
32 using base::Time; | 32 using base::Time; |
33 using base::TimeDelta; | 33 using base::TimeDelta; |
34 | 34 |
35 // Margins between the top of the item and the label. | 35 // Margins between the top of the item and the label. |
36 static const int kItemTopMargin = 3; | 36 static const int kItemTopMargin = 3; |
37 | 37 |
(...skipping 2752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2790 if (!scroll_task_.get()) | 2790 if (!scroll_task_.get()) |
2791 scroll_task_.reset(new MenuScrollTask()); | 2791 scroll_task_.reset(new MenuScrollTask()); |
2792 scroll_task_->Update(part); | 2792 scroll_task_->Update(part); |
2793 } | 2793 } |
2794 | 2794 |
2795 void MenuController::StopScrolling() { | 2795 void MenuController::StopScrolling() { |
2796 scroll_task_.reset(NULL); | 2796 scroll_task_.reset(NULL); |
2797 } | 2797 } |
2798 | 2798 |
2799 } // namespace views | 2799 } // namespace views |
OLD | NEW |