| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/events/ozone/event_factory_ozone.h" | 5 #include "ui/events/ozone/event_factory_ozone.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "ui/events/event.h" | 10 #include "ui/events/event.h" |
| 11 #include "ui/events/event_switches.h" | 11 #include "ui/events/event_switches.h" |
| 12 | 12 |
| 13 namespace ui { | 13 namespace ui { |
| 14 | 14 |
| 15 // static | 15 // static |
| 16 EventFactoryOzone* EventFactoryOzone::impl_ = NULL; | 16 EventFactoryOzone* EventFactoryOzone::impl_ = NULL; |
| 17 | 17 |
| 18 EventFactoryOzone::EventFactoryOzone() {} | 18 EventFactoryOzone::EventFactoryOzone() {} |
| 19 | 19 |
| 20 EventFactoryOzone::~EventFactoryOzone() {} | 20 EventFactoryOzone::~EventFactoryOzone() {} |
| 21 | 21 |
| 22 EventFactoryOzone* EventFactoryOzone::GetInstance() { | 22 EventFactoryOzone* EventFactoryOzone::GetInstance() { |
| 23 CHECK(impl_) << "No EventFactoryOzone implementation set."; | 23 CHECK(impl_) << "No EventFactoryOzone implementation set. " << &impl_; |
| 24 return impl_; | 24 return impl_; |
| 25 } | 25 } |
| 26 | 26 |
| 27 void EventFactoryOzone::SetInstance(EventFactoryOzone* impl) { impl_ = impl; } | 27 void EventFactoryOzone::SetInstance(EventFactoryOzone* impl) { |
| 28 LOG(ERROR) << "Setting instance " << impl << " " << &impl_; |
| 29 impl_ = impl; |
| 30 } |
| 28 | 31 |
| 29 void EventFactoryOzone::StartProcessingEvents() {} | 32 void EventFactoryOzone::StartProcessingEvents() {} |
| 30 | 33 |
| 31 void EventFactoryOzone::SetFileTaskRunner( | 34 void EventFactoryOzone::SetFileTaskRunner( |
| 32 scoped_refptr<base::TaskRunner> task_runner) {} | 35 scoped_refptr<base::TaskRunner> task_runner) {} |
| 33 | 36 |
| 34 void EventFactoryOzone::WarpCursorTo(gfx::AcceleratedWidget widget, | 37 void EventFactoryOzone::WarpCursorTo(gfx::AcceleratedWidget widget, |
| 35 const gfx::PointF& location) { | 38 const gfx::PointF& location) { |
| 36 NOTIMPLEMENTED(); | 39 NOTIMPLEMENTED(); |
| 37 } | 40 } |
| 38 | 41 |
| 39 } // namespace ui | 42 } // namespace ui |
| OLD | NEW |