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

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: Rebase 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.
139 enum class ActionType { NEW_NOTE };
140
141 // Action-specific data to launch with.
142 struct ActionData {
143 ActionType action_type;
Devlin 2016/08/11 20:51:21 Is there a reason to not use app_runtime::ActionDa
jdufault 2016/08/12 18:56:55 Done.
144 };
145
138 // This enum is used for the launch type the user wants to use for an 146 // This enum is used for the launch type the user wants to use for an
139 // application. 147 // application.
140 // Do not remove items or re-order this enum as it is used in preferences 148 // Do not remove items or re-order this enum as it is used in preferences
141 // and histograms. 149 // and histograms.
142 enum LaunchType { 150 enum LaunchType {
143 LAUNCH_TYPE_INVALID = -1, 151 LAUNCH_TYPE_INVALID = -1,
144 LAUNCH_TYPE_FIRST = 0, 152 LAUNCH_TYPE_FIRST = 0,
145 LAUNCH_TYPE_PINNED = LAUNCH_TYPE_FIRST, 153 LAUNCH_TYPE_PINNED = LAUNCH_TYPE_FIRST,
146 LAUNCH_TYPE_REGULAR = 1, 154 LAUNCH_TYPE_REGULAR = 1,
147 LAUNCH_TYPE_FULLSCREEN = 2, 155 LAUNCH_TYPE_FULLSCREEN = 2,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 218
211 // The extension id for the production version of Hangouts. 219 // The extension id for the production version of Hangouts.
212 extern const char kProdHangoutsExtensionId[]; 220 extern const char kProdHangoutsExtensionId[];
213 221
214 // Extension ids used by Hangouts. 222 // Extension ids used by Hangouts.
215 extern const char* const kHangoutsExtensionIds[6]; 223 extern const char* const kHangoutsExtensionIds[6];
216 224
217 } // namespace extension_misc 225 } // namespace extension_misc
218 226
219 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ 227 #endif // EXTENSIONS_COMMON_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698