tree: 5391b7f4f7a0ff4711d0cc1ffaea9b853e06c37c [path history] [tgz]
  1. actions/
  2. android/
  3. app_list/
  4. apps/
  5. ash/
  6. aura/
  7. autofill/
  8. blocked_content/
  9. bluetooth/
  10. bookmarks/
  11. chromeos/
  12. cocoa/
  13. color/
  14. commerce/
  15. content_settings/
  16. cookie_controls/
  17. device_signals_consent/
  18. dialogs/
  19. docs/
  20. download/
  21. exclusive_access/
  22. extensions/
  23. fast_checkout/
  24. find_bar/
  25. frame/
  26. global_error/
  27. global_media_controls/
  28. hats/
  29. hid/
  30. hung_renderer/
  31. interventions/
  32. javascript_dialogs/
  33. lacros/
  34. lens/
  35. location_bar/
  36. login/
  37. media_router/
  38. messages/
  39. omnibox/
  40. page_action/
  41. page_info/
  42. passwords/
  43. pdf/
  44. performance_controls/
  45. permission_bubble/
  46. plus_addresses/
  47. prefs/
  48. privacy_sandbox/
  49. profiles/
  50. qrcode_generator/
  51. quick_answers/
  52. safety_hub/
  53. search/
  54. search_engine_choice/
  55. search_engines/
  56. send_tab_to_self/
  57. serial/
  58. shared_highlighting/
  59. sharing_hub/
  60. side_panel/
  61. side_search/
  62. signin/
  63. startup/
  64. supervised_user/
  65. sync/
  66. tab_contents/
  67. tab_sharing/
  68. tabs/
  69. task_manager/
  70. test/
  71. thumbnails/
  72. toolbar/
  73. translate/
  74. user_education/
  75. user_notes/
  76. views/
  77. web_applications/
  78. webauthn/
  79. webid/
  80. webui/
  81. window_name_prompt/
  82. window_sizer/
  83. zoom/
  84. accelerator_utils.h
  85. accessibility_util.h
  86. app_icon_loader.cc
  87. app_icon_loader.h
  88. app_icon_loader_delegate.h
  89. ask_google_for_suggestions_dialog_browsertest.cc
  90. breadcrumb_manager_browser_agent.cc
  91. breadcrumb_manager_browser_agent.h
  92. breadcrumb_manager_browser_agent_unittest.cc
  93. browser.cc
  94. browser.h
  95. browser_browsertest.cc
  96. browser_close_unittest.cc
  97. browser_command_controller.cc
  98. browser_command_controller.h
  99. browser_command_controller_browsertest.cc
  100. browser_command_controller_interactive_browsertest.cc
  101. browser_command_controller_unittest.cc
  102. browser_commands.cc
  103. browser_commands.h
  104. browser_commands_browsertest.cc
  105. browser_commands_chromeos.cc
  106. browser_commands_chromeos.h
  107. browser_commands_mac.h
  108. browser_commands_mac.mm
  109. browser_content_setting_bubble_model_delegate.cc
  110. browser_content_setting_bubble_model_delegate.h
  111. browser_dialogs.cc
  112. browser_dialogs.h
  113. browser_element_identifiers.cc
  114. browser_element_identifiers.h
  115. browser_finder.cc
  116. browser_finder.h
  117. browser_finder_chromeos_browsertest.cc
  118. browser_finder_chromeos_unittest.cc
  119. browser_finder_unittest.cc
  120. browser_focus_uitest.cc
  121. browser_instant_controller.cc
  122. browser_instant_controller.h
  123. browser_instant_controller_unittest.cc
  124. browser_list.cc
  125. browser_list.h
  126. browser_list_observer.h
  127. browser_list_unittest.cc
  128. browser_live_tab_context.cc
  129. browser_live_tab_context.h
  130. browser_location_bar_model_delegate.cc
  131. browser_location_bar_model_delegate.h
  132. browser_mac.cc
  133. browser_mac.h
  134. browser_navigator.cc
  135. browser_navigator.h
  136. browser_navigator_browsertest.cc
  137. browser_navigator_browsertest.h
  138. browser_navigator_browsertest_chromeos.cc
  139. browser_navigator_iwa_browsertest.cc
  140. browser_navigator_params.cc
  141. browser_navigator_params.h
  142. browser_navigator_unittest.cc
  143. browser_otr_state.cc
  144. browser_otr_state.h
  145. browser_otr_state_android.cc
  146. browser_tab_menu_model_delegate.cc
  147. browser_tab_menu_model_delegate.h
  148. browser_tab_restorer.cc
  149. browser_tab_strip_model_delegate.cc
  150. browser_tab_strip_model_delegate.h
  151. browser_tab_strip_model_delegate_browsertest.cc
  152. browser_tab_strip_tracker.cc
  153. browser_tab_strip_tracker.h
  154. browser_tab_strip_tracker_delegate.h
  155. browser_tabrestore.cc
  156. browser_tabrestore.h
  157. browser_tabrestore_browsertest.cc
  158. browser_tabstrip.cc
  159. browser_tabstrip.h
  160. browser_tabstrip_browsertest_chromeos.cc
  161. browser_ui_prefs.cc
  162. browser_ui_prefs.h
  163. browser_unittest.cc
  164. browser_user_data.h
  165. browser_view_prefs.cc
  166. browser_view_prefs.h
  167. browser_window.h
  168. browser_window_features.cc
  169. browser_window_features.h
  170. browser_window_state.cc
  171. browser_window_state.h
  172. browser_window_state_unittest.cc
  173. bubble_anchor_util.h
  174. BUILD.gn
  175. certificate_dialogs.cc
  176. certificate_dialogs.h
  177. chooser_bubble_testapi.h
  178. chrome_pages.cc
  179. chrome_pages.h
  180. chrome_select_file_policy.cc
  181. chrome_select_file_policy.h
  182. chrome_select_file_policy_unittest.cc
  183. chrome_web_modal_dialog_manager_delegate.cc
  184. chrome_web_modal_dialog_manager_delegate.h
  185. collected_cookies_browsertest.cc
  186. collected_cookies_infobar_delegate.cc
  187. collected_cookies_infobar_delegate.h
  188. color_chooser.h
  189. confirm_bubble.h
  190. confirm_bubble_model.cc
  191. confirm_bubble_model.h
  192. crypto_module_delegate_nss.cc
  193. crypto_module_delegate_nss.h
  194. crypto_module_password_dialog.h
  195. crypto_module_password_dialog_nss.cc
  196. crypto_module_password_dialog_nss.h
  197. cryptuiapi_shim.h
  198. DEPS
  199. enterprise_startup_dialog.h
  200. file_system_access_dialogs.cc
  201. file_system_access_dialogs.h
  202. focus_tab_after_navigation_helper.cc
  203. focus_tab_after_navigation_helper.h
  204. fullscreen_keyboard_browsertest_base.cc
  205. fullscreen_keyboard_browsertest_base.h
  206. fullscreen_util_mac.cc
  207. fullscreen_util_mac.h
  208. fullscreen_util_mac_browsertest.cc
  209. hung_plugin_tab_helper.cc
  210. hung_plugin_tab_helper.h
  211. idle_bubble.h
  212. idle_dialog.h
  213. incognito_clear_browsing_data_dialog_interface.h
  214. intent_picker_tab_helper.cc
  215. intent_picker_tab_helper.h
  216. intent_picker_tab_helper_unittest.cc
  217. keyboard_lock_interactive_browsertest.cc
  218. layout_constants.cc
  219. layout_constants.h
  220. managed_ui.cc
  221. managed_ui.h
  222. managed_ui_browsertest.cc
  223. monogram_utils.cc
  224. monogram_utils.h
  225. native_window_tracker_browsertest.cc
  226. network_profile_bubble.cc
  227. network_profile_bubble.h
  228. overscroll_pref_manager.cc
  229. overscroll_pref_manager.h
  230. overscroll_pref_manager_unittest.cc
  231. OWNERS
  232. platform_keys_certificate_selector_chromeos.h
  233. process_singleton_dialog_linux.h
  234. README.md
  235. recently_audible_helper.cc
  236. recently_audible_helper.h
  237. recently_audible_helper_unittest.cc
  238. renderer_event_injection_browsertest.cc
  239. sad_tab.cc
  240. sad_tab.h
  241. sad_tab_helper.cc
  242. sad_tab_helper.h
  243. sad_tab_types.h
  244. scoped_tabbed_browser_displayer.cc
  245. scoped_tabbed_browser_displayer.h
  246. screen_capture_notification_ui.h
  247. screen_capture_notification_ui_browsertest.cc
  248. screen_capture_notification_ui_stub.cc
  249. send_mouse_move_uitest_win.cc
  250. session_crashed_bubble.h
  251. settings_window_manager_browsertest_chromeos.cc
  252. settings_window_manager_chromeos.cc
  253. settings_window_manager_chromeos.h
  254. settings_window_manager_observer_chromeos.h
  255. simple_message_box.h
  256. simple_message_box_internal.cc
  257. simple_message_box_internal.h
  258. singleton_tabs.cc
  259. singleton_tabs.h
  260. singleton_tabs_unittest.cc
  261. status_bubble.h
  262. storage_pressure_bubble.h
  263. tab_dialogs.cc
  264. tab_dialogs.h
  265. tab_helpers.cc
  266. tab_helpers.h
  267. tab_modal_confirm_dialog.h
  268. tab_modal_confirm_dialog_browsertest.cc
  269. tab_modal_confirm_dialog_browsertest.h
  270. tab_modal_confirm_dialog_delegate.cc
  271. tab_modal_confirm_dialog_delegate.h
  272. tab_ui_helper.cc
  273. tab_ui_helper.h
  274. tab_ui_helper_browsertest.cc
  275. toolbar_controller_util.cc
  276. toolbar_controller_util.h
  277. ui_features.cc
  278. ui_features.h
  279. uma_browsing_activity_observer.cc
  280. uma_browsing_activity_observer.h
  281. uninstall_browser_prompt.h
  282. unload_controller.cc
  283. unload_controller.h
  284. unload_controller_browsertest.cc
  285. update_chrome_dialog_browsertest.cc
  286. url_identity.cc
  287. url_identity.h
  288. url_identity_unittest.cc
  289. view_ids.h
chrome/browser/ui/README.md

This directory contains the implementation of the Chromium UI. There are subdirectories with implementations for specific toolkits and OSes.

This directory is often referred to in conversation as “cbui” or “c/b/ui”, pronounced “sea bee you eye”.

Important subdirectories:

  • views - the Views implementation of the UI, used on Windows, Mac, Linux, and ChromeOS/Lacros. This includes features like Omnibox, downloads.
  • cocoa - the remaining Cocoa UI, used only on Mac. This directory used to contain a separate full implementation of the UI, parallel to the Views implementation.
  • android - part of the Android implementation of the UI. See also //chrome/browser/android.
  • webui - the WebUI parts of the browser UI. This includes things like the chrome://settings page and other WebUI pages.

Historically, the goal of this directory was to be platform agnostic, with platform-specific logic in the above sub-directories. This didn‘t work and attempting to maintain this structure was causing more problems than it was solving, so we’ve removed this requirement.

In the event that a feature does need platform-specific implementations, use the following structure:

//chrome/browser/ui/browser_dialogs.h: void ShowMyDialog(...);

//chrome/browser/ui/views/my_dialog_views.cc: void ShowMyDialog(...) { ... }

//chrome/browser/ui/android/my_dialog_android.cc: void ShowMyDialog(...) { ... }

Because “Chromium UI” is such a large surface area, do not add new files directly to this directory; instead, add subdirectories with more specific OWNERS and place new features and files in them. Cleanup of existing scattered files is also welcome.