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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
7 #include "grit/ui_resources.h" | 7 #include "grit/ui_resources.h" |
8 #include "ui/aura/client/screen_position_client.h" | 8 #include "ui/aura/client/screen_position_client.h" |
9 #include "ui/aura/test/event_generator.h" | 9 #include "ui/aura/test/event_generator.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
11 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
12 #include "ui/base/touch/touch_editing_controller.h" | 12 #include "ui/base/touch/touch_editing_controller.h" |
13 #include "ui/base/ui_base_switches.h" | 13 #include "ui/base/ui_base_switches.h" |
14 #include "ui/gfx/canvas.h" | 14 #include "ui/gfx/canvas.h" |
15 #include "ui/gfx/point.h" | 15 #include "ui/gfx/geometry/point.h" |
16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
17 #include "ui/gfx/render_text.h" | 17 #include "ui/gfx/render_text.h" |
18 #include "ui/views/controls/textfield/textfield.h" | 18 #include "ui/views/controls/textfield/textfield.h" |
19 #include "ui/views/controls/textfield/textfield_test_api.h" | 19 #include "ui/views/controls/textfield/textfield_test_api.h" |
20 #include "ui/views/test/views_test_base.h" | 20 #include "ui/views/test/views_test_base.h" |
21 #include "ui/views/touchui/touch_selection_controller_impl.h" | 21 #include "ui/views/touchui/touch_selection_controller_impl.h" |
22 #include "ui/views/views_touch_selection_controller_factory.h" | 22 #include "ui/views/views_touch_selection_controller_factory.h" |
23 #include "ui/views/widget/widget.h" | 23 #include "ui/views/widget/widget.h" |
24 | 24 |
25 using base::ASCIIToUTF16; | 25 using base::ASCIIToUTF16; |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 // Start touch editing; then press a key and ensure it deactivates touch | 853 // Start touch editing; then press a key and ensure it deactivates touch |
854 // selection. | 854 // selection. |
855 StartTouchEditing(); | 855 StartTouchEditing(); |
856 EXPECT_TRUE(GetSelectionController()); | 856 EXPECT_TRUE(GetSelectionController()); |
857 generator.PressKey(ui::VKEY_A, 0); | 857 generator.PressKey(ui::VKEY_A, 0); |
858 RunPendingMessages(); | 858 RunPendingMessages(); |
859 EXPECT_FALSE(GetSelectionController()); | 859 EXPECT_FALSE(GetSelectionController()); |
860 } | 860 } |
861 | 861 |
862 } // namespace views | 862 } // namespace views |
OLD | NEW |