OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_DEVICE_UMA_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DEVICE_UMA_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DEVICE_UMA_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DEVICE_UMA_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ui/events/platform/platform_event_observer.h" | 9 #include "ui/events/platform/platform_event_observer.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 void Stop(); | 22 void Stop(); |
23 | 23 |
24 private: | 24 private: |
25 friend struct DefaultSingletonTraits<DeviceUMA>; | 25 friend struct DefaultSingletonTraits<DeviceUMA>; |
26 | 26 |
27 DeviceUMA(); | 27 DeviceUMA(); |
28 virtual ~DeviceUMA(); | 28 virtual ~DeviceUMA(); |
29 | 29 |
30 // ui::PlatformEventObserver: | 30 // ui::PlatformEventObserver: |
31 virtual void WillProcessEvent(const ui::PlatformEvent& event) OVERRIDE; | 31 virtual void WillProcessEvent(const ui::PlatformEvent& event) override; |
32 virtual void DidProcessEvent(const ui::PlatformEvent& event) OVERRIDE; | 32 virtual void DidProcessEvent(const ui::PlatformEvent& event) override; |
33 | 33 |
34 // Check CrOS touchpad events to see if the metrics gesture is present | 34 // Check CrOS touchpad events to see if the metrics gesture is present |
35 void CheckTouchpadEvent(XEvent* event); | 35 void CheckTouchpadEvent(XEvent* event); |
36 | 36 |
37 // Check the incoming events for interesting patterns that we care about. | 37 // Check the incoming events for interesting patterns that we care about. |
38 void CheckIncomingEvent(XEvent* event); | 38 void CheckIncomingEvent(XEvent* event); |
39 | 39 |
40 bool stopped_; | 40 bool stopped_; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(DeviceUMA); | 42 DISALLOW_COPY_AND_ASSIGN(DeviceUMA); |
43 }; | 43 }; |
44 | 44 |
45 } // namespace chromeos | 45 } // namespace chromeos |
46 | 46 |
47 #endif // CHROME_BROWSER_CHROMEOS_DEVICE_UMA_H_ | 47 #endif // CHROME_BROWSER_CHROMEOS_DEVICE_UMA_H_ |
OLD | NEW |