summaryrefslogtreecommitdiffstats
path: root/ui/aura/input_state_lookup.h
blob: 4c2b424e40432ada0bab1a0d5498958efaa86ffb (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
// Copyright 2013 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_INPUT_STATE_LOOKUP_H_
#define UI_AURA_INPUT_STATE_LOOKUP_H_

#include "base/memory/scoped_ptr.h"
#include "ui/aura/aura_export.h"

namespace aura {

// InputStateLookup is used to obtain the state of input devices.
class AURA_EXPORT InputStateLookup {
 public:
  virtual ~InputStateLookup() {}

  // Creates the platform specific InputStateLookup. May return NULL.
  static scoped_ptr<InputStateLookup> Create();

  // Returns true if any mouse button is down.
  virtual bool IsMouseButtonDown() const = 0;
};

}  // namespace aura

#endif  // UI_AURA_INPUT_STATE_LOOKUP_H_