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

Side by Side Diff: ui/events/test/device_data_manager_test_api.h

Issue 1182303005: Fixed the Touchscreen.TouchEventsEnabled histogram to record the correct values on X11 and Ozone ba… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compile time issues across the failing platform builds. Created 5 years, 5 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698