tree: 213a5655fa815ec2a20ce54971f2ea9ed2d62ef1 [path history] [tgz]
  1. accelerators/
  2. accessibility/
  3. animation/
  4. app_list/
  5. autoclick/
  6. content/
  7. display/
  8. drag_drop/
  9. fast_ink/
  10. first_run/
  11. frame/
  12. high_contrast/
  13. highlighter/
  14. host/
  15. ime/
  16. keyboard/
  17. laser/
  18. login/
  19. magnifier/
  20. metrics/
  21. mus/
  22. perftests/
  23. public/
  24. resources/
  25. rotator/
  26. session/
  27. shelf/
  28. shell/
  29. sticky_keys/
  30. strings/
  31. system/
  32. test/
  33. tooltips/
  34. touch/
  35. touch_hud/
  36. tray_action/
  37. utility/
  38. wallpaper/
  39. wm/
  40. accessibility_delegate.h
  41. accessibility_types.h
  42. ash_constants.cc
  43. ash_constants.h
  44. ash_export.h
  45. ash_layout_constants.cc
  46. ash_layout_constants.h
  47. ash_strings.grd
  48. ash_switches.cc
  49. ash_switches.h
  50. ash_touch_exploration_manager_chromeos.cc
  51. ash_touch_exploration_manager_chromeos.h
  52. ash_touch_exploration_manager_chromeos_unittest.cc
  53. ash_view_ids.h
  54. BUILD.gn
  55. cancel_mode.cc
  56. cancel_mode.h
  57. cast_config_controller.cc
  58. cast_config_controller.h
  59. debug.cc
  60. debug.h
  61. default_accessibility_delegate.cc
  62. default_accessibility_delegate.h
  63. default_wallpaper_delegate.cc
  64. default_wallpaper_delegate.h
  65. DEPS
  66. dip_unittest.cc
  67. extended_desktop_unittest.cc
  68. focus_cycler.cc
  69. focus_cycler.h
  70. focus_cycler_unittest.cc
  71. gpu_support.h
  72. gpu_support_stub.cc
  73. gpu_support_stub.h
  74. login_status.h
  75. media_controller.cc
  76. media_controller.h
  77. mojo_interface_factory.cc
  78. mojo_interface_factory.h
  79. multi_profile_uma.cc
  80. multi_profile_uma.h
  81. mus_property_mirror_ash_unittest.cc
  82. new_window_controller.cc
  83. new_window_controller.h
  84. OWNERS
  85. palette_delegate.h
  86. pointer_watcher_adapter_classic.cc
  87. pointer_watcher_adapter_classic.h
  88. pointer_watcher_adapter_classic_unittest.cc
  89. README.md
  90. root_window_controller.cc
  91. root_window_controller.h
  92. root_window_controller_unittest.cc
  93. root_window_settings.cc
  94. root_window_settings.h
  95. scoped_root_window_for_new_windows.cc
  96. scoped_root_window_for_new_windows.h
  97. screen_util.cc
  98. screen_util.h
  99. screen_util_unittest.cc
  100. screenshot_delegate.h
  101. shell.cc
  102. shell.h
  103. shell_delegate.h
  104. shell_init_params.h
  105. shell_observer.h
  106. shell_port.cc
  107. shell_port.h
  108. shell_port_classic.cc
  109. shell_port_classic.h
  110. shell_test_api.cc
  111. shell_test_api.h
  112. shell_unittest.cc
  113. shutdown_controller.cc
  114. shutdown_controller.h
  115. shutdown_reason.h
  116. test_screenshot_delegate.cc
  117. test_screenshot_delegate.h
  118. test_shell_delegate.cc
  119. test_shell_delegate.h
  120. virtual_keyboard_controller.cc
  121. virtual_keyboard_controller.h
  122. virtual_keyboard_controller_unittest.cc
  123. window_user_data.h
  124. 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). It has a few dependencies on //content, but these are isolated in their own module in //ash/content. This allows targets like ash_unittests to build more quickly.

Tests

Most tests should be added to the ash_unittests target. Tests that rely on //content should be added to ash_content_unittests, but these should be rare.

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.

Mus+ash

Ash is transitioning to use the mus window server and gpu process, found in //services/ui. Ash continues to use aura, but aura is backed by mus. Code to support mus is found in //ash/mus. There should be relatively few differences between the pure aura and the aura-mus versions of ash. Ash can by run in mus mode by passing the --mus command line flag.

Ash is also transitioning to run as a mojo service in its own process. This means that code in chrome cannot call into ash directly, but must use the mojo interfaces in //ash/public/interfaces.

Out-of-process Ash is referred to as “mash” (mojo ash). In-process ash is referred to as “classic ash”. Ash can run in either mode depending on the --mash command line flag.

Historical notes

Ash shipped on Windows for a couple years to support Windows 8 Metro mode. Windows support was removed in 2016.