summaryrefslogtreecommitdiffstats
path: root/ui/aura/device_list_updater_aurax11.h
blob: cb8c884fe85f5a6aa9388d559b9b531401e53cfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// 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_