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 "chrome/browser/ui/views/omnibox/omnibox_view_win.h" | 5 #include "chrome/browser/ui/views/omnibox/omnibox_view_win.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <locale> | 8 #include <locale> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "ui/base/dragdrop/drop_target.h" | 45 #include "ui/base/dragdrop/drop_target.h" |
46 #include "ui/base/dragdrop/os_exchange_data.h" | 46 #include "ui/base/dragdrop/os_exchange_data.h" |
47 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" | 47 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" |
48 #include "ui/base/events.h" | 48 #include "ui/base/events.h" |
49 #include "ui/base/keycodes/keyboard_codes.h" | 49 #include "ui/base/keycodes/keyboard_codes.h" |
50 #include "ui/base/l10n/l10n_util.h" | 50 #include "ui/base/l10n/l10n_util.h" |
51 #include "ui/base/l10n/l10n_util_win.h" | 51 #include "ui/base/l10n/l10n_util_win.h" |
52 #include "ui/base/win/mouse_wheel_util.h" | 52 #include "ui/base/win/mouse_wheel_util.h" |
53 #include "ui/gfx/canvas.h" | 53 #include "ui/gfx/canvas.h" |
54 #include "ui/gfx/canvas_skia.h" | 54 #include "ui/gfx/canvas_skia.h" |
| 55 #include "ui/views/widget/widget.h" |
55 #include "views/controls/textfield/native_textfield_win.h" | 56 #include "views/controls/textfield/native_textfield_win.h" |
56 #include "views/drag_utils.h" | 57 #include "views/drag_utils.h" |
57 #include "views/widget/widget.h" | |
58 | 58 |
59 #pragma comment(lib, "oleacc.lib") // Needed for accessibility support. | 59 #pragma comment(lib, "oleacc.lib") // Needed for accessibility support. |
60 #pragma comment(lib, "riched20.lib") // Needed for the richedit control. | 60 #pragma comment(lib, "riched20.lib") // Needed for the richedit control. |
61 | 61 |
62 /////////////////////////////////////////////////////////////////////////////// | 62 /////////////////////////////////////////////////////////////////////////////// |
63 // AutocompleteEditModel | 63 // AutocompleteEditModel |
64 | 64 |
65 namespace { | 65 namespace { |
66 | 66 |
67 // A helper method for determining a valid DROPEFFECT given the allowed | 67 // A helper method for determining a valid DROPEFFECT given the allowed |
(...skipping 2622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2690 return omnibox_view; | 2690 return omnibox_view; |
2691 } | 2691 } |
2692 return new OmniboxViewWin(controller, | 2692 return new OmniboxViewWin(controller, |
2693 toolbar_model, | 2693 toolbar_model, |
2694 location_bar, | 2694 location_bar, |
2695 command_updater, | 2695 command_updater, |
2696 popup_window_mode, | 2696 popup_window_mode, |
2697 location_bar); | 2697 location_bar); |
2698 } | 2698 } |
2699 #endif | 2699 #endif |
OLD | NEW |