Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: ui/views/touchui/touch_selection_controller_impl_unittest.cc

Issue 2921523002: Clean up unused grit header includes in ui/. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "ui/aura/client/screen_position_client.h" 10 #include "ui/aura/client/screen_position_client.h"
11 #include "ui/aura/test/test_cursor_client.h" 11 #include "ui/aura/test/test_cursor_client.h"
12 #include "ui/aura/window.h" 12 #include "ui/aura/window.h"
13 #include "ui/aura/window_event_dispatcher.h" 13 #include "ui/aura/window_event_dispatcher.h"
14 #include "ui/aura/window_tree_host.h" 14 #include "ui/aura/window_tree_host.h"
15 #include "ui/base/resource/resource_bundle.h" 15 #include "ui/base/resource/resource_bundle.h"
16 #include "ui/base/touch/touch_editing_controller.h" 16 #include "ui/base/touch/touch_editing_controller.h"
17 #include "ui/base/ui_base_switches.h" 17 #include "ui/base/ui_base_switches.h"
18 #include "ui/events/event_utils.h" 18 #include "ui/events/event_utils.h"
19 #include "ui/events/test/event_generator.h" 19 #include "ui/events/test/event_generator.h"
20 #include "ui/gfx/canvas.h" 20 #include "ui/gfx/canvas.h"
21 #include "ui/gfx/geometry/point.h" 21 #include "ui/gfx/geometry/point.h"
22 #include "ui/gfx/geometry/rect.h" 22 #include "ui/gfx/geometry/rect.h"
23 #include "ui/gfx/render_text.h" 23 #include "ui/gfx/render_text.h"
24 #include "ui/resources/grit/ui_resources.h"
25 #include "ui/views/controls/textfield/textfield.h" 24 #include "ui/views/controls/textfield/textfield.h"
26 #include "ui/views/controls/textfield/textfield_test_api.h" 25 #include "ui/views/controls/textfield/textfield_test_api.h"
27 #include "ui/views/resources/grit/views_resources.h"
28 #include "ui/views/test/views_test_base.h" 26 #include "ui/views/test/views_test_base.h"
29 #include "ui/views/touchui/touch_selection_controller_impl.h" 27 #include "ui/views/touchui/touch_selection_controller_impl.h"
30 #include "ui/views/views_touch_selection_controller_factory.h" 28 #include "ui/views/views_touch_selection_controller_factory.h"
31 #include "ui/views/widget/widget.h" 29 #include "ui/views/widget/widget.h"
32 #include "ui/views/widget/widget_delegate.h" 30 #include "ui/views/widget/widget_delegate.h"
33 31
34 using base::ASCIIToUTF16; 32 using base::ASCIIToUTF16;
35 using base::UTF16ToUTF8; 33 using base::UTF16ToUTF8;
36 using base::WideToUTF16; 34 using base::WideToUTF16;
37 35
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 // Start touch editing; then press a key and ensure it deactivates touch 916 // Start touch editing; then press a key and ensure it deactivates touch
919 // selection. 917 // selection.
920 StartTouchEditing(); 918 StartTouchEditing();
921 EXPECT_TRUE(GetSelectionController()); 919 EXPECT_TRUE(GetSelectionController());
922 generator.PressKey(ui::VKEY_A, 0); 920 generator.PressKey(ui::VKEY_A, 0);
923 RunPendingMessages(); 921 RunPendingMessages();
924 EXPECT_FALSE(GetSelectionController()); 922 EXPECT_FALSE(GetSelectionController());
925 } 923 }
926 924
927 } // namespace views 925 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/touchui/touch_selection_controller_impl.cc ('k') | ui/views/touchui/touch_selection_menu_runner_views_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698