summaryrefslogtreecommitdiffstats
path: root/chromium/ui/ozone/public/event_factory_ozone.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/ozone/public/event_factory_ozone.cc')
-rw-r--r--chromium/ui/ozone/public/event_factory_ozone.cc34
1 files changed, 34 insertions, 0 deletions
diff --git a/chromium/ui/ozone/public/event_factory_ozone.cc b/chromium/ui/ozone/public/event_factory_ozone.cc
new file mode 100644
index 00000000000..85ecf3ceddc
--- /dev/null
+++ b/chromium/ui/ozone/public/event_factory_ozone.cc
@@ -0,0 +1,34 @@
+// 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/ozone/public/event_factory_ozone.h"
+
+#include "base/logging.h"
+
+namespace ui {
+
+// static
+EventFactoryOzone* EventFactoryOzone::impl_ = NULL;
+
+EventFactoryOzone::EventFactoryOzone() {
+ CHECK(!impl_) << "There should only be a single EventFactoryOzone";
+ impl_ = this;
+}
+
+EventFactoryOzone::~EventFactoryOzone() {
+ CHECK_EQ(impl_, this);
+ impl_ = NULL;
+}
+
+EventFactoryOzone* EventFactoryOzone::GetInstance() {
+ CHECK(impl_) << "No EventFactoryOzone implementation set.";
+ return impl_;
+}
+
+void EventFactoryOzone::WarpCursorTo(gfx::AcceleratedWidget widget,
+ const gfx::PointF& location) {
+ NOTIMPLEMENTED();
+}
+
+} // namespace ui