blob: 641930965ac455ad9207d72e99ad89cc44e364c5 [file] [log] [blame]
// Copyright 2013 The Chromium Authors
// 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 <memory>
#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 std::unique_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_