touch_editing_controller.cc 691 B

1234567891011121314151617181920212223242526
  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. #include "ui/base/pointer/touch_editing_controller.h"
  5. namespace ui {
  6. namespace {
  7. TouchEditingControllerFactory* g_shared_instance = NULL;
  8. } // namespace
  9. TouchEditingControllerDeprecated* TouchEditingControllerDeprecated::Create(
  10. TouchEditable* client_view) {
  11. if (g_shared_instance)
  12. return g_shared_instance->Create(client_view);
  13. return NULL;
  14. }
  15. // static
  16. void TouchEditingControllerFactory::SetInstance(
  17. TouchEditingControllerFactory* instance) {
  18. g_shared_instance = instance;
  19. }
  20. } // namespace ui