OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS 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 #ifndef CHROMEOS_WM_IPC_ENUMS_H_ | 5 #ifndef CHROMEOS_WM_IPC_ENUMS_H_ |
6 #define CHROMEOS_WM_IPC_ENUMS_H_ | 6 #define CHROMEOS_WM_IPC_ENUMS_H_ |
7 | 7 |
8 // This file defines enums that are shared between Chrome and the Chrome OS | 8 // This file defines enums that are shared between Chrome and the Chrome OS |
9 // window manager. | 9 // window manager. |
10 | 10 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // login windows to select one, if false clicks on unselected windows are | 218 // login windows to select one, if false clicks on unselected windows are |
219 // ignored. This is used when the user attempts a login to make sure the | 219 // ignored. This is used when the user attempts a login to make sure the |
220 // user doesn't select another user. | 220 // user doesn't select another user. |
221 // param[0]: True to enable, false to disable. | 221 // param[0]: True to enable, false to disable. |
222 WM_IPC_MESSAGE_WM_SET_LOGIN_STATE = 15, | 222 WM_IPC_MESSAGE_WM_SET_LOGIN_STATE = 15, |
223 | 223 |
224 // Notify chrome when the guest entry is selected and the guest window | 224 // Notify chrome when the guest entry is selected and the guest window |
225 // hasn't been created yet. | 225 // hasn't been created yet. |
226 WM_IPC_MESSAGE_CHROME_CREATE_GUEST_WINDOW = 16, | 226 WM_IPC_MESSAGE_CHROME_CREATE_GUEST_WINDOW = 16, |
227 | 227 |
228 // Notify Chrome when a system key of interest is clicked, so volume up/down | |
229 // and mute can be handled (chrome can add visual feedback). This message | |
230 // could be extended for other special purpose keys (maybe multimedia keys | |
231 // like play/pause/ff/rr). | |
232 // param[0]: Which key was pressed, from WmIpcSystemKey enum. | |
233 // | |
234 // TODO(davej): Eventually this message should be deprecated in favor of | |
235 // Chrome handling these sorts of keypresses internally. | |
236 WM_IPC_MESSAGE_CHROME_NOTIFY_SYSKEY_PRESSED = 17, | |
237 | |
238 // Tell the window manager to select a user on the login screen. | 228 // Tell the window manager to select a user on the login screen. |
239 // param[0]: 0-based index of entry to be selected. | 229 // param[0]: 0-based index of entry to be selected. |
240 WM_IPC_MESSAGE_WM_SELECT_LOGIN_USER = 18, | 230 WM_IPC_MESSAGE_WM_SELECT_LOGIN_USER = 18, |
241 | 231 |
242 // Notify Chrome that the screen has been redrawn in response to a screen | 232 // Notify Chrome that the screen has been redrawn in response to a screen |
243 // locker window having been mapped. We use this to ensure that on | 233 // locker window having been mapped. We use this to ensure that on |
244 // suspend, the window manager gets a chance to draw the locked | 234 // suspend, the window manager gets a chance to draw the locked |
245 // environment before the system is suspended -- otherwise, the | 235 // environment before the system is suspended -- otherwise, the |
246 // pre-locked environment may be briefly visible on resume. The message | 236 // pre-locked environment may be briefly visible on resume. The message |
247 // will be sent to the Chrome screen locker window that triggered the | 237 // will be sent to the Chrome screen locker window that triggered the |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 return "CHROME_NOTIFY_SCREEN_REDRAWN_FOR_LOCK"; | 281 return "CHROME_NOTIFY_SCREEN_REDRAWN_FOR_LOCK"; |
292 case WM_IPC_MESSAGE_WM_NOTIFY_SHUTTING_DOWN: | 282 case WM_IPC_MESSAGE_WM_NOTIFY_SHUTTING_DOWN: |
293 return "WM_NOTIFY_SHUTTING_DOWN"; | 283 return "WM_NOTIFY_SHUTTING_DOWN"; |
294 case WM_IPC_MESSAGE_WM_NOTIFY_POWER_BUTTON_STATE: | 284 case WM_IPC_MESSAGE_WM_NOTIFY_POWER_BUTTON_STATE: |
295 return "WM_NOTIFY_POWER_BUTTON_STATE"; | 285 return "WM_NOTIFY_POWER_BUTTON_STATE"; |
296 default: | 286 default: |
297 return "INVALID"; | 287 return "INVALID"; |
298 } | 288 } |
299 } | 289 } |
300 | 290 |
301 // A parameter of the WM_IPC_MESSAGE_CHROME_NOTIFY_SYSKEY_PRESSED message | |
302 // denoting which key is pressed. | |
303 enum WmIpcSystemKey { | |
304 WM_IPC_SYSTEM_KEY_VOLUME_MUTE = 0, | |
305 WM_IPC_SYSTEM_KEY_VOLUME_DOWN = 1, | |
306 WM_IPC_SYSTEM_KEY_VOLUME_UP = 2 | |
307 }; | |
308 | |
309 // A parameter set on WM_IPC_WINDOW_CHROME_PANEL_CONTENT to describe how | 291 // A parameter set on WM_IPC_WINDOW_CHROME_PANEL_CONTENT to describe how |
310 // the user should be allowed to resize a panel, if at all. | 292 // the user should be allowed to resize a panel, if at all. |
311 enum WmIpcPanelUserResizeType { | 293 enum WmIpcPanelUserResizeType { |
312 WM_IPC_PANEL_USER_RESIZE_HORIZONTALLY_AND_VERTICALLY = 0, | 294 WM_IPC_PANEL_USER_RESIZE_HORIZONTALLY_AND_VERTICALLY = 0, |
313 WM_IPC_PANEL_USER_RESIZE_HORIZONTALLY, | 295 WM_IPC_PANEL_USER_RESIZE_HORIZONTALLY, |
314 WM_IPC_PANEL_USER_RESIZE_VERTICALLY, | 296 WM_IPC_PANEL_USER_RESIZE_VERTICALLY, |
315 WM_IPC_PANEL_USER_RESIZE_NONE, | 297 WM_IPC_PANEL_USER_RESIZE_NONE, |
316 }; | 298 }; |
317 | 299 |
318 // A parameter used by WM_IPC_MESSAGE_WM_NOTIFY_POWER_BUTTON_STATE to | 300 // A parameter used by WM_IPC_MESSAGE_WM_NOTIFY_POWER_BUTTON_STATE to |
(...skipping 13 matching lines...) Expand all Loading... |
332 WM_IPC_POWER_BUTTON_PRE_SHUTDOWN, | 314 WM_IPC_POWER_BUTTON_PRE_SHUTDOWN, |
333 | 315 |
334 // The power button was released before being held long enough to shut | 316 // The power button was released before being held long enough to shut |
335 // down the machine. | 317 // down the machine. |
336 WM_IPC_POWER_BUTTON_ABORTED_SHUTDOWN, | 318 WM_IPC_POWER_BUTTON_ABORTED_SHUTDOWN, |
337 }; | 319 }; |
338 | 320 |
339 } // namespace chromeos | 321 } // namespace chromeos |
340 | 322 |
341 #endif // CHROMEOS_WM_IPC_ENUMS_H_ | 323 #endif // CHROMEOS_WM_IPC_ENUMS_H_ |
OLD | NEW |