summaryrefslogtreecommitdiffstats
path: root/ui/events/ozone/event_factory_ozone.cc
blob: 79d6ece36d0481118a380ad919ef6a7d2a0a3990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/events/ozone/event_factory_ozone.h"

#include "base/logging.h"

namespace ui {

// static
EventFactoryOzone* EventFactoryOzone::impl_ = NULL;

EventFactoryOzone::EventFactoryOzone() {
  CHECK(!impl_) << "There should only be a single EventFactoryOzone";
  impl_ = this;
}

EventFactoryOzone::~EventFactoryOzone() {
  CHECK_EQ(impl_, this);
  impl_ = NULL;
}

EventFactoryOzone* EventFactoryOzone::GetInstance() {
  CHECK(impl_) << "No EventFactoryOzone implementation set.";
  return impl_;
}

void EventFactoryOzone::WarpCursorTo(gfx::AcceleratedWidget widget,
                                     const gfx::PointF& location) {
  NOTIMPLEMENTED();
}

}  // namespace ui