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

Side by Side Diff: chrome/common/extensions/permissions/api_permission.cc

Issue 10803037: [WIP] ash/extensions: Add experimental extension support for window-management in ash. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-152100 Created 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/permissions/api_permission.h ('k') | ui/gfx/transform.cc » ('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 (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 #include "chrome/common/extensions/permissions/api_permission.h" 5 #include "chrome/common/extensions/permissions/api_permission.h"
6 6
7 #include "chrome/common/extensions/permissions/permissions_info.h" 7 #include "chrome/common/extensions/permissions/permissions_info.h"
8 #include "chrome/common/extensions/permissions/socket_permission.h" 8 #include "chrome/common/extensions/permissions/socket_permission.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "ui/base/l10n/l10n_util.h" 10 #include "ui/base/l10n/l10n_util.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 { kDeclarativeWebRequest, "declarativeWebRequest" }, 148 { kDeclarativeWebRequest, "declarativeWebRequest" },
149 { kDownloads, "downloads", kFlagNone, 149 { kDownloads, "downloads", kFlagNone,
150 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS, 150 IDS_EXTENSION_PROMPT_WARNING_DOWNLOADS,
151 PermissionMessage::kDownloads }, 151 PermissionMessage::kDownloads },
152 { kExperimental, "experimental", kFlagCannotBeOptional }, 152 { kExperimental, "experimental", kFlagCannotBeOptional },
153 { kGeolocation, "geolocation", kFlagCannotBeOptional, 153 { kGeolocation, "geolocation", kFlagCannotBeOptional,
154 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, 154 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION,
155 PermissionMessage::kGeolocation }, 155 PermissionMessage::kGeolocation },
156 { kNotification, "notifications" }, 156 { kNotification, "notifications" },
157 { kUnlimitedStorage, "unlimitedStorage", kFlagCannotBeOptional }, 157 { kUnlimitedStorage, "unlimitedStorage", kFlagCannotBeOptional },
158 { kWM, "wm" },
158 159
159 // Register hosted and packaged app permissions. 160 // Register hosted and packaged app permissions.
160 { kAppNotifications, "appNotifications" }, 161 { kAppNotifications, "appNotifications" },
161 162
162 // Register extension permissions. 163 // Register extension permissions.
163 { kActiveTab, "activeTab" }, 164 { kActiveTab, "activeTab" },
164 { kAlarms, "alarms" }, 165 { kAlarms, "alarms" },
165 { kBookmark, "bookmarks", kFlagNone, 166 { kBookmark, "bookmarks", kFlagNone,
166 IDS_EXTENSION_PROMPT_WARNING_BOOKMARKS, 167 IDS_EXTENSION_PROMPT_WARNING_BOOKMARKS,
167 PermissionMessage::kBookmarks }, 168 PermissionMessage::kBookmarks },
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 277
277 // Register aliases. 278 // Register aliases.
278 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); 279 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission);
279 info->RegisterAlias("tabs", kWindowsPermission); 280 info->RegisterAlias("tabs", kWindowsPermission);
280 } 281 }
281 282
282 APIPermissionDetail::~APIPermissionDetail() { 283 APIPermissionDetail::~APIPermissionDetail() {
283 } 284 }
284 285
285 } // namespace extensions 286 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/api_permission.h ('k') | ui/gfx/transform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698