| 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 UI_AURA_DEVICE_LIST_UPDATER_AURAX11_H_ | 5 #ifndef UI_AURA_DEVICE_LIST_UPDATER_AURAX11_H_ |
| 6 #define UI_AURA_DEVICE_LIST_UPDATER_AURAX11_H_ | 6 #define UI_AURA_DEVICE_LIST_UPDATER_AURAX11_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/message_loop/message_pump_observer.h" | 10 #include "base/message_pump_observer.h" |
| 11 | 11 |
| 12 namespace aura { | 12 namespace aura { |
| 13 | 13 |
| 14 // Filters out global XInput notifications and updates the DeviceList. | 14 // Filters out global XInput notifications and updates the DeviceList. |
| 15 class DeviceListUpdaterAuraX11 : public base::MessagePumpObserver { | 15 class DeviceListUpdaterAuraX11 : public base::MessagePumpObserver { |
| 16 public: | 16 public: |
| 17 DeviceListUpdaterAuraX11(); | 17 DeviceListUpdaterAuraX11(); |
| 18 virtual ~DeviceListUpdaterAuraX11(); | 18 virtual ~DeviceListUpdaterAuraX11(); |
| 19 | 19 |
| 20 // Overridden from base::MessagePumpObserver: | 20 // Overridden from base::MessagePumpObserver: |
| 21 virtual base::EventStatus WillProcessEvent( | 21 virtual base::EventStatus WillProcessEvent( |
| 22 const base::NativeEvent& event) OVERRIDE; | 22 const base::NativeEvent& event) OVERRIDE; |
| 23 virtual void DidProcessEvent( | 23 virtual void DidProcessEvent( |
| 24 const base::NativeEvent& event) OVERRIDE; | 24 const base::NativeEvent& event) OVERRIDE; |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(DeviceListUpdaterAuraX11); | 27 DISALLOW_COPY_AND_ASSIGN(DeviceListUpdaterAuraX11); |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 } // namespace aura | 30 } // namespace aura |
| 31 | 31 |
| 32 #endif // UI_AURA_DEVICE_LIST_UPDATER_AURAX11_H_ | 32 #endif // UI_AURA_DEVICE_LIST_UPDATER_AURAX11_H_ |
| OLD | NEW |