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