permissions_resource_id.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // This file maps permissions resource IDs to Android resource IDs.
  5. // Presence of regular include guards is checked by:
  6. // 1. cpplint
  7. // 2. a custom presubmit in src/PRESUBMIT.py
  8. // 3. clang (but it only checks the guard is correct if present)
  9. // Disable the first two with these magic comments:
  10. // NOLINT(build/header_guard)
  11. // no-include-guard-because-multiply-included
  12. // LINK_RESOURCE_ID is used for IDs that come from a .grd file.
  13. #ifndef LINK_RESOURCE_ID
  14. #error "LINK_RESOURCE_ID should be defined before including this file"
  15. #endif
  16. // DECLARE_RESOURCE_ID is used for IDs that don't have .grd entries, and
  17. // are only declared in this file.
  18. #ifndef DECLARE_RESOURCE_ID
  19. #error "DECLARE_RESOURCE_ID should be defined before including this file"
  20. #endif
  21. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_ACCESSIBILITY_EVENTS,
  22. R.drawable.infobar_accessibility_events)
  23. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_CLIPBOARD,
  24. R.drawable.gm_filled_content_paste_24)
  25. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_FOLDER, R.drawable.ic_folder_blue_24dp)
  26. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_GEOLOCATION,
  27. R.drawable.gm_filled_location_on_24)
  28. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_MEDIA_STREAM_CAMERA,
  29. R.drawable.gm_filled_videocam_24)
  30. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_MEDIA_STREAM_MIC,
  31. R.drawable.gm_filled_mic_24)
  32. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_MIDI, R.drawable.gm_filled_piano_24)
  33. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_MULTIPLE_DOWNLOADS,
  34. R.drawable.infobar_downloading)
  35. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_NFC, R.drawable.gm_filled_nfc_24)
  36. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_NOTIFICATIONS,
  37. R.drawable.gm_filled_notifications_24)
  38. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_PROTECTED_MEDIA_IDENTIFIER,
  39. R.drawable.infobar_protected_media_identifier)
  40. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_WARNING, R.drawable.infobar_warning)
  41. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_VR_HEADSET,
  42. R.drawable.gm_filled_cardboard_24)
  43. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_PERMISSION_COOKIE,
  44. R.drawable.permission_cookie)
  45. DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_IDLE_DETECTION,
  46. R.drawable.gm_filled_devices_24)