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."; |
24 return impl_; | 24 return impl_; |
25 } | 25 } |
26 | 26 |
27 void EventFactoryOzone::SetInstance(EventFactoryOzone* impl) { impl_ = impl; } | 27 void EventFactoryOzone::SetInstance(EventFactoryOzone* impl) { impl_ = impl; } |
28 | 28 |
29 void EventFactoryOzone::StartProcessingEvents() {} | |
30 | |
31 void EventFactoryOzone::WarpCursorTo(gfx::AcceleratedWidget widget, | 29 void EventFactoryOzone::WarpCursorTo(gfx::AcceleratedWidget widget, |
32 const gfx::PointF& location) { | 30 const gfx::PointF& location) { |
33 NOTIMPLEMENTED(); | 31 NOTIMPLEMENTED(); |
34 } | 32 } |
35 | 33 |
36 } // namespace ui | 34 } // namespace ui |
OLD | NEW |