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

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

Issue 23514021: Add Hide to app menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 3 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
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" 9 #include "apps/app_shim/app_shim_launch.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
12 #include "ipc/param_traits_macros.h" 12 #include "ipc/param_traits_macros.h"
13 13
14 #define IPC_MESSAGE_START AppShimMsgStart 14 #define IPC_MESSAGE_START AppShimMsgStart
15 15
16 IPC_ENUM_TRAITS_MAX_VALUE(apps::AppShimLaunchType, 16 IPC_ENUM_TRAITS_MAX_VALUE(apps::AppShimLaunchType,
17 apps::APP_SHIM_LAUNCH_NUM_TYPES - 1) 17 apps::APP_SHIM_LAUNCH_NUM_TYPES - 1)
18 IPC_ENUM_TRAITS_MAX_VALUE(apps::AppShimLaunchResult, 18 IPC_ENUM_TRAITS_MAX_VALUE(apps::AppShimLaunchResult,
19 apps::APP_SHIM_LAUNCH_NUM_RESULTS - 1) 19 apps::APP_SHIM_LAUNCH_NUM_RESULTS - 1)
20 IPC_ENUM_TRAITS_MAX_VALUE(apps::AppShimFocusType, 20 IPC_ENUM_TRAITS_MAX_VALUE(apps::AppShimFocusType,
21 apps::APP_SHIM_FOCUS_NUM_TYPES - 1) 21 apps::APP_SHIM_FOCUS_NUM_TYPES - 1)
22 22
23 // Signals that a previous LaunchApp message has been processed, and lets the 23 // Signals that a previous LaunchApp message has been processed, and lets the
24 // app shim process know whether it was registered successfully. 24 // app shim process know whether it was registered successfully.
25 IPC_MESSAGE_CONTROL1(AppShimMsg_LaunchApp_Done, 25 IPC_MESSAGE_CONTROL1(AppShimMsg_LaunchApp_Done,
26 apps::AppShimLaunchResult /* launch result */) 26 apps::AppShimLaunchResult /* launch result */)
27 27
28 // Instructs the shim to hide the app.
tapted 2013/09/03 08:17:25 nit: should we say something about the actual effe
jackhou1 2013/09/04 01:31:31 Actually it does use the shim to hide. I don't thi
29 IPC_MESSAGE_CONTROL0(AppShimMsg_Hide)
30
28 // Instructs the shim to request user attention. 31 // Instructs the shim to request user attention.
29 IPC_MESSAGE_CONTROL0(AppShimMsg_RequestUserAttention) 32 IPC_MESSAGE_CONTROL0(AppShimMsg_RequestUserAttention)
30 33
31 // Signals to the main Chrome process that a shim has started indicating the 34 // Signals to the main Chrome process that a shim has started indicating the
32 // profile and app_id that the shim should be associated with and whether to 35 // profile and app_id that the shim should be associated with and whether to
33 // launch the app immediately. 36 // launch the app immediately.
34 IPC_MESSAGE_CONTROL3(AppShimHostMsg_LaunchApp, 37 IPC_MESSAGE_CONTROL3(AppShimHostMsg_LaunchApp,
35 base::FilePath /* profile dir */, 38 base::FilePath /* profile dir */,
36 std::string /* app id */, 39 std::string /* app id */,
37 apps::AppShimLaunchType /* launch type */) 40 apps::AppShimLaunchType /* launch type */)
38 41
39 // Sent when the user has indicated a desire to focus the app, either by 42 // Sent when the user has indicated a desire to focus the app, either by
40 // clicking on the app's icon in the dock or by selecting it with Cmd+Tab. In 43 // clicking on the app's icon in the dock or by selecting it with Cmd+Tab. In
41 // response, Chrome brings the app's windows to the foreground, or relaunches 44 // response, Chrome brings the app's windows to the foreground, or relaunches
42 // if the focus type indicates a reopen and there are no open windows. 45 // if the focus type indicates a reopen and there are no open windows.
43 IPC_MESSAGE_CONTROL1(AppShimHostMsg_FocusApp, 46 IPC_MESSAGE_CONTROL1(AppShimHostMsg_FocusApp,
44 apps::AppShimFocusType /* focus type */) 47 apps::AppShimFocusType /* focus type */)
45 48
46 // Sent when the app shim is hidden or unhidden. 49 // Sent when the app shim is hidden or unhidden.
47 IPC_MESSAGE_CONTROL1(AppShimHostMsg_SetAppHidden, 50 IPC_MESSAGE_CONTROL1(AppShimHostMsg_SetAppHidden,
48 bool /* hidden */) 51 bool /* hidden */)
49 52
50 // Sent when the shim process receives a request to terminate. Once all of the 53 // Sent when the shim process receives a request to terminate. Once all of the
51 // app's windows have closed, and the extension is unloaded, the AppShimHost 54 // app's windows have closed, and the extension is unloaded, the AppShimHost
52 // closes the channel. The shim process then completes the terminate request 55 // closes the channel. The shim process then completes the terminate request
53 // and exits. 56 // and exits.
54 IPC_MESSAGE_CONTROL0(AppShimHostMsg_QuitApp) 57 IPC_MESSAGE_CONTROL0(AppShimHostMsg_QuitApp)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698