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 it was registered successfully. |
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 // Signals to the main Chrome process that a shim has started indicating the |
tapted
2013/05/29 04:20:30
nit: 'started indicating' -> 'started. Indicates'
jackhou1
2013/05/29 05:53:04
Done.
| |
19 // profile name and app id. | 19 // profile and app_id that the shim should be associated with and whether to |
20 IPC_MESSAGE_CONTROL2(AppShimHostMsg_LaunchApp, | 20 // launch the app immediately. |
21 IPC_MESSAGE_CONTROL3(AppShimHostMsg_LaunchApp, | |
21 std::string /* profile name */, | 22 std::string /* profile name */, |
22 std::string /* app id */) | 23 std::string /* app id */, |
24 bool /* launch now */) | |
23 | 25 |
24 // Sent when the user has indicated a desire to focus the app, either by | 26 // 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 | 27 // 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. | 28 // response, Chrome brings the app's windows to the foreground. |
27 IPC_MESSAGE_CONTROL0(AppShimHostMsg_FocusApp) | 29 IPC_MESSAGE_CONTROL0(AppShimHostMsg_FocusApp) |
OLD | NEW |