blob: 79a70ec63a20b4fa499dd077ef0259010aeb84da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/base/touch/touch_editing_controller.h"
namespace ui {
namespace {
TouchEditingControllerFactory* g_shared_instance = NULL;
} // namespace
TouchEditingControllerDeprecated* TouchEditingControllerDeprecated::Create(
TouchEditable* client_view) {
if (g_shared_instance)
return g_shared_instance->Create(client_view);
return NULL;
}
// static
void TouchEditingControllerFactory::SetInstance(
TouchEditingControllerFactory* instance) {
g_shared_instance = instance;
}
} // namespace ui
|