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

Side by Side Diff: extensions/common/constants.h

Issue 2212303003: Implement app launch changes for app runtime extension proposal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tool-screenshot
Patch Set: Fix compile Created 4 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef EXTENSIONS_COMMON_CONSTANTS_H_ 5 #ifndef EXTENSIONS_COMMON_CONSTANTS_H_
6 #define EXTENSIONS_COMMON_CONSTANTS_H_ 6 #define EXTENSIONS_COMMON_CONSTANTS_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "ui/base/layout.h" 9 #include "ui/base/layout.h"
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 SOURCE_EPHEMERAL_APP_DEPRECATED, 128 SOURCE_EPHEMERAL_APP_DEPRECATED,
129 SOURCE_BACKGROUND, 129 SOURCE_BACKGROUND,
130 SOURCE_KIOSK, 130 SOURCE_KIOSK,
131 SOURCE_CHROME_INTERNAL, 131 SOURCE_CHROME_INTERNAL,
132 SOURCE_TEST, 132 SOURCE_TEST,
133 SOURCE_INSTALLED_NOTIFICATION, 133 SOURCE_INSTALLED_NOTIFICATION,
134 134
135 NUM_APP_LAUNCH_SOURCES 135 NUM_APP_LAUNCH_SOURCES
136 }; 136 };
137 137
138 // Type of action to launch. Only applies if AppLaunchSource is set to
139 // SOURCE_ACTION.
Daniel Erat 2016/08/10 22:19:24 nit: delete obsolete second sentence
jdufault 2016/08/10 22:33:35 Done.
140 enum class ActionType { NEW_NOTE };
141
142 // Action-specific data to launch with.
143 struct ActionData {
144 ActionType action_type;
145 };
146
138 // This enum is used for the launch type the user wants to use for an 147 // This enum is used for the launch type the user wants to use for an
139 // application. 148 // application.
140 // Do not remove items or re-order this enum as it is used in preferences 149 // Do not remove items or re-order this enum as it is used in preferences
141 // and histograms. 150 // and histograms.
142 enum LaunchType { 151 enum LaunchType {
143 LAUNCH_TYPE_INVALID = -1, 152 LAUNCH_TYPE_INVALID = -1,
144 LAUNCH_TYPE_FIRST = 0, 153 LAUNCH_TYPE_FIRST = 0,
145 LAUNCH_TYPE_PINNED = LAUNCH_TYPE_FIRST, 154 LAUNCH_TYPE_PINNED = LAUNCH_TYPE_FIRST,
146 LAUNCH_TYPE_REGULAR = 1, 155 LAUNCH_TYPE_REGULAR = 1,
147 LAUNCH_TYPE_FULLSCREEN = 2, 156 LAUNCH_TYPE_FULLSCREEN = 2,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 219
211 // The extension id for the production version of Hangouts. 220 // The extension id for the production version of Hangouts.
212 extern const char kProdHangoutsExtensionId[]; 221 extern const char kProdHangoutsExtensionId[];
213 222
214 // Extension ids used by Hangouts. 223 // Extension ids used by Hangouts.
215 extern const char* const kHangoutsExtensionIds[6]; 224 extern const char* const kHangoutsExtensionIds[6];
216 225
217 } // namespace extension_misc 226 } // namespace extension_misc
218 227
219 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ 228 #endif // EXTENSIONS_COMMON_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698