Index: ui/touch_selection/touch_selection_menu_runner.cc |
diff --git a/ui/touch_selection/touch_selection_menu_runner.cc b/ui/touch_selection/touch_selection_menu_runner.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c7026f39815c65c37d4966b8a64ca76d218a0fba |
--- /dev/null |
+++ b/ui/touch_selection/touch_selection_menu_runner.cc |
@@ -0,0 +1,26 @@ |
+// Copyright 2015 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/touch_selection/touch_selection_menu_runner.h" |
+ |
+namespace ui { |
+namespace { |
+ |
+TouchSelectionMenuRunner* g_touch_selection_menu_runner = nullptr; |
+ |
+} // namespace |
+ |
+TouchSelectionMenuRunner::~TouchSelectionMenuRunner() { |
+ g_touch_selection_menu_runner = nullptr; |
+} |
+ |
+TouchSelectionMenuRunner* TouchSelectionMenuRunner::GetInstance() { |
+ return g_touch_selection_menu_runner; |
+} |
+ |
+TouchSelectionMenuRunner::TouchSelectionMenuRunner() { |
+ g_touch_selection_menu_runner = this; |
+} |
+ |
+} // namespace ui |