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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_WindowBoundsChanged, | 72 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_WindowBoundsChanged, |
73 gfx::AcceleratedWidget /* widget */, | 73 gfx::AcceleratedWidget /* widget */, |
74 gfx::Rect /* bounds */) | 74 gfx::Rect /* bounds */) |
75 | 75 |
76 #if defined(OS_CHROMEOS) | 76 #if defined(OS_CHROMEOS) |
77 // Force the DPMS state of the display to on. | 77 // Force the DPMS state of the display to on. |
78 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_ForceDPMSOn) | 78 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_ForceDPMSOn) |
79 | 79 |
80 // Trigger a display reconfiguration. OzoneHostMsg_UpdateNativeDisplays will be | 80 // Trigger a display reconfiguration. OzoneHostMsg_UpdateNativeDisplays will be |
81 // sent as a response. | 81 // sent as a response. |
82 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RefreshNativeDisplays) | 82 // The |displays| parameter will hold a list of last known displays. |
| 83 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_RefreshNativeDisplays, |
| 84 std::vector<ui::DisplaySnapshot_Params> /* displays */) |
83 | 85 |
84 // Configure a display with the specified mode at the specified location. | 86 // Configure a display with the specified mode at the specified location. |
85 IPC_MESSAGE_CONTROL3(OzoneGpuMsg_ConfigureNativeDisplay, | 87 IPC_MESSAGE_CONTROL3(OzoneGpuMsg_ConfigureNativeDisplay, |
86 int64_t, // display ID | 88 int64_t, // display ID |
87 ui::DisplayMode_Params, // display mode | 89 ui::DisplayMode_Params, // display mode |
88 gfx::Point) // origin for the display | 90 gfx::Point) // origin for the display |
89 | 91 |
90 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_DisableNativeDisplay, | 92 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_DisableNativeDisplay, |
91 int64_t) // display ID | 93 int64_t) // display ID |
92 | 94 |
93 //------------------------------------------------------------------------------ | 95 //------------------------------------------------------------------------------ |
94 // Browser Messages | 96 // Browser Messages |
95 // These messages are from the GPU to the browser process. | 97 // These messages are from the GPU to the browser process. |
96 | 98 |
97 // Updates the list of active displays. | 99 // Updates the list of active displays. |
98 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, | 100 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, |
99 std::vector<ui::DisplaySnapshot_Params>) | 101 std::vector<ui::DisplaySnapshot_Params>) |
100 #endif | 102 #endif |
OLD | NEW |