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

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

Issue 285303004: ozone: Remove the explicit call to start listening for events. (Closed) 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/logging.h" 7 #include "base/logging.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
11 // static 11 // static
12 EventFactoryOzone* EventFactoryOzone::impl_ = NULL; 12 EventFactoryOzone* EventFactoryOzone::impl_ = NULL;
13 13
14 EventFactoryOzone::EventFactoryOzone() { 14 EventFactoryOzone::EventFactoryOzone() {
15 CHECK(!impl_) << "There should only be a single EventFactoryOzone"; 15 CHECK(!impl_) << "There should only be a single EventFactoryOzone";
16 impl_ = this; 16 impl_ = this;
17 } 17 }
18 18
19 EventFactoryOzone::~EventFactoryOzone() { 19 EventFactoryOzone::~EventFactoryOzone() {
20 CHECK_EQ(impl_, this); 20 CHECK_EQ(impl_, this);
21 impl_ = NULL; 21 impl_ = NULL;
22 } 22 }
23 23
24 EventFactoryOzone* EventFactoryOzone::GetInstance() { 24 EventFactoryOzone* EventFactoryOzone::GetInstance() {
25 CHECK(impl_) << "No EventFactoryOzone implementation set."; 25 CHECK(impl_) << "No EventFactoryOzone implementation set.";
26 return impl_; 26 return impl_;
27 } 27 }
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698