| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_permission_message_rules.h
" | 5 #include "chrome/common/extensions/permissions/chrome_permission_message_rules.h
" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 {APIPermission::kBluetoothDevices}, | 471 {APIPermission::kBluetoothDevices}, |
| 472 {}}, | 472 {}}, |
| 473 {IDS_EXTENSION_PROMPT_WARNING_BLUETOOTH_PRIVATE, | 473 {IDS_EXTENSION_PROMPT_WARNING_BLUETOOTH_PRIVATE, |
| 474 {APIPermission::kBluetoothPrivate}, | 474 {APIPermission::kBluetoothPrivate}, |
| 475 {}}, | 475 {}}, |
| 476 {IDS_EXTENSION_PROMPT_WARNING_SERIAL, {APIPermission::kSerial}, {}}, | 476 {IDS_EXTENSION_PROMPT_WARNING_SERIAL, {APIPermission::kSerial}, {}}, |
| 477 // Universal 2nd Factor devices. | 477 // Universal 2nd Factor devices. |
| 478 {IDS_EXTENSION_PROMPT_WARNING_U2F_DEVICES, | 478 {IDS_EXTENSION_PROMPT_WARNING_U2F_DEVICES, |
| 479 {APIPermission::kU2fDevices}, | 479 {APIPermission::kU2fDevices}, |
| 480 {}}, | 480 {}}, |
| 481 // Notifications. |
| 482 {IDS_EXTENSION_PROMPT_WARNING_NOTIFICATIONS, |
| 483 {APIPermission::kNotifications}, |
| 484 {}}, |
| 481 | 485 |
| 482 // Accessibility features. | 486 // Accessibility features. |
| 483 {IDS_EXTENSION_PROMPT_WARNING_ACCESSIBILITY_FEATURES_READ_MODIFY, | 487 {IDS_EXTENSION_PROMPT_WARNING_ACCESSIBILITY_FEATURES_READ_MODIFY, |
| 484 {APIPermission::kAccessibilityFeaturesModify, | 488 {APIPermission::kAccessibilityFeaturesModify, |
| 485 APIPermission::kAccessibilityFeaturesRead}, | 489 APIPermission::kAccessibilityFeaturesRead}, |
| 486 {}}, | 490 {}}, |
| 487 {IDS_EXTENSION_PROMPT_WARNING_ACCESSIBILITY_FEATURES_MODIFY, | 491 {IDS_EXTENSION_PROMPT_WARNING_ACCESSIBILITY_FEATURES_MODIFY, |
| 488 {APIPermission::kAccessibilityFeaturesModify}, | 492 {APIPermission::kAccessibilityFeaturesModify}, |
| 489 {}}, | 493 {}}, |
| 490 {IDS_EXTENSION_PROMPT_WARNING_ACCESSIBILITY_FEATURES_READ, | 494 {IDS_EXTENSION_PROMPT_WARNING_ACCESSIBILITY_FEATURES_READ, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 {IDS_EXTENSION_PROMPT_WARNING_DISPLAY_SOURCE, | 650 {IDS_EXTENSION_PROMPT_WARNING_DISPLAY_SOURCE, |
| 647 {APIPermission::kDisplaySource}, | 651 {APIPermission::kDisplaySource}, |
| 648 {}}, | 652 {}}, |
| 649 }; | 653 }; |
| 650 | 654 |
| 651 return std::vector<ChromePermissionMessageRule>( | 655 return std::vector<ChromePermissionMessageRule>( |
| 652 rules_arr, rules_arr + arraysize(rules_arr)); | 656 rules_arr, rules_arr + arraysize(rules_arr)); |
| 653 } | 657 } |
| 654 | 658 |
| 655 } // namespace extensions | 659 } // namespace extensions |
| OLD | NEW |