| OLD | NEW |
| (Empty) |
| 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/events/ozone/event_factory_ozone.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 | |
| 9 namespace ui { | |
| 10 | |
| 11 // static | |
| 12 EventFactoryOzone* EventFactoryOzone::impl_ = NULL; | |
| 13 | |
| 14 EventFactoryOzone::EventFactoryOzone() { | |
| 15 CHECK(!impl_) << "There should only be a single EventFactoryOzone"; | |
| 16 impl_ = this; | |
| 17 } | |
| 18 | |
| 19 EventFactoryOzone::~EventFactoryOzone() { | |
| 20 CHECK_EQ(impl_, this); | |
| 21 impl_ = NULL; | |
| 22 } | |
| 23 | |
| 24 EventFactoryOzone* EventFactoryOzone::GetInstance() { | |
| 25 CHECK(impl_) << "No EventFactoryOzone implementation set."; | |
| 26 return impl_; | |
| 27 } | |
| 28 | |
| 29 void EventFactoryOzone::WarpCursorTo(gfx::AcceleratedWidget widget, | |
| 30 const gfx::PointF& location) { | |
| 31 NOTIMPLEMENTED(); | |
| 32 } | |
| 33 | |
| 34 } // namespace ui | |
| OLD | NEW |