tree: 5d7ba4684be514bcb79af54ececdc3c27b1bc15c [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. capture_mode/
  12. child_accounts/
  13. clipboard/
  14. dbus/
  15. detachable_base/
  16. display/
  17. drag_drop/
  18. events/
  19. fast_ink/
  20. frame/
  21. frame_throttler/
  22. high_contrast/
  23. highlighter/
  24. home_screen/
  25. host/
  26. hud_display/
  27. ime/
  28. in_session_auth/
  29. keyboard/
  30. lock_screen_action/
  31. login/
  32. magnifier/
  33. media/
  34. metrics/
  35. multi_device_setup/
  36. multi_user/
  37. perftests/
  38. policy/
  39. power/
  40. projector/
  41. public/
  42. quick_answers/
  43. resources/
  44. rotator/
  45. search_box/
  46. services/
  47. session/
  48. shelf/
  49. shortcut_viewer/
  50. sticky_keys/
  51. strings/
  52. style/
  53. system/
  54. test/
  55. tooltips/
  56. touch/
  57. tray_action/
  58. utility/
  59. wallpaper/
  60. wm/
  61. ash_export.h
  62. ash_interfaces.cc
  63. ash_prefs.cc
  64. ash_strings.grd
  65. autotest_private_api_utils.cc
  66. bluetooth_devices_observer.cc
  67. bluetooth_devices_observer.h
  68. BUILD.gn
  69. cancel_mode.cc
  70. cancel_mode.h
  71. debug.cc
  72. debug.h
  73. DEPS
  74. dip_unittest.cc
  75. DIR_METADATA
  76. extended_desktop_unittest.cc
  77. focus_cycler.cc
  78. focus_cycler.h
  79. focus_cycler_unittest.cc
  80. login_status.h
  81. multi_profile_uma.cc
  82. multi_profile_uma.h
  83. OWNERS
  84. README.md
  85. root_window_controller.cc
  86. root_window_controller.h
  87. root_window_controller_unittest.cc
  88. root_window_settings.cc
  89. root_window_settings.h
  90. scoped_animation_disabler.cc
  91. scoped_animation_disabler.h
  92. screen_util.cc
  93. screen_util.h
  94. screen_util_unittest.cc
  95. screenshot_delegate.h
  96. shell.cc
  97. shell.h
  98. shell_delegate.cc
  99. shell_delegate.h
  100. shell_init_params.cc
  101. shell_init_params.h
  102. shell_observer.h
  103. shell_tab_handler.cc
  104. shell_tab_handler.h
  105. shell_test_api.cc
  106. shell_unittest.cc
  107. shutdown_controller_impl.cc
  108. shutdown_controller_impl.h
  109. shutdown_reason.cc
  110. shutdown_reason.h
  111. test_media_client.cc
  112. test_media_client.h
  113. test_screenshot_delegate.cc
  114. test_screenshot_delegate.h
  115. test_shell_delegate.cc
  116. test_shell_delegate.h
  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
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.