Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: ui/events/ozone/event_factory_ozone.cc

Issue 255823009: [WIP] ui/window: Master CL. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698