tree: c82d39846145cf9075d90308f6074508e6a8b124 [path history] [tgz]
  1. accelerators/
  2. accelerometer/
  3. accessibility/
  4. ambient/
  5. animation/
  6. annotator/
  7. api/
  8. app_list/
  9. app_menu/
  10. ash_strings_grd/
  11. assistant/
  12. auth/
  13. birch/
  14. booting/
  15. bubble/
  16. calendar/
  17. capture_mode/
  18. child_accounts/
  19. clipboard/
  20. color_enhancement/
  21. components/
  22. constants/
  23. controls/
  24. curtain/
  25. dbus/
  26. detachable_base/
  27. display/
  28. drag_drop/
  29. edusumer/
  30. events/
  31. fast_ink/
  32. frame/
  33. frame_sink/
  34. frame_throttler/
  35. game_dashboard/
  36. glanceables/
  37. host/
  38. hud_display/
  39. ime/
  40. in_session_auth/
  41. keyboard/
  42. lobster/
  43. lock_screen_action/
  44. login/
  45. media/
  46. metrics/
  47. multi_capture/
  48. multi_device_setup/
  49. multi_user/
  50. perftests/
  51. picker/
  52. policy/
  53. power/
  54. projector/
  55. public/
  56. quick_pair/
  57. resources/
  58. rgb_keyboard/
  59. rotator/
  60. rounded_display/
  61. scalable_iph/
  62. scanner/
  63. search_box/
  64. sensor_info/
  65. session/
  66. shelf/
  67. strings/
  68. style/
  69. system/
  70. test/
  71. tooltips/
  72. touch/
  73. tray_action/
  74. user_education/
  75. utility/
  76. virtual_trackpad/
  77. wallpaper/
  78. webui/
  79. wm/
  80. wm_mode/
  81. ash_element_identifiers.cc
  82. ash_element_identifiers.h
  83. ash_export.h
  84. ash_interfaces.cc
  85. ash_prefs.cc
  86. ash_strings.grd
  87. autotest_private_api_utils.cc
  88. bluetooth_devices_observer.cc
  89. bluetooth_devices_observer.h
  90. BUILD.gn
  91. cancel_mode.cc
  92. cancel_mode.h
  93. debug.cc
  94. debug.h
  95. DEPS
  96. dip_unittest.cc
  97. DIR_METADATA
  98. extended_desktop_unittest.cc
  99. focus_cycler.cc
  100. focus_cycler.h
  101. focus_cycler_unittest.cc
  102. fullscreen_pixeltest.cc
  103. login_status.h
  104. OWNERS
  105. README.md
  106. root_window_controller.cc
  107. root_window_controller.h
  108. root_window_controller_unittest.cc
  109. root_window_settings.cc
  110. root_window_settings.h
  111. screen_util.cc
  112. screen_util.h
  113. screen_util_unittest.cc
  114. shell.cc
  115. shell.h
  116. shell_delegate.cc
  117. shell_delegate.h
  118. shell_init_params.cc
  119. shell_init_params.h
  120. shell_observer.h
  121. shell_tab_handler.cc
  122. shell_tab_handler.h
  123. shell_test_api.cc
  124. shell_unittest.cc
  125. shutdown_controller_impl.cc
  126. shutdown_controller_impl.h
  127. shutdown_reason.cc
  128. shutdown_reason.h
  129. test_media_client.cc
  130. test_media_client.h
  131. test_shell_delegate.cc
  132. test_shell_delegate.h
  133. window_tree_host_lookup.cc
  134. window_user_data.h
  135. window_user_data_unittest.cc
ash/README.md

Ash

Ash is the “Aura Shell”, the window manager and system UI for Chrome OS. Ash uses the views UI toolkit (e.g. views::View, views::Widget, etc.) backed by the aura native widget and layer implementations.

Dependencies

Ash sits below chrome in the dependency graph (i.e. it cannot depend on code in //chrome). For historical reasons, ash has multiple dependency levels:

  • General //ash code is on top (//ash/system, //ash/wm, etc.)
  • //ash/components sit below //ash, see README
  • //ash/constants sit near the bottom of the dependency graph, see README

Access to Ash internals is controlled by DEPS files. Unless explicitly allowed by DEPS, code outside Ash should depend on the interfaces in //ash/public. Check with OWNERS if you have questions.

Tests

Tests should be added to the ash_unittests target.

Tests can bring up most of the ash UI and simulate a login session by deriving from AshTestBase. This is often needed to test code that depends on ash::Shell and the controllers it owns.

Test support code (TestFooDelegate, FooControllerTestApi, etc.) lives in the same directory as the class under test (e.g. //ash/foo rather than //ash/test). Test code uses namespace ash; there is no special “test” namespace.

Prefs

Ash supports both per-user prefs and device-wide prefs. These are called “profile prefs” and “local state” to match the naming conventions in chrome. Ash also supports “signin screen” prefs, bound to a special profile that allows users to toggle features like spoken feedback at the login screen.

Pref names are in //ash/public/cpp so that code in chrome can also use the names. Prefs are registered in the classes that use them because those classes have the best knowledge of default values.

Historical notes

Ash shipped on Windows for a couple years to support Windows 8 Metro mode. Windows support was removed in 2016.

The mash (some times called mus-ash or mustash) project was an effort to move ash into its own process and the browser in its own process. Communication between the two processes was done over mojo. Windowing was done using the window-service (some times called mus), which ran with Ash. Many of the mojo interfaces have been converted to pure virtual interfaces, with the implementation in ash. The mash project was stopped around 4/2019.

“Shelf party” was an Easter-egg feature that made shelf icons fly around the screen. It did not launch and was removed in June 2023.