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" |
(...skipping 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2790 if (!scroll_task_.get()) | 2789 if (!scroll_task_.get()) |
2791 scroll_task_.reset(new MenuScrollTask()); | 2790 scroll_task_.reset(new MenuScrollTask()); |
2792 scroll_task_->Update(part); | 2791 scroll_task_->Update(part); |
2793 } | 2792 } |
2794 | 2793 |
2795 void MenuController::StopScrolling() { | 2794 void MenuController::StopScrolling() { |
2796 scroll_task_.reset(NULL); | 2795 scroll_task_.reset(NULL); |
2797 } | 2796 } |
2798 | 2797 |
2799 } // namespace views | 2798 } // namespace views |
OLD | NEW |