mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
32 lines
808 B
C++
32 lines
808 B
C++
// Copyright 2014 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_EVENTS_TOUCHSCREEN_DEVICE_H_
|
|
#define UI_EVENTS_TOUCHSCREEN_DEVICE_H_
|
|
|
|
#include "ui/events/events_base_export.h"
|
|
#include "ui/gfx/geometry/size.h"
|
|
|
|
namespace ui {
|
|
|
|
// Represents a Touchscreen device state.
|
|
struct EVENTS_BASE_EXPORT TouchscreenDevice {
|
|
static const int kInvalidId;
|
|
|
|
TouchscreenDevice(int id, const gfx::Size& size, bool is_internal);
|
|
|
|
// ID of the touch screen. This ID must uniquely identify the touch screen.
|
|
int id;
|
|
|
|
// Size of the touch screen area.
|
|
gfx::Size size;
|
|
|
|
// True if this is an internal touchscreen.
|
|
bool is_internal;
|
|
};
|
|
|
|
} // namespace ui
|
|
|
|
#endif // UI_EVENTS_TOUCHSCREEN_DEVICE_H_
|