OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/pickle.h" | 12 #include "base/pickle.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "grit/ui_strings.h" | |
16 #include "ui/base/clipboard/clipboard.h" | 15 #include "ui/base/clipboard/clipboard.h" |
17 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 16 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
18 #include "ui/base/dragdrop/drag_drop_types.h" | 17 #include "ui/base/dragdrop/drag_drop_types.h" |
19 #include "ui/base/ime/text_input_client.h" | 18 #include "ui/base/ime/text_input_client.h" |
20 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
21 #include "ui/base/ui_base_switches.h" | 20 #include "ui/base/ui_base_switches.h" |
22 #include "ui/base/ui_base_switches_util.h" | 21 #include "ui/base/ui_base_switches_util.h" |
23 #include "ui/events/event.h" | 22 #include "ui/events/event.h" |
24 #include "ui/events/keycodes/keyboard_codes.h" | 23 #include "ui/events/keycodes/keyboard_codes.h" |
25 #include "ui/gfx/render_text.h" | 24 #include "ui/gfx/render_text.h" |
| 25 #include "ui/strings/grit/ui_strings.h" |
26 #include "ui/views/controls/textfield/textfield_controller.h" | 26 #include "ui/views/controls/textfield/textfield_controller.h" |
27 #include "ui/views/controls/textfield/textfield_model.h" | 27 #include "ui/views/controls/textfield/textfield_model.h" |
28 #include "ui/views/controls/textfield/textfield_test_api.h" | 28 #include "ui/views/controls/textfield/textfield_test_api.h" |
29 #include "ui/views/focus/focus_manager.h" | 29 #include "ui/views/focus/focus_manager.h" |
30 #include "ui/views/ime/mock_input_method.h" | 30 #include "ui/views/ime/mock_input_method.h" |
31 #include "ui/views/test/test_views_delegate.h" | 31 #include "ui/views/test/test_views_delegate.h" |
32 #include "ui/views/test/views_test_base.h" | 32 #include "ui/views/test/views_test_base.h" |
33 #include "ui/views/widget/widget.h" | 33 #include "ui/views/widget/widget.h" |
34 #include "url/gurl.h" | 34 #include "url/gurl.h" |
35 | 35 |
(...skipping 2027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2063 TextfieldDestroyerController controller(textfield_); | 2063 TextfieldDestroyerController controller(textfield_); |
2064 EXPECT_TRUE(controller.target()); | 2064 EXPECT_TRUE(controller.target()); |
2065 | 2065 |
2066 // Send a key to trigger OnKeyEvent(). | 2066 // Send a key to trigger OnKeyEvent(). |
2067 SendKeyEvent('X'); | 2067 SendKeyEvent('X'); |
2068 | 2068 |
2069 EXPECT_FALSE(controller.target()); | 2069 EXPECT_FALSE(controller.target()); |
2070 } | 2070 } |
2071 | 2071 |
2072 } // namespace views | 2072 } // namespace views |
OLD | NEW |