version_ui_constants.cc 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. // Copyright 2015 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. #include "components/version_ui/version_ui_constants.h"
  5. #include "build/build_config.h"
  6. #include "build/chromeos_buildflags.h"
  7. namespace version_ui {
  8. // Resource paths.
  9. const char kAboutVersionCSS[] = "about_version.css";
  10. #if BUILDFLAG(IS_IOS) || BUILDFLAG(IS_ANDROID)
  11. const char kAboutVersionMobileCSS[] = "about_version_mobile.css";
  12. #endif
  13. const char kVersionJS[] = "about_version.js";
  14. // Message handlers.
  15. const char kRequestVersionInfo[] = "requestVersionInfo";
  16. const char kRequestVariationInfo[] = "requestVariationInfo";
  17. const char kRequestPathInfo[] = "requestPathInfo";
  18. // Named keys used in message handler responses.
  19. const char kKeyVariationsList[] = "variationsList";
  20. const char kKeyVariationsCmd[] = "variationsCmd";
  21. const char kKeyExecPath[] = "execPath";
  22. const char kKeyProfilePath[] = "profilePath";
  23. // Strings.
  24. const char kApplicationLabel[] = "application_label";
  25. #if BUILDFLAG(IS_CHROMEOS_ASH)
  26. const char kARC[] = "arc_label";
  27. #endif
  28. const char kCL[] = "cl";
  29. const char kCommandLine[] = "command_line";
  30. const char kCommandLineName[] = "command_line_name";
  31. const char kCompany[] = "company";
  32. #if BUILDFLAG(IS_WIN)
  33. const char kUpdateCohortName[] = "update_cohort_name";
  34. #endif
  35. const char kCopyright[] = "copyright";
  36. #if BUILDFLAG(IS_CHROMEOS_ASH)
  37. const char kCustomizationId[] = "customization_id";
  38. #endif
  39. #if !BUILDFLAG(IS_IOS)
  40. const char kExecutablePath[] = "executable_path";
  41. const char kExecutablePathName[] = "executable_path_name";
  42. #endif
  43. #if BUILDFLAG(IS_CHROMEOS_ASH)
  44. const char kFirmwareVersion[] = "firmware_version";
  45. #endif
  46. #if BUILDFLAG(IS_CHROMEOS_LACROS)
  47. const char kAshChromeVersion[] = "ash_chrome_version";
  48. #endif // BUILDFLAG(IS_CHROMEOS_LACROS)
  49. #if !BUILDFLAG(IS_IOS)
  50. const char kJSEngine[] = "js_engine";
  51. const char kJSVersion[] = "js_version";
  52. #endif
  53. const char kLogoAltText[] = "logo_alt_text";
  54. const char kOfficial[] = "official";
  55. #if !BUILDFLAG(IS_CHROMEOS_ASH)
  56. const char kOSName[] = "os_name";
  57. const char kOSType[] = "os_type";
  58. #endif
  59. #if BUILDFLAG(IS_ANDROID)
  60. const char kOSVersion[] = "os_version";
  61. const char kGmsName[] = "gms_name";
  62. const char kGmsVersion[] = "gms_version";
  63. #endif
  64. #if BUILDFLAG(IS_CHROMEOS_ASH)
  65. const char kPlatform[] = "platform";
  66. #endif
  67. #if !BUILDFLAG(IS_IOS)
  68. const char kProfilePath[] = "profile_path";
  69. const char kProfilePathName[] = "profile_path_name";
  70. #endif
  71. #if BUILDFLAG(IS_CHROMEOS)
  72. const char kOsVersionHeaderText1[] = "os-version-text1";
  73. const char kOsVersionHeaderText2[] = "os-version-text2";
  74. const char kOsVersionHeaderLink[] = "os-version-link";
  75. #endif
  76. const char kCopyLabel[] = "copy_label";
  77. const char kRevision[] = "revision";
  78. const char kSanitizer[] = "sanitizer";
  79. const char kTitle[] = "title";
  80. const char kUserAgent[] = "useragent";
  81. const char kUserAgentName[] = "user_agent_name";
  82. const char kVariationsCmdName[] = "variations_cmd_name";
  83. const char kVariationsName[] = "variations_name";
  84. const char kVersion[] = "version";
  85. const char kVersionModifier[] = "version_modifier";
  86. const char kVersionProcessorVariation[] = "version_processor_variation";
  87. } // namespace version_ui