[go: nahoru, domu]

tree: 8814a63f015f0d9299567b74b441bf0782720a1e [path history] [tgz]
  1. accelerators/
  2. accelerometer/
  3. accessibility/
  4. ambient/
  5. animation/
  6. api/
  7. app_list/
  8. app_menu/
  9. ash_strings_grd/
  10. assistant/
  11. booting/
  12. bubble/
  13. calendar/
  14. capture_mode/
  15. child_accounts/
  16. clipboard/
  17. color_enhancement/
  18. components/
  19. constants/
  20. controls/
  21. curtain/
  22. dbus/
  23. detachable_base/
  24. display/
  25. drag_drop/
  26. events/
  27. fast_ink/
  28. frame/
  29. frame_sink/
  30. frame_throttler/
  31. game_dashboard/
  32. glanceables/
  33. host/
  34. hud_display/
  35. ime/
  36. in_session_auth/
  37. keyboard/
  38. lock_screen_action/
  39. login/
  40. media/
  41. metrics/
  42. multi_capture/
  43. multi_device_setup/
  44. multi_user/
  45. perftests/
  46. picker/
  47. policy/
  48. power/
  49. projector/
  50. public/
  51. quick_pair/
  52. resources/
  53. rgb_keyboard/
  54. rotator/
  55. rounded_display/
  56. scalable_iph/
  57. search_box/
  58. sensor_info/
  59. session/
  60. shelf/
  61. shortcut_viewer/
  62. strings/
  63. style/
  64. system/
  65. test/
  66. tooltips/
  67. touch/
  68. tray_action/
  69. user_education/
  70. utility/
  71. virtual_trackpad/
  72. wallpaper/
  73. webui/
  74. wm/
  75. wm_mode/
  76. ash_element_identifiers.cc
  77. ash_element_identifiers.h
  78. ash_export.h
  79. ash_interfaces.cc
  80. ash_prefs.cc
  81. ash_strings.grd
  82. autotest_private_api_utils.cc
  83. bluetooth_devices_observer.cc
  84. bluetooth_devices_observer.h
  85. BUILD.gn
  86. cancel_mode.cc
  87. cancel_mode.h
  88. debug.cc
  89. debug.h
  90. DEPS
  91. dip_unittest.cc
  92. DIR_METADATA
  93. extended_desktop_unittest.cc
  94. focus_cycler.cc
  95. focus_cycler.h
  96. focus_cycler_unittest.cc
  97. fullscreen_pixeltest.cc
  98. login_status.h
  99. multi_profile_uma.cc
  100. multi_profile_uma.h
  101. OWNERS
  102. README.md
  103. root_window_controller.cc
  104. root_window_controller.h
  105. root_window_controller_unittest.cc
  106. root_window_settings.cc
  107. root_window_settings.h
  108. scoped_animation_disabler.cc
  109. scoped_animation_disabler.h
  110. screen_util.cc
  111. screen_util.h
  112. screen_util_unittest.cc
  113. shell.cc
  114. shell.h
  115. shell_delegate.cc
  116. shell_delegate.h
  117. shell_init_params.cc
  118. shell_init_params.h
  119. shell_observer.h
  120. shell_tab_handler.cc
  121. shell_tab_handler.h
  122. shell_test_api.cc
  123. shell_unittest.cc
  124. shutdown_controller_impl.cc
  125. shutdown_controller_impl.h
  126. shutdown_reason.cc
  127. shutdown_reason.h
  128. test_media_client.cc
  129. test_media_client.h
  130. test_shell_delegate.cc
  131. test_shell_delegate.h
  132. window_tree_host_lookup.cc
  133. window_user_data.h
  134. 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.

Dependencies

Ash sits below chrome in the dependency graph (i.e. it cannot depend on code in //chrome). For historical reasons, ash has multiple dependency levels:

  • General //ash code is on top (//ash/system, //ash/wm, etc.)
  • //ash/components sit below //ash, see README
  • //ash/constants sit near the bottom of the dependency graph, see README

Access to Ash internals is controlled by DEPS files. Unless explicitly allowed by DEPS, code outside Ash should depend on the interfaces in //ash/public. Check with OWNERS if you have questions.

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.

“Shelf party” was an Easter-egg feature that made shelf icons fly around the screen. It did not launch and was removed in June 2023.