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