tree: 7983a3353eebec65b45c15e82684e38d1845733f [path history] [tgz]
  1. accelerators/
  2. clipboard/
  3. cocoa/
  4. cursor/
  5. data_transfer_policy/
  6. dragdrop/
  7. emoji/
  8. glib/
  9. idle/
  10. ime/
  11. interaction/
  12. l10n/
  13. linux/
  14. metadata/
  15. models/
  16. mojom/
  17. pointer/
  18. prediction/
  19. resource/
  20. test/
  21. text/
  22. unowned_user_data/
  23. user_activity/
  24. wayland/
  25. webui/
  26. win/
  27. x/
  28. base_window.cc
  29. base_window.h
  30. BUILD.gn
  31. class_properties.cc
  32. class_properties.h
  33. class_property.cc
  34. class_property.h
  35. class_property_unittest.cc
  36. command_id_constants.h
  37. default_style.h
  38. DEPS
  39. device_form_factor.h
  40. device_form_factor_android.cc
  41. device_form_factor_desktop.cc
  42. device_form_factor_ios.mm
  43. fullscreen_win.cc
  44. fullscreen_win.h
  45. hit_test.cc
  46. hit_test.h
  47. layout.cc
  48. layout.h
  49. menu_source_utils.cc
  50. menu_source_utils.h
  51. nine_image_painter_factory.cc
  52. nine_image_painter_factory.h
  53. owned_window_anchor.h
  54. OWNERS
  55. page_transition_types.cc
  56. page_transition_types.h
  57. README.chromium
  58. README.md
  59. scoped_visibility_tracker.cc
  60. scoped_visibility_tracker.h
  61. scoped_visibility_tracker_unittest.cc
  62. shortcut_mapping_pref_delegate.cc
  63. shortcut_mapping_pref_delegate.h
  64. template_expressions.cc
  65. template_expressions.h
  66. template_expressions_unittest.cc
  67. theme_provider.cc
  68. theme_provider.h
  69. themed_vector_icon.cc
  70. themed_vector_icon.h
  71. themed_vector_icon_unittest.cc
  72. ui_base_exports.cc
  73. ui_base_features.cc
  74. ui_base_features.h
  75. ui_base_paths.cc
  76. ui_base_paths.h
  77. ui_base_switches.h
  78. ui_base_switches_util.cc
  79. ui_base_switches_util.h
  80. ui_base_types.h
  81. ui_features.gni
  82. view_prop.cc
  83. view_prop.h
  84. view_prop_unittest.cc
  85. window_open_disposition.h
  86. window_open_disposition_utils.cc
  87. window_open_disposition_utils.h
  88. wm_role_names_linux.h
ui/base/README.md

//ui/base

This directory contains low-level code that is reused throughout the chromium UI stack. Code in this directory can't depend on most of the rest of //ui (with a few exceptions), and code throughout the rest of //ui can depend on it.

Toolkit-specific libraries in this directory include:

  • cocoa: for working with Cocoa on macOS
  • wayland: for Linux systems with Wayland
  • webui: for WebUI in Chromium
  • win: for Windows systems
  • x: for Linux systems with X11

Platform-independent libraries in this directory include:

  • l10n: localization APIs used throughout all of chromium, especially the widely-used l10n_util::GetString* functions
  • metadata: the implementation of the property/metadata system used throughout views
  • models: toolkit-agnostic types used to represent the data shown in UI controls and dialogs
  • resource: resource bundle APIs, which are used for retrieving icons and raw localized strings from the app package

As with most “base” libraries this is somewhat of a dumping ground of code that is used in a bunch of other places, and there‘s no hard and fast rule to tell what should or shouldn’t be in here. If in doubt, consult with the owners.