forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrag_window_from_shelf_controller_test_api.h
37 lines (27 loc) · 1.18 KB
/
drag_window_from_shelf_controller_test_api.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// 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.
#ifndef ASH_SHELF_DRAG_WINDOW_FROM_SHELF_CONTROLLER_TEST_API_H_
#define ASH_SHELF_DRAG_WINDOW_FROM_SHELF_CONTROLLER_TEST_API_H_
#include "ash/ash_export.h"
#include "ash/shelf/drag_window_from_shelf_controller.h"
#include "base/run_loop.h"
namespace ash {
class ASH_EXPORT DragWindowFromShelfControllerTestApi
: public DragWindowFromShelfController::Observer {
public:
DragWindowFromShelfControllerTestApi();
~DragWindowFromShelfControllerTestApi() override;
void WaitUntilOverviewIsShown(
DragWindowFromShelfController* window_drag_controller);
// DragWindowFromShelfController::Observer:
void OnOverviewVisibilityChanged(bool visible) override;
private:
std::unique_ptr<base::RunLoop> show_overview_waiter_;
DragWindowFromShelfControllerTestApi(
const DragWindowFromShelfControllerTestApi&) = delete;
DragWindowFromShelfControllerTestApi& operator=(
const DragWindowFromShelfControllerTestApi&) = delete;
};
} // namespace ash
#endif // ASH_SHELF_DRAG_WINDOW_FROM_SHELF_CONTROLLER_TEST_API_H_