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

Unified Diff: ui/app_list/presenter/app_list_delegate.h

Issue 2647833003: Adds AppListDelegate to AppList that is notified on visibility changes (Closed)
Patch Set: move Created 3 years, 11 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/presenter/app_list.cc ('k') | ui/app_list/presenter/app_list_presenter.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/presenter/app_list_delegate.h
diff --git a/ui/app_list/presenter/app_list_delegate.h b/ui/app_list/presenter/app_list_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..3da8da7e89aaa254487f4e48442e935aab5e9d14
--- /dev/null
+++ b/ui/app_list/presenter/app_list_delegate.h
@@ -0,0 +1,26 @@
+// Copyright 2017 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_PRESENTER_APP_LIST_DELEGATE_H_
+#define UI_APP_LIST_PRESENTER_APP_LIST_DELEGATE_H_
+
+#include <stdint.h>
+
+#include "ui/app_list/presenter/app_list_presenter_export.h"
+
+namespace app_list {
+
+class APP_LIST_PRESENTER_EXPORT AppListDelegate {
+ public:
+ // Called when the visility of the app list changes. |display_id| is the
+ // id of the display containing the app list.
+ virtual void OnAppListVisibilityChanged(bool visible, int64_t display_id) = 0;
+
+ protected:
+ virtual ~AppListDelegate() {}
+};
+
+} // namespace app_list
+
+#endif // UI_APP_LIST_PRESENTER_APP_LIST_DELEGATE_H_
« no previous file with comments | « ui/app_list/presenter/app_list.cc ('k') | ui/app_list/presenter/app_list_presenter.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698