OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "views/controls/menu/native_menu_win.h" | 5 #include "views/controls/menu/native_menu_win.h" |
6 | 6 |
7 #include <Windowsx.h> | 7 #include <Windowsx.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/stl_util-inl.h" | 11 #include "base/stl_util.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/win/wrapped_window_proc.h" | 13 #include "base/win/wrapped_window_proc.h" |
14 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
15 #include "ui/base/keycodes/keyboard_codes.h" | 15 #include "ui/base/keycodes/keyboard_codes.h" |
16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
17 #include "ui/base/l10n/l10n_util_win.h" | 17 #include "ui/base/l10n/l10n_util_win.h" |
18 #include "ui/base/win/hwnd_util.h" | 18 #include "ui/base/win/hwnd_util.h" |
19 #include "ui/gfx/canvas_skia.h" | 19 #include "ui/gfx/canvas_skia.h" |
20 #include "ui/gfx/font.h" | 20 #include "ui/gfx/font.h" |
21 #include "ui/gfx/native_theme.h" | 21 #include "ui/gfx/native_theme.h" |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 | 763 |
764 //////////////////////////////////////////////////////////////////////////////// | 764 //////////////////////////////////////////////////////////////////////////////// |
765 // MenuWrapper, public: | 765 // MenuWrapper, public: |
766 | 766 |
767 // static | 767 // static |
768 MenuWrapper* MenuWrapper::CreateWrapper(Menu2* menu) { | 768 MenuWrapper* MenuWrapper::CreateWrapper(Menu2* menu) { |
769 return new NativeMenuWin(menu->model(), NULL); | 769 return new NativeMenuWin(menu->model(), NULL); |
770 } | 770 } |
771 | 771 |
772 } // namespace views | 772 } // namespace views |
OLD | NEW |