Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module display.mojom; | |
| 6 | |
| 7 import "ui/display/mojo/display_constants.mojom"; | |
| 8 import "ui/display/mojo/display_mode.mojom"; | |
| 9 import "ui/display/mojo/display_snapshot_mojo.mojom"; | |
| 10 import "ui/display/mojo/gamma_ramp_rgb_entry.mojom"; | |
| 11 import "ui/gfx/geometry/mojo/geometry.mojom"; | |
| 12 | |
| 13 // Corresponds to display::NativeDisplayObserver. | |
| 14 interface NativeDisplayObserver { | |
| 15 OnConfigurationChanged(); | |
| 16 }; | |
| 17 | |
| 18 // Corresponds to display::NativeDisplayDelegate. This only implements | |
| 19 // functionality that is used by Ozone DRM. | |
| 20 interface NativeDisplayDelegate { | |
| 21 RegisterObserver(NativeDisplayObserver observer); | |
| 22 | |
| 23 Initialize(); | |
|
sky
2017/04/06 20:30:21
WDYT Of removing RegisterObserver and passing the
kylechar
2017/04/07 13:52:16
I like that better. Done.
| |
| 24 | |
| 25 // Take control of the displays from any other controlling process. | |
| 26 TakeDisplayControl() => (bool result); | |
| 27 | |
| 28 // Let others control the displays. | |
| 29 RelinquishDisplayControl() => (bool result); | |
| 30 | |
| 31 // Queries for a list of fresh displays. | |
| 32 GetDisplays() => (array<DisplaySnapshotMojo> snapshots); | |
| 33 | |
| 34 // Configures the display represented by |display_id| to use |mode| and | |
| 35 // positions the display to |origin| in the framebuffer. |mode| can be null, | |
| 36 // which represents disabling the display. | |
| 37 Configure(int64 display_id, | |
| 38 DisplayMode mode, | |
| 39 gfx.mojom.Point origin) => (bool status); | |
| 40 | |
| 41 // Gets HDCP state of output. | |
| 42 GetHDCPState(int64 display_id) => (bool status, HDCPState state); | |
| 43 | |
| 44 // Sets HDCP state of output. | |
| 45 SetHDCPState(int64 display_id, HDCPState state) => (bool status); | |
| 46 | |
| 47 // Set the gamma tables and correction matrix for |display_id|. | |
| 48 SetColorCorrection(int64 display_id, | |
| 49 array<GammaRampRGBEntry> degamma_lut, | |
| 50 array<GammaRampRGBEntry> gamma_lut, | |
| 51 array<float> correction_matrix); | |
| 52 }; | |
| OLD | NEW |