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

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

Issue 683703002: Notify launcher page with onTransitionChanged event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@launcher_page_api_show_state_notify
Patch Set: Created 6 years, 1 month 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/chrome_api_permissions.h" 5 #include "chrome/common/extensions/permissions/chrome_api_permissions.h"
6 6
7 #include "chrome/grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "extensions/common/permissions/api_permission.h" 8 #include "extensions/common/permissions/api_permission.h"
9 #include "extensions/common/permissions/api_permission_set.h" 9 #include "extensions/common/permissions/api_permission_set.h"
10 #include "extensions/common/permissions/media_galleries_permission.h" 10 #include "extensions/common/permissions/media_galleries_permission.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 {APIPermission::kFontSettings, "fontSettings", 101 {APIPermission::kFontSettings, "fontSettings",
102 APIPermissionInfo::kFlagCannotBeOptional}, 102 APIPermissionInfo::kFlagCannotBeOptional},
103 {APIPermission::kHistory, "history", APIPermissionInfo::kFlagNone, 103 {APIPermission::kHistory, "history", APIPermissionInfo::kFlagNone,
104 IDS_EXTENSION_PROMPT_WARNING_HISTORY_WRITE, 104 IDS_EXTENSION_PROMPT_WARNING_HISTORY_WRITE,
105 PermissionMessage::kBrowsingHistory}, 105 PermissionMessage::kBrowsingHistory},
106 {APIPermission::kIdltest, "idltest"}, 106 {APIPermission::kIdltest, "idltest"},
107 {APIPermission::kIdle, "idle"}, 107 {APIPermission::kIdle, "idle"},
108 {APIPermission::kInfobars, "infobars"}, 108 {APIPermission::kInfobars, "infobars"},
109 {APIPermission::kInput, "input", APIPermissionInfo::kFlagNone, 109 {APIPermission::kInput, "input", APIPermissionInfo::kFlagNone,
110 IDS_EXTENSION_PROMPT_WARNING_INPUT, PermissionMessage::kInput}, 110 IDS_EXTENSION_PROMPT_WARNING_INPUT, PermissionMessage::kInput},
111 {APIPermission::kLauncherPagePrivate, "launcherPagePrivate",
112 APIPermissionInfo::kFlagCannotBeOptional},
111 {APIPermission::kLocation, "location", 113 {APIPermission::kLocation, "location",
112 APIPermissionInfo::kFlagCannotBeOptional, 114 APIPermissionInfo::kFlagCannotBeOptional,
113 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION, 115 IDS_EXTENSION_PROMPT_WARNING_GEOLOCATION,
114 PermissionMessage::kGeolocation}, 116 PermissionMessage::kGeolocation},
115 {APIPermission::kManagement, "management", APIPermissionInfo::kFlagNone, 117 {APIPermission::kManagement, "management", APIPermissionInfo::kFlagNone,
116 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, PermissionMessage::kManagement}, 118 IDS_EXTENSION_PROMPT_WARNING_MANAGEMENT, PermissionMessage::kManagement},
117 {APIPermission::kNativeMessaging, "nativeMessaging", 119 {APIPermission::kNativeMessaging, "nativeMessaging",
118 APIPermissionInfo::kFlagNone, 120 APIPermissionInfo::kFlagNone,
119 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING, 121 IDS_EXTENSION_PROMPT_WARNING_NATIVE_MESSAGING,
120 PermissionMessage::kNativeMessaging}, 122 PermissionMessage::kNativeMessaging},
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 // Register aliases. 336 // Register aliases.
335 std::vector<PermissionsProvider::AliasInfo> aliases; 337 std::vector<PermissionsProvider::AliasInfo> aliases;
336 aliases.push_back(PermissionsProvider::AliasInfo( 338 aliases.push_back(PermissionsProvider::AliasInfo(
337 "unlimitedStorage", kOldUnlimitedStoragePermission)); 339 "unlimitedStorage", kOldUnlimitedStoragePermission));
338 aliases.push_back(PermissionsProvider::AliasInfo( 340 aliases.push_back(PermissionsProvider::AliasInfo(
339 "tabs", kWindowsPermission)); 341 "tabs", kWindowsPermission));
340 return aliases; 342 return aliases;
341 } 343 }
342 344
343 } // namespace extensions 345 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698