OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Multiply-included message file, hence no include guard here, but see below | 5 // Multiply-included message file, hence no include guard here, but see below |
6 // for a much smaller-than-usual include guard section. | 6 // for a much smaller-than-usual include guard section. |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Updates the location and size of the widget on the screen. | 73 // Updates the location and size of the widget on the screen. |
74 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_WindowBoundsChanged, | 74 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_WindowBoundsChanged, |
75 gfx::AcceleratedWidget /* widget */, | 75 gfx::AcceleratedWidget /* widget */, |
76 gfx::Rect /* bounds */) | 76 gfx::Rect /* bounds */) |
77 | 77 |
78 // Force the DPMS state of the display to on. | 78 // Force the DPMS state of the display to on. |
79 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_ForceDPMSOn) | 79 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_ForceDPMSOn) |
80 | 80 |
81 // Trigger a display reconfiguration. OzoneHostMsg_UpdateNativeDisplays will be | 81 // Trigger a display reconfiguration. OzoneHostMsg_UpdateNativeDisplays will be |
82 // sent as a response. | 82 // sent as a response. |
83 // The |displays| parameter will hold a list of last known displays. | 83 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RefreshNativeDisplays) |
84 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_RefreshNativeDisplays, | |
85 std::vector<ui::DisplaySnapshot_Params> /* displays */) | |
86 | 84 |
87 // Configure a display with the specified mode at the specified location. | 85 // Configure a display with the specified mode at the specified location. |
88 IPC_MESSAGE_CONTROL3(OzoneGpuMsg_ConfigureNativeDisplay, | 86 IPC_MESSAGE_CONTROL3(OzoneGpuMsg_ConfigureNativeDisplay, |
89 int64_t, // display ID | 87 int64_t, // display ID |
90 ui::DisplayMode_Params, // display mode | 88 ui::DisplayMode_Params, // display mode |
91 gfx::Point) // origin for the display | 89 gfx::Point) // origin for the display |
92 | 90 |
93 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_DisableNativeDisplay, | 91 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_DisableNativeDisplay, |
94 int64_t) // display ID | 92 int64_t) // display ID |
95 | 93 |
96 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_AddGraphicsDevice, | 94 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_AddGraphicsDevice, |
97 base::FilePath /* device_path */) | 95 base::FilePath /* device_path */) |
98 | 96 |
99 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_RemoveGraphicsDevice, | 97 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_RemoveGraphicsDevice, |
100 base::FilePath /* device_path */) | 98 base::FilePath /* device_path */) |
101 | 99 |
102 // Take control of the display | 100 // Take control of the display |
103 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_TakeDisplayControl) | 101 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_TakeDisplayControl) |
104 | 102 |
105 // Let other entity control the display | 103 // Let other entity control the display |
106 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl) | 104 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl) |
107 | 105 |
108 //------------------------------------------------------------------------------ | 106 //------------------------------------------------------------------------------ |
109 // Browser Messages | 107 // Browser Messages |
110 // These messages are from the GPU to the browser process. | 108 // These messages are from the GPU to the browser process. |
111 | 109 |
112 // Updates the list of active displays. | 110 // Updates the list of active displays. |
113 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, | 111 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, |
114 std::vector<ui::DisplaySnapshot_Params>) | 112 std::vector<ui::DisplaySnapshot_Params>) |
| 113 |
| 114 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured, |
| 115 int64_t /* display_id */, |
| 116 bool /* status */) |
OLD | NEW |