OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/controls/textfield/textfield.h" | 5 #include "ui/views/controls/textfield/textfield.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "ui/base/accessibility/accessible_view_state.h" | 12 #include "ui/base/accessibility/accessible_view_state.h" |
13 #include "ui/base/events/event.h" | 13 #include "ui/base/events/event.h" |
14 #include "ui/base/ime/text_input_type.h" | 14 #include "ui/base/ime/text_input_type.h" |
15 #include "ui/base/keycodes/keyboard_codes.h" | 15 #include "ui/base/keycodes/keyboard_codes.h" |
16 #include "ui/base/range/range.h" | 16 #include "ui/base/range/range.h" |
17 #include "ui/base/ui_base_switches.h" | 17 #include "ui/base/ui_base_switches.h" |
18 #include "ui/base/ui_base_switches_util.h" | 18 #include "ui/base/ui_base_switches_util.h" |
19 #include "ui/gfx/image/image_skia.h" | 19 #include "ui/gfx/image/image_skia.h" |
20 #include "ui/gfx/insets.h" | 20 #include "ui/gfx/insets.h" |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( | 611 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( |
612 Textfield* field) { | 612 Textfield* field) { |
613 #if defined(OS_WIN) && !defined(USE_AURA) | 613 #if defined(OS_WIN) && !defined(USE_AURA) |
614 if (!Textfield::IsViewsTextfieldEnabled()) | 614 if (!Textfield::IsViewsTextfieldEnabled()) |
615 return new NativeTextfieldWin(field); | 615 return new NativeTextfieldWin(field); |
616 #endif | 616 #endif |
617 return new NativeTextfieldViews(field); | 617 return new NativeTextfieldViews(field); |
618 } | 618 } |
619 | 619 |
620 } // namespace views | 620 } // namespace views |
OLD | NEW |