mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 06:16:30 +03:00
46 lines
983 B
Plaintext
46 lines
983 B
Plaintext
// Copyright 2016 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.
|
|
|
|
module display.mojom;
|
|
|
|
import "ui/gfx/geometry/mojo/geometry.mojom";
|
|
|
|
// Corresponds to display::Display::Rotation.
|
|
enum Rotation {
|
|
VALUE_0,
|
|
VALUE_90,
|
|
VALUE_180,
|
|
VALUE_270,
|
|
};
|
|
|
|
// Corresponds to display::Display::TouchSupport.
|
|
enum TouchSupport {
|
|
UNKNOWN,
|
|
AVAILABLE,
|
|
UNAVAILABLE,
|
|
};
|
|
|
|
// Corresponds to display::Display::AccelerometerSupport.
|
|
enum AccelerometerSupport {
|
|
UNKNOWN,
|
|
AVAILABLE,
|
|
UNAVAILABLE,
|
|
};
|
|
|
|
// Corresponds to display::Display.
|
|
struct Display {
|
|
int64 id;
|
|
gfx.mojom.Rect bounds;
|
|
gfx.mojom.Size size_in_pixels;
|
|
gfx.mojom.Rect work_area;
|
|
float device_scale_factor;
|
|
Rotation rotation;
|
|
TouchSupport touch_support;
|
|
AccelerometerSupport accelerometer_support;
|
|
gfx.mojom.Size maximum_cursor_size;
|
|
int32 color_depth;
|
|
int32 depth_per_component;
|
|
bool is_monochrome;
|
|
};
|