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