1234567891011121314151617181920 |
- // Copyright 2019 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #include "ash/wm/pip/pip_test_utils.h"
- #include "ash/root_window_controller.h"
- #include "ash/shelf/shelf.h"
- #include "ash/shell.h"
- namespace ash {
- void ForceHideShelvesForTest() {
- for (auto* root_window_controller : Shell::GetAllRootWindowControllers()) {
- auto* shelf = root_window_controller->shelf();
- shelf->SetAutoHideBehavior(ShelfAutoHideBehavior::kAlwaysHidden);
- }
- }
- } // namespace ash
|