diff options
author | mohsen <mohsen@chromium.org> | 2014-12-12 12:45:23 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-12 20:45:55 +0000 |
commit | 2df98ab41dd90307132fe13363332c6fdeffe6a5 (patch) | |
tree | e603aa3964f16751a82e28f20bf39eac85c350da /ui/views/touchui/touch_selection_controller_impl_unittest.cc | |
parent | 2bab693172313788e550f908ff4b3c53623b94d2 (diff) | |
download | chromium_src-2df98ab41dd90307132fe13363332c6fdeffe6a5.zip chromium_src-2df98ab41dd90307132fe13363332c6fdeffe6a5.tar.gz chromium_src-2df98ab41dd90307132fe13363332c6fdeffe6a5.tar.bz2 |
Rename old Aura TouchSelectionController
Renamed old Aura TouchSelectionController in ui/base to
TouchEditingControllerDeprecated and also the corresponding factory
class to TouchEditingControllerFactory. In addition to preventing name
conflict with the new unified TouchSelectionController, the names match
better with the file name (touch_editing_controller).
BUG=399721
Review URL: https://codereview.chromium.org/798683003
Cr-Commit-Position: refs/heads/master@{#308154}
Diffstat (limited to 'ui/views/touchui/touch_selection_controller_impl_unittest.cc')
-rw-r--r-- | ui/views/touchui/touch_selection_controller_impl_unittest.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/views/touchui/touch_selection_controller_impl_unittest.cc b/ui/views/touchui/touch_selection_controller_impl_unittest.cc index 8f9d8a6..f5d26a9 100644 --- a/ui/views/touchui/touch_selection_controller_impl_unittest.cc +++ b/ui/views/touchui/touch_selection_controller_impl_unittest.cc @@ -65,14 +65,14 @@ class TouchSelectionControllerImplTest : public ViewsTestBase { : textfield_widget_(nullptr), widget_(nullptr), textfield_(nullptr), - views_tsc_factory_(new ViewsTouchSelectionControllerFactory) { + views_tsc_factory_(new ViewsTouchEditingControllerFactory) { CommandLine::ForCurrentProcess()->AppendSwitch( switches::kEnableTouchEditing); - ui::TouchSelectionControllerFactory::SetInstance(views_tsc_factory_.get()); + ui::TouchEditingControllerFactory::SetInstance(views_tsc_factory_.get()); } ~TouchSelectionControllerImplTest() override { - ui::TouchSelectionControllerFactory::SetInstance(nullptr); + ui::TouchEditingControllerFactory::SetInstance(nullptr); } void SetUp() override { @@ -117,7 +117,7 @@ class TouchSelectionControllerImplTest : public ViewsTestBase { protected: static bool IsCursorHandleVisibleFor( - ui::TouchSelectionController* controller) { + ui::TouchEditingControllerDeprecated* controller) { TouchSelectionControllerImpl* impl = static_cast<TouchSelectionControllerImpl*>(controller); return impl->IsCursorHandleVisible(); @@ -276,7 +276,7 @@ class TouchSelectionControllerImplTest : public ViewsTestBase { Textfield* textfield_; scoped_ptr<TextfieldTestApi> textfield_test_api_; - scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; + scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; scoped_ptr<aura::test::TestCursorClient> test_cursor_client_; private: @@ -685,8 +685,8 @@ TEST_F(TouchSelectionControllerImplTest, CreateWidget(); TestTouchEditable touch_editable(widget_->GetNativeView()); - scoped_ptr<ui::TouchSelectionController> touch_selection_controller( - ui::TouchSelectionController::create(&touch_editable)); + scoped_ptr<ui::TouchEditingControllerDeprecated> touch_selection_controller( + ui::TouchEditingControllerDeprecated::Create(&touch_editable)); touch_editable.set_bounds(gfx::Rect(0, 0, 100, 20)); |