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