Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: ui/app_list/shower/app_list_shower.h

Issue 1770993002: wip: Refactoring Ash's AppListController, moving the bulk of the logic to chrome/browser/ui/ash/app… Base URL: https://chromium.googlesource.com/chromium/src.git@small_5_apps
Patch Set: AppListShower to new component: //ui/app_list/shower, GetViewDelegate() in GetViewDelegate(), test … Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/shower/BUILD.gn ('k') | ui/app_list/shower/app_list_shower.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/shower/app_list_shower.h
diff --git a/ui/app_list/shower/app_list_shower.h b/ui/app_list/shower/app_list_shower.h
new file mode 100644
index 0000000000000000000000000000000000000000..ac94a4a06cadab5a9a1d5fac82811be866f9191b
--- /dev/null
+++ b/ui/app_list/shower/app_list_shower.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_SHOWER_APP_LIST_SHOWER_H_
+#define UI_APP_LIST_SHOWER_APP_LIST_SHOWER_H_
+
+#include "ui/app_list/shower/app_list_shower_export.h"
+
+namespace aura {
+class Window;
+}
+
+namespace app_list {
+
+// Interface for showing and hiding the app list.
+class APP_LIST_SHOWER_EXPORT AppListShower {
+ public:
+ virtual ~AppListShower() {}
+
+ // 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 the app list's aura::Window is currently visible.
+ virtual bool IsVisible() const = 0;
+
+ // Returns target visibility. This may differ from IsVisible() if a
+ // visibility transition is in progress.
+ virtual bool GetTargetVisibility() const = 0;
+};
+
+} // namespace app_list
+
+#endif // UI_APP_LIST_SHOWER_APP_LIST_SHOWER_H_
« no previous file with comments | « ui/app_list/shower/BUILD.gn ('k') | ui/app_list/shower/app_list_shower.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698