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

Side by Side Diff: ui/events/devices/input_device_service.cc

Issue 1992443002: Add Mojo IPC based input-device service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup_ddm
Patch Set: Clean up/move files. Created 4 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/events/devices/input_device_service.h"
6
7 namespace ui {
8
9 InputDeviceService* InputDeviceService::instance_ = nullptr;
10
11 InputDeviceService* InputDeviceService::GetInstance() {
12 DCHECK(instance_);
13 return instance_;
14 }
15
16 void InputDeviceService::SetInstance(InputDeviceService* instance) {
17 DCHECK(!instance_);
18 instance_ = instance;
19 }
20
21 void InputDeviceService::ClearInstance() {
22 instance_ = nullptr;
23 }
24
25 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698