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

Unified Diff: ui/app_list/app_list_layout_delegate.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: Added a comment for PostTask in AppListServiceAsh. Created 4 years, 9 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
Index: ui/app_list/app_list_layout_delegate.h
diff --git a/ui/app_list/app_list_layout_delegate.h b/ui/app_list/app_list_layout_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..81e39150fd3d7758c7a93be7dfd56e5c02b9fafb
--- /dev/null
+++ b/ui/app_list/app_list_layout_delegate.h
@@ -0,0 +1,49 @@
+// 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_LAYOUT_DELEGATE_H_
+#define UI_APP_LIST_APP_LIST_LAYOUT_DELEGATE_H_
+
+#include "ui/app_list/app_list_controller.h"
xiyuan 2016/03/11 18:36:00 nit: unused?
mfomitchev 2016/03/24 17:47:29 Done.
+#include "ui/app_list/app_list_export.h"
+
+namespace aura {
+class Window;
+}
+
+namespace gfx {
+class Vector2d;
+}
+
+namespace app_list {
+class AppListView;
+
+// Responsible for laying out the app list UI.
+class APP_LIST_EXPORT AppListLayoutDelegate {
+ public:
+ virtual ~AppListLayoutDelegate() {}
+
+ // Called to initialize the layout of the app list.
+ void virtual Init(app_list::AppListView* view,
xiyuan 2016/03/11 18:36:00 nit: "app_list::" not necessary since it is alread
mfomitchev 2016/03/24 17:47:29 Done.
+ aura::Window* root_window,
+ int current_apps_page) = 0;
+
+ // Called when app list is shown.
+ void virtual OnShown(aura::Window* root_window) = 0;
+
+ // Called when app list is dismissed
+ void virtual OnDismissed() = 0;
+
+ // Update app list bounds if necessary.
+ void virtual UpdateBounds() = 0;
+
+ // Returns the offset vector by which the app list window should animate
+ // when it gets hidden.
+ virtual gfx::Vector2d GetVisibilityAnimationOffset(
+ aura::Window* root_window) = 0;
+};
+
+} // namespace app_list
+
+#endif // UI_APP_LIST_APP_LIST_LAYOUT_DELEGATE_H_
« chrome/browser/ui/ash/app_list/app_list_service_ash.cc ('K') | « ui/app_list/app_list_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698