tree: b18c5ab1fe346daa52ef428d5acf9dc30afcf556 [path history] [tgz]
  1. accelerators/
  2. accelerometer/
  3. accessibility/
  4. animation/
  5. app_list/
  6. app_menu/
  7. ash_strings_grd/
  8. assistant/
  9. autoclick/
  10. autotest/
  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. kiosk_next/
  27. laser/
  28. lock_screen_action/
  29. login/
  30. magnifier/
  31. media/
  32. metrics/
  33. multi_device_setup/
  34. multi_user/
  35. perftests/
  36. policy/
  37. public/
  38. resources/
  39. rotator/
  40. session/
  41. shelf/
  42. shell/
  43. sticky_keys/
  44. strings/
  45. system/
  46. test/
  47. tooltips/
  48. touch/
  49. tray_action/
  50. utility/
  51. voice_interaction/
  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. main.cc
  77. mojo_interface_factory.cc
  78. mojo_interface_factory.h
  79. mojo_test_interface_factory.cc
  80. mojo_test_interface_factory.h
  81. multi_profile_uma.cc
  82. multi_profile_uma.h
  83. network_connect_delegate_mus.cc
  84. network_connect_delegate_mus.h
  85. OWNERS
  86. README.md
  87. root_window_controller.cc
  88. root_window_controller.h
  89. root_window_controller_unittest.cc
  90. root_window_settings.cc
  91. root_window_settings.h
  92. scoped_animation_disabler.cc
  93. scoped_animation_disabler.h
  94. scoped_root_window_for_new_windows.cc
  95. scoped_root_window_for_new_windows.h
  96. screen_util.cc
  97. screen_util.h
  98. screen_util_unittest.cc
  99. screenshot_delegate.h
  100. shell.cc
  101. shell.h
  102. shell_delegate.h
  103. shell_delegate_mash.cc
  104. shell_delegate_mash.h
  105. shell_init_params.cc
  106. shell_init_params.h
  107. shell_observer.h
  108. shell_state.cc
  109. shell_state.h
  110. shell_state_unittest.cc
  111. shell_test_api.cc
  112. shell_unittest.cc
  113. shutdown_controller.cc
  114. shutdown_controller.h
  115. shutdown_reason.cc
  116. shutdown_reason.h
  117. test_media_client.cc
  118. test_media_client.h
  119. test_screenshot_delegate.cc
  120. test_screenshot_delegate.h
  121. test_shell_delegate.cc
  122. test_shell_delegate.h
  123. window_factory.cc
  124. window_factory.h
  125. window_tree_host_lookup.cc
  126. window_user_data.h
  127. 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.