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

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: 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
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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 kFlagCannotBeOptional, 239 kFlagCannotBeOptional,
240 IDS_EXTENSION_PROMPT_WARNING_FULL_ACCESS, 240 IDS_EXTENSION_PROMPT_WARNING_FULL_ACCESS,
241 PermissionMessage::kFullAccess }, 241 PermissionMessage::kFullAccess },
242 242
243 // Platform-app permissions. 243 // Platform-app permissions.
244 { kSerial, "serial", kFlagCannotBeOptional }, 244 { kSerial, "serial", kFlagCannotBeOptional },
245 { kSocket, "socket", kFlagCannotBeOptional, 0, PermissionMessage::kNone, 245 { kSocket, "socket", kFlagCannotBeOptional, 0, PermissionMessage::kNone,
246 &CreatePermissionDetail<SocketPermission> }, 246 &CreatePermissionDetail<SocketPermission> },
247 { kAppRuntime, "app.runtime" }, 247 { kAppRuntime, "app.runtime" },
248 { kAppWindow, "app.window" }, 248 { kAppWindow, "app.window" },
249 { kAppCurrentWindow, "app.currentWindow" },
249 { kAudioCapture, "audioCapture", kFlagNone, 250 { kAudioCapture, "audioCapture", kFlagNone,
250 IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE, 251 IDS_EXTENSION_PROMPT_WARNING_AUDIO_CAPTURE,
251 PermissionMessage::kAudioCapture }, 252 PermissionMessage::kAudioCapture },
252 { kVideoCapture, "videoCapture", kFlagNone, 253 { kVideoCapture, "videoCapture", kFlagNone,
253 IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE, 254 IDS_EXTENSION_PROMPT_WARNING_VIDEO_CAPTURE,
254 PermissionMessage::kVideoCapture }, 255 PermissionMessage::kVideoCapture },
255 // "fileSystem" has no permission string because read-only access is only 256 // "fileSystem" has no permission string because read-only access is only
256 // granted after the user has been shown a file chooser dialog and selected 257 // granted after the user has been shown a file chooser dialog and selected
257 // a file. Selecting the file is considered consent to read it. 258 // a file. Selecting the file is considered consent to read it.
258 { kFileSystem, "fileSystem" }, 259 { kFileSystem, "fileSystem" },
(...skipping 17 matching lines...) Expand all
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

Powered by Google App Engine
This is Rietveld 408576698