| Index: ui/app_list/app_list_controller.h
|
| diff --git a/ui/app_list/app_list_controller.h b/ui/app_list/app_list_controller.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..702a0140a2cb4c328fa4ca431e190d11ed8e62cb
|
| --- /dev/null
|
| +++ b/ui/app_list/app_list_controller.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright 2016 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 UI_APP_LIST_APP_LIST_CONTROLLER_H_
|
| +#define UI_APP_LIST_APP_LIST_CONTROLLER_H_
|
| +
|
| +#include "ui/app_list/app_list_export.h"
|
| +
|
| +namespace aura {
|
| +class Window;
|
| +}
|
| +
|
| +namespace app_list {
|
| +
|
| +// Interface for manipulating the app list.
|
| +class APP_LIST_EXPORT AppListController {
|
| + public:
|
| + virtual ~AppListController() {}
|
| +
|
| + // Show/hide app list window. The |window| is used to deterime in
|
| + // which display (in which the |window| exists) the app list should
|
| + // be shown.
|
| + virtual void Show(aura::Window* window) = 0;
|
| +
|
| + // Invoked to dismiss app list. This may leave the view open but hidden from
|
| + // the user.
|
| + virtual void Dismiss() = 0;
|
| +
|
| + // Whether app list window is visible (shown or being shown).
|
| + virtual bool IsVisible() const = 0;
|
| +
|
| + // Returns target visibility. This differs from IsVisible() if an animation
|
| + // is ongoing.
|
| + virtual bool GetTargetVisibility() const = 0;
|
| +};
|
| +
|
| +} // namespace app_list
|
| +
|
| +#endif // UI_APP_LIST_APP_LIST_CONTROLLER_H_
|
|
|