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 #ifndef UI_EVENTS_TEST_DEVICE_DATA_MANAGER_TEST_API_H_ |
| 6 #define UI_EVENTS_TEST_DEVICE_DATA_MANAGER_TEST_API_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "ui/events/devices/device_data_manager.h" |
| 10 #include "ui/events/devices/events_devices_export.h" |
| 11 |
| 12 namespace ui { |
| 13 namespace test { |
| 14 |
| 15 // Test API class to access internals of the DeviceDataManager class. |
| 16 class DeviceDataManagerTestAPI { |
| 17 public: |
| 18 explicit DeviceDataManagerTestAPI(DeviceDataManager* device_data_manager); |
| 19 ~DeviceDataManagerTestAPI(); |
| 20 |
| 21 // Wrapper functions to DeviceDataManager. |
| 22 void NotifyObserversTouchscreenDeviceConfigurationChanged(); |
| 23 void NotifyObserversKeyboardDeviceConfigurationChanged(); |
| 24 void NotifyObserversMouseDeviceConfigurationChanged(); |
| 25 void NotifyObserversTouchpadDeviceConfigurationChanged(); |
| 26 void NotifyObserversDeviceListsComplete(); |
| 27 |
| 28 private: |
| 29 // The instance to provide internal access to. Not owned. |
| 30 DeviceDataManager* device_data_manager_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(DeviceDataManagerTestAPI); |
| 33 }; |
| 34 |
| 35 } // namespace test |
| 36 } // namespace ui |
| 37 |
| 38 #endif // UI_EVENTS_TEST_DEVICE_DATA_MANAGER_TEST_API_H_ |
OLD | NEW |