Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Side by Side Diff: apps/app_shim/app_shim_messages.h

Issue 14579006: Start app shim when app launched. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « apps/app_shim/app_shim_launch.h ('k') | apps/app_shim/extension_app_shim_handler_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
12 #include "ipc/param_traits_macros.h"
10 13
11 #define IPC_MESSAGE_START AppShimMsgStart 14 #define IPC_MESSAGE_START AppShimMsgStart
12 15
16 IPC_ENUM_TRAITS(apps::AppShimLaunchType)
17
13 // Signals that a previous LaunchApp message has been processed, and lets the 18 // Signals that a previous LaunchApp message has been processed, and lets the
14 // app shim process know whether the app launch was successful. 19 // app shim process know whether it was registered successfully.
15 IPC_MESSAGE_CONTROL1(AppShimMsg_LaunchApp_Done, 20 IPC_MESSAGE_CONTROL1(AppShimMsg_LaunchApp_Done,
16 bool /* succeeded */) 21 bool /* succeeded */)
17 22
18 // Tells the main Chrome process to launch a particular app with the given 23 // Signals to the main Chrome process that a shim has started indicating the
19 // profile name and app id. 24 // profile and app_id that the shim should be associated with and whether to
20 IPC_MESSAGE_CONTROL2(AppShimHostMsg_LaunchApp, 25 // launch the app immediately.
21 std::string /* profile name */, 26 IPC_MESSAGE_CONTROL3(AppShimHostMsg_LaunchApp,
22 std::string /* app id */) 27 base::FilePath /* profile dir */,
28 std::string /* app id */,
29 apps::AppShimLaunchType /* launch type */)
23 30
24 // Sent when the user has indicated a desire to focus the app, either by 31 // 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 32 // 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. 33 // response, Chrome brings the app's windows to the foreground.
27 IPC_MESSAGE_CONTROL0(AppShimHostMsg_FocusApp) 34 IPC_MESSAGE_CONTROL0(AppShimHostMsg_FocusApp)
28 35
29 // Sent when the shim process receives a request to terminate. Once all of the 36 // Sent when the shim process receives a request to terminate. Once all of the
30 // app's windows have closed, and the extension is unloaded, the AppShimHost 37 // app's windows have closed, and the extension is unloaded, the AppShimHost
31 // closes the channel. The shim process then completes the terminate request 38 // closes the channel. The shim process then completes the terminate request
32 // and exits. 39 // and exits.
33 IPC_MESSAGE_CONTROL0(AppShimHostMsg_QuitApp) 40 IPC_MESSAGE_CONTROL0(AppShimHostMsg_QuitApp)
OLDNEW
« no previous file with comments | « apps/app_shim/app_shim_launch.h ('k') | apps/app_shim/extension_app_shim_handler_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698