pip_test_utils.cc 575 B

1234567891011121314151617181920
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ash/wm/pip/pip_test_utils.h"
  5. #include "ash/root_window_controller.h"
  6. #include "ash/shelf/shelf.h"
  7. #include "ash/shell.h"
  8. namespace ash {
  9. void ForceHideShelvesForTest() {
  10. for (auto* root_window_controller : Shell::GetAllRootWindowControllers()) {
  11. auto* shelf = root_window_controller->shelf();
  12. shelf->SetAutoHideBehavior(ShelfAutoHideBehavior::kAlwaysHidden);
  13. }
  14. }
  15. } // namespace ash