tree: b3752a9568091e1b72c068a59018c43b4878820a [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. user_activity/
  23. wayland/
  24. webui/
  25. win/
  26. x/
  27. base_window.cc
  28. base_window.h
  29. BUILD.gn
  30. class_properties.cc
  31. class_properties.h
  32. class_property.cc
  33. class_property.h
  34. class_property_unittest.cc
  35. command_id_constants.h
  36. default_style.h
  37. DEPS
  38. device_form_factor.h
  39. device_form_factor_android.cc
  40. device_form_factor_desktop.cc
  41. device_form_factor_ios.mm
  42. fullscreen_win.cc
  43. fullscreen_win.h
  44. hit_test.cc
  45. hit_test.h
  46. layout.cc
  47. layout.h
  48. menu_source_utils.cc
  49. menu_source_utils.h
  50. nine_image_painter_factory.cc
  51. nine_image_painter_factory.h
  52. owned_window_anchor.h
  53. OWNERS
  54. page_transition_types.cc
  55. page_transition_types.h
  56. README.chromium
  57. README.md
  58. scoped_visibility_tracker.cc
  59. scoped_visibility_tracker.h
  60. scoped_visibility_tracker_unittest.cc
  61. shortcut_mapping_pref_delegate.cc
  62. shortcut_mapping_pref_delegate.h
  63. template_expressions.cc
  64. template_expressions.h
  65. template_expressions_unittest.cc
  66. theme_provider.cc
  67. theme_provider.h
  68. themed_vector_icon.cc
  69. themed_vector_icon.h
  70. themed_vector_icon_unittest.cc
  71. ui_base_exports.cc
  72. ui_base_features.cc
  73. ui_base_features.h
  74. ui_base_paths.cc
  75. ui_base_paths.h
  76. ui_base_switches.cc
  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.cc
  89. 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.