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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_APP_LIST_APP_LIST_LAYOUT_DELEGATE_H_
6 #define UI_APP_LIST_APP_LIST_LAYOUT_DELEGATE_H_
7
8 #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.
9 #include "ui/app_list/app_list_export.h"
10
11 namespace aura {
12 class Window;
13 }
14
15 namespace gfx {
16 class Vector2d;
17 }
18
19 namespace app_list {
20 class AppListView;
21
22 // Responsible for laying out the app list UI.
23 class APP_LIST_EXPORT AppListLayoutDelegate {
24 public:
25 virtual ~AppListLayoutDelegate() {}
26
27 // Called to initialize the layout of the app list.
28 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.
29 aura::Window* root_window,
30 int current_apps_page) = 0;
31
32 // Called when app list is shown.
33 void virtual OnShown(aura::Window* root_window) = 0;
34
35 // Called when app list is dismissed
36 void virtual OnDismissed() = 0;
37
38 // Update app list bounds if necessary.
39 void virtual UpdateBounds() = 0;
40
41 // Returns the offset vector by which the app list window should animate
42 // when it gets hidden.
43 virtual gfx::Vector2d GetVisibilityAnimationOffset(
44 aura::Window* root_window) = 0;
45 };
46
47 } // namespace app_list
48
49 #endif // UI_APP_LIST_APP_LIST_LAYOUT_DELEGATE_H_
OLDNEW
« 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