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