[SyncFS] Initialize SyncWorker when sync is enabled.
[chromium-blink-merge.git] / ui / base / touch / touch_editing_controller.cc
blob1b84ed929bf2af8ad365bd6974d87ec7e3866bb7
1 // Copyright (c) 2013 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/base/touch/touch_editing_controller.h"
7 namespace ui {
9 namespace {
10 TouchSelectionControllerFactory* g_shared_instance = NULL;
11 } // namespace
13 TouchSelectionController* TouchSelectionController::create(
14 TouchEditable* client_view) {
15 if (g_shared_instance)
16 return g_shared_instance->create(client_view);
17 return NULL;
20 // static
21 void TouchSelectionControllerFactory::SetInstance(
22 TouchSelectionControllerFactory* instance) {
23 g_shared_instance = instance;
26 } // namespace ui