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

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

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 #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
OLDNEW
« ui/events/devices/device_data_manager.cc ('K') | « ui/events/test/device_data_manager_test_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698