OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "ui/views/views_touch_selection_controller_factory.h" | |
6 | |
7 #include "ui/base/ui_base_switches_util.h" | |
8 #include "ui/views/touchui/touch_selection_controller_impl.h" | |
9 | |
10 namespace views { | |
11 | |
12 ViewsTouchSelectionControllerFactory::ViewsTouchSelectionControllerFactory() { | |
13 } | |
14 | |
15 ui::TouchSelectionController* ViewsTouchSelectionControllerFactory::create( | |
16 ui::TouchEditable* client_view) { | |
17 if (switches::IsTouchEditingEnabled()) | |
18 return new views::TouchSelectionControllerImpl(client_view); | |
19 return NULL; | |
20 } | |
21 | |
22 } // namespace views | |
OLD | NEW |