Drive: Add BatchableRequest subclass.
[chromium-blink-merge.git] / ui / views / views_touch_selection_controller_factory_aura.cc
blobc858f886014781e8f1dd95a70a42f704ffd2398c
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.
5 #include "ui/views/views_touch_selection_controller_factory.h"
7 #include "ui/base/ui_base_switches_util.h"
8 #include "ui/views/touchui/touch_selection_controller_impl.h"
10 namespace views {
12 ViewsTouchEditingControllerFactory::ViewsTouchEditingControllerFactory() {
15 ui::TouchEditingControllerDeprecated*
16 ViewsTouchEditingControllerFactory::Create(
17 ui::TouchEditable* client_view) {
18 if (switches::IsTouchEditingEnabled())
19 return new views::TouchSelectionControllerImpl(client_view);
20 return NULL;
23 } // namespace views