tree: 7a49d26d7fa43d7e3ce4c6177a2770103aa42576 [path history] [tgz]
  1. accelerators/
  2. accelerometer/
  3. accessibility/
  4. ambient/
  5. animation/
  6. app_list/
  7. app_menu/
  8. ash_strings_grd/
  9. assistant/
  10. autoclick/
  11. components/
  12. custom_tab/
  13. dbus/
  14. detachable_base/
  15. display/
  16. drag_drop/
  17. events/
  18. first_run/
  19. frame/
  20. high_contrast/
  21. highlighter/
  22. home_screen/
  23. host/
  24. ime/
  25. keyboard/
  26. laser/
  27. lock_screen_action/
  28. login/
  29. magnifier/
  30. media/
  31. metrics/
  32. multi_device_setup/
  33. multi_user/
  34. perftests/
  35. policy/
  36. power/
  37. public/
  38. resources/
  39. rotator/
  40. session/
  41. shelf/
  42. shell/
  43. sticky_keys/
  44. strings/
  45. style/
  46. system/
  47. test/
  48. tooltips/
  49. touch/
  50. tray_action/
  51. utility/
  52. wallpaper/
  53. wayland/
  54. wm/
  55. ash_export.h
  56. ash_prefs.cc
  57. ash_service.cc
  58. ash_service.h
  59. ash_strings.grd
  60. bluetooth_devices_observer.cc
  61. bluetooth_devices_observer.h
  62. BUILD.gn
  63. cancel_mode.cc
  64. cancel_mode.h
  65. debug.cc
  66. debug.h
  67. DEPS
  68. dip_unittest.cc
  69. disconnected_app_handler.cc
  70. disconnected_app_handler.h
  71. extended_desktop_unittest.cc
  72. focus_cycler.cc
  73. focus_cycler.h
  74. focus_cycler_unittest.cc
  75. login_status.h
  76. mojo_interface_factory.cc
  77. mojo_interface_factory.h
  78. mojo_test_interface_factory.cc
  79. mojo_test_interface_factory.h
  80. multi_profile_uma.cc
  81. multi_profile_uma.h
  82. OWNERS
  83. README.md
  84. root_window_controller.cc
  85. root_window_controller.h
  86. root_window_controller_unittest.cc
  87. root_window_settings.cc
  88. root_window_settings.h
  89. scoped_animation_disabler.cc
  90. scoped_animation_disabler.h
  91. scoped_root_window_for_new_windows.cc
  92. scoped_root_window_for_new_windows.h
  93. screen_util.cc
  94. screen_util.h
  95. screen_util_unittest.cc
  96. screenshot_delegate.h
  97. shell.cc
  98. shell.h
  99. shell_delegate.h
  100. shell_init_params.cc
  101. shell_init_params.h
  102. shell_observer.h
  103. shell_state.cc
  104. shell_state.h
  105. shell_state_unittest.cc
  106. shell_test_api.cc
  107. shell_unittest.cc
  108. shutdown_controller_impl.cc
  109. shutdown_controller_impl.h
  110. shutdown_reason.cc
  111. shutdown_reason.h
  112. test_media_client.cc
  113. test_media_client.h
  114. test_screenshot_delegate.cc
  115. test_screenshot_delegate.h
  116. test_shell_delegate.cc
  117. test_shell_delegate.h
  118. window_factory.cc
  119. window_factory.h
  120. window_tree_host_lookup.cc
  121. window_user_data.h
  122. 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.

Ash sits below chrome in the dependency graph (i.e. it cannot depend on code in //chrome). Code outside of Ash should depend solely on Ash's public interface, which is in ash/public.

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.