NaCl cleanup: Stop linking the old, glibc-based Non-SFI runtime into nacl_helper
[chromium-blink-merge.git] / ui / events / test / device_data_manager_test_api_impl.cc
blob92ff62be795fa379565c9a3c0d20f9c7fec2ad88
1 // Copyright 2015 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.
5 #include "ui/events/test/device_data_manager_test_api.h"
7 #include "ui/events/devices/device_data_manager.h"
9 namespace ui {
10 namespace test {
12 DeviceDataManagerTestAPI::DeviceDataManagerTestAPI()
13 : should_delete_instance_(false) {
16 DeviceDataManagerTestAPI::~DeviceDataManagerTestAPI() {
17 if (should_delete_instance_)
18 DeviceDataManager::DeleteInstance();
21 bool DeviceDataManagerTestAPI::CreateDeviceDataManagerInstance() {
22 should_delete_instance_ = true;
23 DeviceDataManager::DeleteInstance();
24 DeviceDataManager::set_instance(new DeviceDataManager());
25 return true;
28 void DeviceDataManagerTestAPI::
29 NotifyObserversTouchscreenDeviceConfigurationChanged() {
30 DeviceDataManager::GetInstance()
31 ->NotifyObserversTouchscreenDeviceConfigurationChanged();
34 void DeviceDataManagerTestAPI::
35 NotifyObserversKeyboardDeviceConfigurationChanged() {
36 DeviceDataManager::GetInstance()
37 ->NotifyObserversKeyboardDeviceConfigurationChanged();
40 void DeviceDataManagerTestAPI::
41 NotifyObserversMouseDeviceConfigurationChanged() {
42 DeviceDataManager::GetInstance()
43 ->NotifyObserversMouseDeviceConfigurationChanged();
46 void DeviceDataManagerTestAPI::
47 NotifyObserversTouchpadDeviceConfigurationChanged() {
48 DeviceDataManager::GetInstance()
49 ->NotifyObserversTouchpadDeviceConfigurationChanged();
52 void DeviceDataManagerTestAPI::NotifyObserversDeviceListsComplete() {
53 DeviceDataManager::GetInstance()->NotifyObserversDeviceListsComplete();
56 void DeviceDataManagerTestAPI::OnDeviceListsComplete() {
57 DeviceDataManager::GetInstance()->OnDeviceListsComplete();
60 } // namespace test
61 } // namespace ui