[go: nahoru, domu]

tree: 3a5897e8332d75fa8d5c3e477ad676002f117709 [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. public/
  41. quick_answers/
  42. resources/
  43. rotator/
  44. search_box/
  45. services/
  46. session/
  47. shelf/
  48. shortcut_viewer/
  49. sticky_keys/
  50. strings/
  51. style/
  52. system/
  53. test/
  54. tooltips/
  55. touch/
  56. tray_action/
  57. utility/
  58. wallpaper/
  59. wm/
  60. ash_export.h
  61. ash_interfaces.cc
  62. ash_prefs.cc
  63. ash_strings.grd
  64. autotest_private_api_utils.cc
  65. bluetooth_devices_observer.cc
  66. bluetooth_devices_observer.h
  67. BUILD.gn
  68. cancel_mode.cc
  69. cancel_mode.h
  70. debug.cc
  71. debug.h
  72. DEPS
  73. dip_unittest.cc
  74. DIR_METADATA
  75. extended_desktop_unittest.cc
  76. focus_cycler.cc
  77. focus_cycler.h
  78. focus_cycler_unittest.cc
  79. login_status.h
  80. multi_profile_uma.cc
  81. multi_profile_uma.h
  82. OWNERS
  83. README.md
  84. root_window_controller.cc
  85. root_window_controller.h
  86. root_window_controller_unittest.cc
  87. root_window_settings.cc
  88. root_window_settings.h
  89. scoped_animation_disabler.cc
  90. scoped_animation_disabler.h
  91. screen_util.cc
  92. screen_util.h
  93. screen_util_unittest.cc
  94. screenshot_delegate.h
  95. shell.cc
  96. shell.h
  97. shell_delegate.cc
  98. shell_delegate.h
  99. shell_init_params.cc
  100. shell_init_params.h
  101. shell_observer.h
  102. shell_tab_handler.cc
  103. shell_tab_handler.h
  104. shell_test_api.cc
  105. shell_unittest.cc
  106. shutdown_controller_impl.cc
  107. shutdown_controller_impl.h
  108. shutdown_reason.cc
  109. shutdown_reason.h
  110. test_media_client.cc
  111. test_media_client.h
  112. test_screenshot_delegate.cc
  113. test_screenshot_delegate.h
  114. test_shell_delegate.cc
  115. test_shell_delegate.h
  116. window_factory.cc
  117. window_factory.h
  118. window_tree_host_lookup.cc
  119. window_user_data.h
  120. 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.