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

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

Issue 10878040: Move context-sensitive app.window.* functions to app.window.current().* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 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 (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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 { APIPermission::kPlugin, "plugin", 261 { APIPermission::kPlugin, "plugin",
262 kFlagImpliesFullURLAccess | kFlagImpliesFullAccess | 262 kFlagImpliesFullURLAccess | kFlagImpliesFullAccess |
263 kFlagCannotBeOptional, 263 kFlagCannotBeOptional,
264 IDS_EXTENSION_PROMPT_WARNING_FULL_ACCESS, 264 IDS_EXTENSION_PROMPT_WARNING_FULL_ACCESS,
265 PermissionMessage::kFullAccess }, 265 PermissionMessage::kFullAccess },
266 266
267 // Platform-app permissions. 267 // Platform-app permissions.
268 { APIPermission::kSerial, "serial", kFlagCannotBeOptional }, 268 { APIPermission::kSerial, "serial", kFlagCannotBeOptional },
269 { APIPermission::kSocket, "socket", kFlagCannotBeOptional, 0, 269 { APIPermission::kSocket, "socket", kFlagCannotBeOptional, 0,
270 PermissionMessage::kNone, &::CreateAPIPermission<SocketPermission> }, 270 PermissionMessage::kNone, &::CreateAPIPermission<SocketPermission> },
271 { APIPermission::kAppCurrentWindowInternal, "app.currentWindowInternal" },
271 { APIPermission::kAppRuntime, "app.runtime" }, 272 { APIPermission::kAppRuntime, "app.runtime" },
272 { APIPermission::kAppWindow, "app.window" }, 273 { APIPermission::kAppWindow, "app.window" },
273 { APIPermission::kAudioCapture, "audioCapture", kFlagNone, 274 { APIPermission::kAudioCapture, "audioCapture", kFlagNone,
274 IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE, 275 IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE,
275 PermissionMessage::kAudioCapture }, 276 PermissionMessage::kAudioCapture },
276 { APIPermission::kVideoCapture, "videoCapture", kFlagNone, 277 { APIPermission::kVideoCapture, "videoCapture", kFlagNone,
277 IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE, 278 IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE,
278 PermissionMessage::kVideoCapture }, 279 PermissionMessage::kVideoCapture },
279 // "fileSystem" has no permission string because read-only access is only 280 // "fileSystem" has no permission string because read-only access is only
280 // granted after the user has been shown a file chooser dialog and selected 281 // granted after the user has been shown a file chooser dialog and selected
(...skipping 17 matching lines...) Expand all
298 pr.flags, 299 pr.flags,
299 pr.constructor); 300 pr.constructor);
300 } 301 }
301 302
302 // Register aliases. 303 // Register aliases.
303 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); 304 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission);
304 info->RegisterAlias("tabs", kWindowsPermission); 305 info->RegisterAlias("tabs", kWindowsPermission);
305 } 306 }
306 307
307 } // namespace extensions 308 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698