OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EVENTS_XINPUT_HIERARCHY_CHANGED_EVENT_LISTENER_H
_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EVENTS_XINPUT_HIERARCHY_CHANGED_EVENT_LISTENER_H
_ |
6 #define CHROME_BROWSER_CHROMEOS_EVENTS_XINPUT_HIERARCHY_CHANGED_EVENT_LISTENER_H
_ | 6 #define CHROME_BROWSER_CHROMEOS_EVENTS_XINPUT_HIERARCHY_CHANGED_EVENT_LISTENER_H
_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
9 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
10 #include "ui/events/platform/platform_event_observer.h" | 11 #include "ui/events/platform/platform_event_observer.h" |
11 | 12 |
12 typedef union _XEvent XEvent; | 13 typedef union _XEvent XEvent; |
13 | 14 |
14 namespace chromeos { | 15 namespace chromeos { |
15 | 16 |
16 // XInputHierarchyChangedEventListener listens for an XI_HierarchyChanged event, | 17 // XInputHierarchyChangedEventListener listens for an XI_HierarchyChanged event, |
17 // which is sent to Chrome when X detects a system or USB keyboard (or mouse), | 18 // which is sent to Chrome when X detects a system or USB keyboard (or mouse), |
(...skipping 22 matching lines...) Expand all Loading... |
40 void ProcessedXEvent(XEvent* xevent); | 41 void ProcessedXEvent(XEvent* xevent); |
41 | 42 |
42 bool stopped_; | 43 bool stopped_; |
43 | 44 |
44 DISALLOW_COPY_AND_ASSIGN(XInputHierarchyChangedEventListener); | 45 DISALLOW_COPY_AND_ASSIGN(XInputHierarchyChangedEventListener); |
45 }; | 46 }; |
46 | 47 |
47 } // namespace chromeos | 48 } // namespace chromeos |
48 | 49 |
49 #endif // CHROME_BROWSER_CHROMEOS_EVENTS_XINPUT_HIERARCHY_CHANGED_EVENT_LISTENE
R_H_ | 50 #endif // CHROME_BROWSER_CHROMEOS_EVENTS_XINPUT_HIERARCHY_CHANGED_EVENT_LISTENE
R_H_ |
OLD | NEW |