| 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 253   WM_IPC_MESSAGE_CHROME_NOTIFY_SCREEN_REDRAWN_FOR_LOCK = 19, | 253   WM_IPC_MESSAGE_CHROME_NOTIFY_SCREEN_REDRAWN_FOR_LOCK = 19, | 
| 254 | 254 | 
| 255   // Sent from the power manager to the window manager when we're shutting down. | 255   // Sent from the power manager to the window manager when we're shutting down. | 
| 256   WM_IPC_MESSAGE_WM_NOTIFY_SHUTTING_DOWN = 20, | 256   WM_IPC_MESSAGE_WM_NOTIFY_SHUTTING_DOWN = 20, | 
| 257 | 257 | 
| 258   // Sent from the power manager to the window manager when we change state | 258   // Sent from the power manager to the window manager when we change state | 
| 259   // as a result of the power button being held down. | 259   // as a result of the power button being held down. | 
| 260   //   param[0]: New state, from WmIpcPowerButtonState enum. | 260   //   param[0]: New state, from WmIpcPowerButtonState enum. | 
| 261   WM_IPC_MESSAGE_WM_NOTIFY_POWER_BUTTON_STATE = 21, | 261   WM_IPC_MESSAGE_WM_NOTIFY_POWER_BUTTON_STATE = 21, | 
| 262 | 262 | 
| 263   // NEXT VALUE TO USE: 22 | 263   // Sent from Chrome to the window manager when the user is signing out. | 
|  | 264   WM_IPC_MESSAGE_WM_NOTIFY_SIGNING_OUT = 22, | 
|  | 265 | 
|  | 266   // NEXT VALUE TO USE: 23 | 
| 264 }; | 267 }; | 
| 265 | 268 | 
| 266 inline const char* WmIpcMessageTypeToString(WmIpcMessageType type) { | 269 inline const char* WmIpcMessageTypeToString(WmIpcMessageType type) { | 
| 267   switch (type) { | 270   switch (type) { | 
| 268     case WM_IPC_MESSAGE_UNKNOWN: | 271     case WM_IPC_MESSAGE_UNKNOWN: | 
| 269       return "UNKNOWN"; | 272       return "UNKNOWN"; | 
| 270     case WM_IPC_MESSAGE_WM_SET_PANEL_STATE: | 273     case WM_IPC_MESSAGE_WM_SET_PANEL_STATE: | 
| 271       return "WM_SET_PANEL_STATE"; | 274       return "WM_SET_PANEL_STATE"; | 
| 272     case WM_IPC_MESSAGE_CHROME_NOTIFY_PANEL_STATE: | 275     case WM_IPC_MESSAGE_CHROME_NOTIFY_PANEL_STATE: | 
| 273       return "CHROME_NOTIFY_PANEL_STATE"; | 276       return "CHROME_NOTIFY_PANEL_STATE"; | 
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 336   WM_IPC_POWER_BUTTON_PRE_SHUTDOWN, | 339   WM_IPC_POWER_BUTTON_PRE_SHUTDOWN, | 
| 337 | 340 | 
| 338   // The power button was released before being held long enough to shut | 341   // The power button was released before being held long enough to shut | 
| 339   // down the machine. | 342   // down the machine. | 
| 340   WM_IPC_POWER_BUTTON_ABORTED_SHUTDOWN, | 343   WM_IPC_POWER_BUTTON_ABORTED_SHUTDOWN, | 
| 341 }; | 344 }; | 
| 342 | 345 | 
| 343 }  // namespace chromeos | 346 }  // namespace chromeos | 
| 344 | 347 | 
| 345 #endif  // CHROMEOS_WM_IPC_ENUMS_H_ | 348 #endif  // CHROMEOS_WM_IPC_ENUMS_H_ | 
| OLD | NEW | 
|---|