tree: 1504dbe930b1dcd9273f1db224d847c4a8c573b1 [path history] [tgz]
  1. chromeos/
  2. cr_a11y_announcer/
  3. cr_action_menu/
  4. cr_auto_img/
  5. cr_button/
  6. cr_checkbox/
  7. cr_chip/
  8. cr_collapse/
  9. cr_dialog/
  10. cr_drawer/
  11. cr_expand_button/
  12. cr_feedback_buttons/
  13. cr_grid/
  14. cr_icon/
  15. cr_icon_button/
  16. cr_infinite_list/
  17. cr_input/
  18. cr_lazy_list/
  19. cr_lazy_render/
  20. cr_link_row/
  21. cr_loading_gradient/
  22. cr_menu_selector/
  23. cr_page_selector/
  24. cr_profile_avatar_selector/
  25. cr_progress/
  26. cr_radio_button/
  27. cr_radio_group/
  28. cr_ripple/
  29. cr_search_field/
  30. cr_slider/
  31. cr_splitter/
  32. cr_tab_box/
  33. cr_tabs/
  34. cr_textarea/
  35. cr_toast/
  36. cr_toggle/
  37. cr_toolbar/
  38. cr_tooltip/
  39. cr_tree/
  40. cr_url_list_item/
  41. cr_view_manager/
  42. policy/
  43. action_link.css
  44. action_link_lit.css
  45. BUILD.gn
  46. cr_actionable_row_style.css
  47. cr_actionable_row_style_lit.css
  48. cr_container_shadow_mixin.ts
  49. cr_container_shadow_mixin_lit.ts
  50. cr_hidden_style.css
  51. cr_hidden_style_lit.css
  52. cr_icons.css
  53. cr_icons_lit.css
  54. cr_nav_menu_item_style.css
  55. cr_nav_menu_item_style_lit.css
  56. cr_page_host_style.css
  57. cr_page_host_style_lit.css
  58. cr_scroll_observer_mixin.ts
  59. cr_scroll_observer_mixin_lit.ts
  60. cr_scrollable.css
  61. cr_scrollable_lit.css
  62. cr_selectable_mixin.ts
  63. cr_shared_style.css
  64. cr_shared_style_lit.css
  65. cr_shared_vars.css
  66. cr_spinner_style.css
  67. cr_spinner_style_lit.css
  68. find_shortcut_manager.ts
  69. find_shortcut_mixin.ts
  70. find_shortcut_mixin_lit.ts
  71. focus_row_mixin.ts
  72. focus_row_mixin_delegate.ts
  73. focus_row_mixin_lit.ts
  74. i18n_mixin.ts
  75. i18n_mixin_lit.ts
  76. icons.html.ts
  77. list_property_update_mixin.ts
  78. md_select.css
  79. md_select_lit.css
  80. mouse_hoverable_mixin_lit.ts
  81. mwb_element_shared_style.css
  82. mwb_element_shared_style_lit.css
  83. mwb_shared_style.css
  84. mwb_shared_style_lit.css
  85. mwb_shared_vars.css
  86. README.md
  87. search_highlight_style.css
  88. search_highlight_style_lit.css
  89. web_ui_listener_mixin.ts
  90. web_ui_listener_mixin_lit.ts
ui/webui/resources/cr_elements/README.md

This directory contains simple web components for Web UI. These components may be shared across any WebUI. Non-Polymer/Lit components should be compatible across all platforms (including ios). Polymer/Lit components currently are not supported on iOS or Android.

These web components must be used in at least 3 different WebUI surfaces. In some cases, an exception may be made for a component used in 2 surfaces, if there is a strong justification for why a more limited sharing model (see chrome/browser/resources/settings_shared/ for an example) is not more appropriate.

These web components must have corresponding unit tests in chrome/test/data/webui/cr_elements.

These web components may use loadTimeData and i18nMixin, but may not use i18n{...} replacements.

These web components should avoid the use of chrome.send/Mojo APIs and should avoid dependencies on extension APIs as well.

For more complex components, see cr_components.