blob: cb8c884fe85f5a6aa9388d559b9b531401e53cfa [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_AURA_DEVICE_LIST_UPDATER_AURAX11_H_
#define UI_AURA_DEVICE_LIST_UPDATER_AURAX11_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/message_loop/message_pump_observer.h"
namespace aura {
// Filters out global XInput notifications and updates the DeviceList.
class DeviceListUpdaterAuraX11 : public base::MessagePumpObserver {
public:
DeviceListUpdaterAuraX11();
virtual ~DeviceListUpdaterAuraX11();
// Overridden from base::MessagePumpObserver:
virtual base::EventStatus WillProcessEvent(
const base::NativeEvent& event) OVERRIDE;
virtual void DidProcessEvent(
const base::NativeEvent& event) OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(DeviceListUpdaterAuraX11);
};
} // namespace aura
#endif // UI_AURA_DEVICE_LIST_UPDATER_AURAX11_H_