OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #include "ui/events/test/device_data_manager_test_api.h" | |
6 | |
7 namespace ui { | |
8 namespace test { | |
9 | |
10 scoped_ptr<DeviceDataManager> | |
11 DeviceDataManagerTestAPI::CreateDeviceDataManager() { | |
12 return make_scoped_ptr(new DeviceDataManager); | |
13 } | |
14 | |
15 void DeviceDataManagerTestAPI::SetDeviceDataManagerInstance( | |
16 DeviceDataManager* instance) { | |
17 DeviceDataManager::set_instance(instance); | |
18 } | |
19 | |
20 DeviceDataManagerTestAPI::DeviceDataManagerTestAPI( | |
21 DeviceDataManager* device_data_manager) | |
22 : device_data_manager_(device_data_manager) { | |
23 } | |
24 | |
25 DeviceDataManagerTestAPI::~DeviceDataManagerTestAPI() { | |
26 } | |
27 | |
28 void DeviceDataManagerTestAPI:: | |
29 NotifyObserversTouchscreenDeviceConfigurationChanged() { | |
30 device_data_manager_->NotifyObserversTouchscreenDeviceConfigurationChanged(); | |
31 } | |
Alexei Svitkine (slow)
2015/07/07 22:00:59
Nit: Add blank lines between functions.
bruthig
2015/07/08 20:29:52
Done. Weird, I don't know how those got removed..
| |
32 void DeviceDataManagerTestAPI:: | |
33 NotifyObserversKeyboardDeviceConfigurationChanged() { | |
34 device_data_manager_->NotifyObserversKeyboardDeviceConfigurationChanged(); | |
35 } | |
36 void DeviceDataManagerTestAPI:: | |
37 NotifyObserversMouseDeviceConfigurationChanged() { | |
38 device_data_manager_->NotifyObserversMouseDeviceConfigurationChanged(); | |
39 } | |
40 void DeviceDataManagerTestAPI:: | |
41 NotifyObserversTouchpadDeviceConfigurationChanged() { | |
42 device_data_manager_->NotifyObserversTouchpadDeviceConfigurationChanged(); | |
43 } | |
44 void DeviceDataManagerTestAPI::NotifyObserversDeviceListsComplete() { | |
45 device_data_manager_->NotifyObserversDeviceListsComplete(); | |
46 } | |
47 | |
48 void DeviceDataManagerTestAPI::OnDeviceListsComplete() { | |
49 device_data_manager_->OnDeviceListsComplete(); | |
50 } | |
51 | |
52 } // namespace test | |
53 } // namespace ui | |
OLD | NEW |