Convert shadow_root code to use bindings enumerations

We had needless conversions from strings -> enums and back.

Bug: 366411876, 370425456
Change-Id: I00c6df243cc3ab2083c1adac915e77482127c5ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5924593
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: Nate Chapin <japhet@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1367164}
NOKEYCHECK=True
GitOrigin-RevId: 5f05b17f3d67041363486cdda58c9eee4d459db2
2 files changed
tree: e9dfa8fbaf5269dc1c84e4330a1825d4c3df76a3
  1. abseil-cpp/
  2. accessibility-audit/
  3. accessibility_test_framework/
  4. afl/
  5. alsa/
  6. android_build_tools/
  7. android_deps/
  8. android_media/
  9. android_opengl/
  10. android_platform/
  11. android_prebuilts/
  12. android_provider/
  13. android_sdk/
  14. android_swipe_refresh/
  15. android_system_sdk/
  16. android_toolchain/
  17. androidx/
  18. androidx_javascriptengine/
  19. anonymous_tokens/
  20. aosp_dalvik/
  21. apache-portable-runtime/
  22. apache-win32/
  23. apple_apsl/
  24. arcore-android-sdk/
  25. arcore-android-sdk-client/
  26. ashmem/
  27. axe-core/
  28. beto-core/
  29. bidimapper/
  30. blink/
  31. boringssl/
  32. breakpad/
  33. brotli/
  34. bspatch/
  35. byte_buddy/
  36. cardboard/
  37. cast_core/
  38. ced/
  39. checkstyle/
  40. chevron/
  41. chromevox/
  42. cld_3/
  43. cldr/
  44. closure_compiler/
  45. cloud_authenticator/
  46. colorama/
  47. content_analysis_sdk/
  48. coremltools/
  49. cpu_features/
  50. cpuinfo/
  51. crabbyavif/
  52. crashpad/
  53. crc32c/
  54. cronet_android_mainline_clang/
  55. cros-components/
  56. d3/
  57. dav1d/
  58. dbus/
  59. decklink/
  60. devscripts/
  61. devtools-frontend/
  62. distributed_point_functions/
  63. dom_distiller_js/
  64. domato/
  65. dpkg-shlibdeps/
  66. eigen3/
  67. emoji-metadata/
  68. emoji-segmenter/
  69. expat/
  70. farmhash/
  71. fast_float/
  72. fdlibm/
  73. fft2d/
  74. flatbuffers/
  75. flex/
  76. fontconfig/
  77. fp16/
  78. freetype/
  79. freetype-testing/
  80. fuchsia-gn-sdk/
  81. fuchsia-sdk/
  82. fusejs/
  83. fuzztest/
  84. fxdiv/
  85. gemmlowp/
  86. gif_player/
  87. glfw/
  88. glslang/
  89. google-closure-library/
  90. google-java-format/
  91. google-truth/
  92. google_benchmark/
  93. google_input_tools/
  94. google_toolbox_for_mac/
  95. google_trust_services/
  96. googlefonts_testdata/
  97. googletest/
  98. grpc/
  99. grpc-java/
  100. hamcrest/
  101. harfbuzz-ng/
  102. highway/
  103. hunspell/
  104. hyphenation-patterns/
  105. iaccessible2/
  106. iccjpeg/
  107. icu4j/
  108. ijar/
  109. ink/
  110. ink_stroke_modeler/
  111. inspector_protocol/
  112. ipcz/
  113. isimpledom/
  114. jacoco/
  115. javalang/
  116. jdk/
  117. jdk11/
  118. jinja2/
  119. jni_zero/
  120. js_code_coverage/
  121. jsoncpp/
  122. jstemplate/
  123. jszip/
  124. junit/
  125. khronos/
  126. kotlin_stdlib/
  127. kotlinc/
  128. lcov/
  129. lens_server_proto/
  130. leveldatabase/
  131. libaddressinput/
  132. libaom/
  133. libavif/
  134. libavifinfo/
  135. libbrlapi/
  136. libc++/
  137. libc++abi/
  138. libdrm/
  139. libei/
  140. libevent/
  141. libFuzzer/
  142. libgav1/
  143. libipp/
  144. libjingle_xmpp/
  145. liblouis/
  146. libphonenumber/
  147. libpng/
  148. libprotobuf-mutator/
  149. libsecret/
  150. libsync/
  151. libunwind/
  152. liburlpattern/
  153. libusb/
  154. libva_protected_content/
  155. libvpx/
  156. libwebm/
  157. libwebp/
  158. libx11/
  159. libxcb-keysyms/
  160. libxml/
  161. libxslt/
  162. libzip/
  163. lit/
  164. logdog/
  165. logilab/
  166. lottie/
  167. lzma_sdk/
  168. mako/
  169. markdown/
  170. markupsafe/
  171. material_color_utilities/
  172. material_design_icons/
  173. material_web_components/
  174. maven/
  175. mediapipe/
  176. mesa_headers/
  177. metrics_proto/
  178. microsoft_dxheaders/
  179. microsoft_webauthn/
  180. mig/
  181. minigbm/
  182. mockito/
  183. modp_b64/
  184. nearby/
  185. neon_2_sse/
  186. netty-tcnative/
  187. netty4/
  188. node/
  189. nyx-packer/
  190. ocmock/
  191. omnibox_proto/
  192. one_euro_filter/
  193. openh264/
  194. openscreen/
  195. openxr/
  196. opus/
  197. ots/
  198. pefile_py3/
  199. pexpect/
  200. pffft/
  201. pipewire/
  202. pipewire-media-session/
  203. ply/
  204. polymer/
  205. private-join-and-compute/
  206. private_membership/
  207. protobuf/
  208. protobuf-javascript/
  209. pthreadpool/
  210. puffin/
  211. pycoverage/
  212. pyjson5/
  213. pylint/
  214. pywebsocket3/
  215. pyyaml/
  216. qcms/
  217. quic_trace/
  218. qunit/
  219. r8/
  220. rapidhash/
  221. re2/
  222. requests/
  223. rjsmin/
  224. rnnoise/
  225. robolectric/
  226. rust/
  227. ruy/
  228. s2cellid/
  229. screen-ai/
  230. securemessage/
  231. selenium-atoms/
  232. sentencepiece/
  233. shell-encryption/
  234. simplejson/
  235. sinonjs/
  236. siso/
  237. six/
  238. smhasher/
  239. snappy/
  240. speech-dispatcher/
  241. speedometer/
  242. spirv-cross/
  243. spirv-headers/
  244. spirv-tools/
  245. sqlite/
  246. sqlite4java/
  247. subresource-filter-ruleset/
  248. swift-toolchain/
  249. tensorflow-text/
  250. tensorflow_models/
  251. test_fonts/
  252. text-fragments-polyfill/
  253. tflite/
  254. tflite_support/
  255. turbine/
  256. ukey2/
  257. unrar/
  258. updater/
  259. usb_ids/
  260. utf/
  261. v4l-utils/
  262. vulkan-headers/
  263. vulkan-loader/
  264. vulkan-tools/
  265. vulkan-utility-libraries/
  266. vulkan-validation-layers/
  267. wayland/
  268. wayland-protocols/
  269. webdriver/
  270. webgl/
  271. webgpu-cts/
  272. webpagereplay/
  273. webrtc_overrides/
  274. webxr_test_pages/
  275. weston/
  276. widevine/
  277. win_build_output/
  278. win_virtual_display/
  279. wlcs/
  280. woff2/
  281. wpt_tools/
  282. wtl/
  283. wuffs/
  284. x11proto/
  285. xcbproto/
  286. xnnpack/
  287. zlib/
  288. zstd/
  289. zxcvbn-cpp/
  290. .gitignore
  291. BUILD.gn
  292. DEPS
  293. libjpeg.gni
  294. OWNERS
  295. PRESUBMIT.py
  296. README.chromium.template
  297. README.md
README.md

The third_party directory contains sources from other projects.

For guidelines on adding a new package to the third_party directory can be found at //docs/adding_to_third_party.md