| 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_SYSTEM_KEY_EVENT_LISTENER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EVENTS_SYSTEM_KEY_EVENT_LISTENER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EVENTS_SYSTEM_KEY_EVENT_LISTENER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EVENTS_SYSTEM_KEY_EVENT_LISTENER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 9 #include "ui/events/platform/platform_event_observer.h" | 10 #include "ui/events/platform/platform_event_observer.h" |
| 10 | 11 |
| 11 typedef union _XEvent XEvent; | 12 typedef union _XEvent XEvent; |
| 12 | 13 |
| 13 namespace chromeos { | 14 namespace chromeos { |
| 14 | 15 |
| 15 class SystemKeyEventListener : public ui::PlatformEventObserver { | 16 class SystemKeyEventListener : public ui::PlatformEventObserver { |
| 16 public: | 17 public: |
| 17 static void Initialize(); | 18 static void Initialize(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 40 | 41 |
| 41 // Base X ID for events from the XKB extension. | 42 // Base X ID for events from the XKB extension. |
| 42 int xkb_event_base_; | 43 int xkb_event_base_; |
| 43 | 44 |
| 44 DISALLOW_COPY_AND_ASSIGN(SystemKeyEventListener); | 45 DISALLOW_COPY_AND_ASSIGN(SystemKeyEventListener); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace chromeos | 48 } // namespace chromeos |
| 48 | 49 |
| 49 #endif // CHROME_BROWSER_CHROMEOS_EVENTS_SYSTEM_KEY_EVENT_LISTENER_H_ | 50 #endif // CHROME_BROWSER_CHROMEOS_EVENTS_SYSTEM_KEY_EVENT_LISTENER_H_ |
| OLD | NEW |