• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #include "ui/base/touch/touch_editing_controller.h"
6 
7 namespace ui {
8 
9 namespace {
10 TouchSelectionControllerFactory* g_shared_instance = NULL;
11 }  // namespace
12 
create(TouchEditable * client_view)13 TouchSelectionController* TouchSelectionController::create(
14     TouchEditable* client_view) {
15   if (g_shared_instance)
16     return g_shared_instance->create(client_view);
17   return NULL;
18 }
19 
20 // static
SetInstance(TouchSelectionControllerFactory * instance)21 void TouchSelectionControllerFactory::SetInstance(
22     TouchSelectionControllerFactory* instance) {
23   g_shared_instance = instance;
24 }
25 
26 }  // namespace ui
27