diff options
Diffstat (limited to 'chromium/ui/display/types/chromeos/touchscreen_device.h')
-rw-r--r-- | chromium/ui/display/types/chromeos/touchscreen_device.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/chromium/ui/display/types/chromeos/touchscreen_device.h b/chromium/ui/display/types/chromeos/touchscreen_device.h new file mode 100644 index 00000000000..3a471fa16d0 --- /dev/null +++ b/chromium/ui/display/types/chromeos/touchscreen_device.h @@ -0,0 +1,31 @@ +// 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_DISPLAY_TYPES_CHROMEOS_TOUCHSCREEN_DEVICE_H_ +#define UI_DISPLAY_TYPES_CHROMEOS_TOUCHSCREEN_DEVICE_H_ + +#include "ui/display/types/display_types_export.h" +#include "ui/gfx/geometry/size.h" + +namespace ui { + +// Represents a Touchscreen device state. +struct DISPLAY_TYPES_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_DISPLAY_TYPES_CHROMEOS_TOUCHSCREEN_DEVICE_H_ |