| 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/menu/chrome_menu.h" | 5 #include "chrome/views/controls/menu/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 "app/l10n_util.h" |
| 12 #include "app/l10n_util_win.h" |
| 11 #include "base/base_drag_source.h" | 13 #include "base/base_drag_source.h" |
| 12 #include "base/gfx/native_theme.h" | 14 #include "base/gfx/native_theme.h" |
| 13 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
| 14 #include "base/task.h" | 16 #include "base/task.h" |
| 15 #include "base/timer.h" | 17 #include "base/timer.h" |
| 16 #include "base/win_util.h" | 18 #include "base/win_util.h" |
| 17 // TODO(beng): (Cleanup) remove this browser dep. | 19 // TODO(beng): (Cleanup) remove this browser dep. |
| 18 #include "chrome/browser/drag_utils.h" | 20 #include "chrome/browser/drag_utils.h" |
| 19 #include "chrome/common/gfx/chrome_canvas.h" | 21 #include "chrome/common/gfx/chrome_canvas.h" |
| 20 #include "chrome/common/gfx/color_utils.h" | 22 #include "chrome/common/gfx/color_utils.h" |
| 21 #include "chrome/common/l10n_util.h" | |
| 22 #include "chrome/common/l10n_util_win.h" | |
| 23 #include "chrome/common/os_exchange_data.h" | 23 #include "chrome/common/os_exchange_data.h" |
| 24 #include "chrome/views/border.h" | 24 #include "chrome/views/border.h" |
| 25 #include "chrome/views/view_constants.h" | 25 #include "chrome/views/view_constants.h" |
| 26 #include "chrome/views/widget/root_view.h" | 26 #include "chrome/views/widget/root_view.h" |
| 27 #include "chrome/views/widget/widget_win.h" | 27 #include "chrome/views/widget/widget_win.h" |
| 28 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
| 29 #include "skia/ext/skia_utils_win.h" | 29 #include "skia/ext/skia_utils_win.h" |
| 30 | 30 |
| 31 #undef min | 31 #undef min |
| 32 #undef max | 32 #undef max |
| (...skipping 2774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2807 if (!scroll_task_.get()) | 2807 if (!scroll_task_.get()) |
| 2808 scroll_task_.reset(new MenuScrollTask()); | 2808 scroll_task_.reset(new MenuScrollTask()); |
| 2809 scroll_task_->Update(part); | 2809 scroll_task_->Update(part); |
| 2810 } | 2810 } |
| 2811 | 2811 |
| 2812 void MenuController::StopScrolling() { | 2812 void MenuController::StopScrolling() { |
| 2813 scroll_task_.reset(NULL); | 2813 scroll_task_.reset(NULL); |
| 2814 } | 2814 } |
| 2815 | 2815 |
| 2816 } // namespace views | 2816 } // namespace views |
| OLD | NEW |