OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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. | 5 // Multiply-included message file, hence no include guard. |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
10 | 10 |
11 #define IPC_MESSAGE_START AppShimMsgStart | 11 #define IPC_MESSAGE_START AppShimMsgStart |
12 | 12 |
13 // Signals that a previous LaunchApp message has been processed, and lets the | 13 // Signals that a previous LaunchApp message has been processed, and lets the |
14 // app shim process know whether the app launch was successful. | 14 // app shim process know whether the app launch was successful. |
15 IPC_MESSAGE_CONTROL1(AppShimMsg_LaunchApp_Done, | 15 IPC_MESSAGE_CONTROL1(AppShimMsg_LaunchApp_Done, |
16 bool /* succeeded */) | 16 bool /* succeeded */) |
17 | 17 |
18 // Tells the main Chrome process to launch a particular app with the given | 18 // Tells the main Chrome process to launch a particular app with the given |
19 // profile name and app id. | 19 // profile name and app id. |
20 IPC_MESSAGE_CONTROL2(AppShimHostMsg_LaunchApp, | 20 IPC_MESSAGE_CONTROL2(AppShimHostMsg_LaunchApp, |
21 std::string /* profile name */, | 21 std::string /* profile name */, |
22 std::string /* app id */) | 22 std::string /* app id */) |
| 23 |
| 24 // Sent when the user has indicated a desire to focus the app, either by |
| 25 // clicking on the app's icon in the dock or by selecting it with Cmd+Tab. In |
| 26 // response, Chrome brings the app's windows to the foreground. |
| 27 IPC_MESSAGE_CONTROL0(AppShimHostMsg_FocusApp) |
OLD | NEW |