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 "base/files/file_path.h" |
9 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
10 | 11 |
11 #define IPC_MESSAGE_START AppShimMsgStart | 12 #define IPC_MESSAGE_START AppShimMsgStart |
12 | 13 |
13 // Signals that a previous LaunchApp message has been processed, and lets the | 14 // Signals that a previous LaunchApp message has been processed, and lets the |
14 // app shim process know whether the app launch was successful. | 15 // app shim process know whether it was registered successfully. |
15 IPC_MESSAGE_CONTROL1(AppShimMsg_LaunchApp_Done, | 16 IPC_MESSAGE_CONTROL1(AppShimMsg_LaunchApp_Done, |
16 bool /* succeeded */) | 17 bool /* succeeded */) |
17 | 18 |
18 // Tells the main Chrome process to launch a particular app with the given | 19 // Signals to the main Chrome process that a shim has started indicating the |
19 // profile name and app id. | 20 // profile and app_id that the shim should be associated with and whether to |
20 IPC_MESSAGE_CONTROL2(AppShimHostMsg_LaunchApp, | 21 // launch the app immediately. |
21 std::string /* profile name */, | 22 IPC_MESSAGE_CONTROL3(AppShimHostMsg_LaunchApp, |
22 std::string /* app id */) | 23 base::FilePath /* profile dir */, |
| 24 std::string /* app id */, |
| 25 bool /* launch now */) |
23 | 26 |
24 // Sent when the user has indicated a desire to focus the app, either by | 27 // 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 | 28 // 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. | 29 // response, Chrome brings the app's windows to the foreground. |
27 IPC_MESSAGE_CONTROL0(AppShimHostMsg_FocusApp) | 30 IPC_MESSAGE_CONTROL0(AppShimHostMsg_FocusApp) |
OLD | NEW |