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
ash / public / cpp / app_list / app_list_controller_observer.h [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_PUBLIC_CPP_APP_LIST_APP_LIST_CONTROLLER_OBSERVER_H_
#define ASH_PUBLIC_CPP_APP_LIST_APP_LIST_CONTROLLER_OBSERVER_H_
#include "ash/public/cpp/ash_public_export.h"
#include "base/observer_list_types.h"
namespace ash {
enum class AppListViewState;
class ASH_PUBLIC_EXPORT AppListControllerObserver
: public base::CheckedObserver {
public:
// Called when the AppList target visibility changes.
virtual void OnAppListVisibilityWillChange(bool shown, int64_t display_id) {}
// Called when the AppList visibility changes.
virtual void OnAppListVisibilityChanged(bool shown, int64_t display_id) {}
// Called when the AppList view state changes.
virtual void OnViewStateChanged(AppListViewState state) {}
};
} // namespace ash
#endif // ASH_PUBLIC_CPP_APP_LIST_APP_LIST_CONTROLLER_OBSERVER_H_