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

Side by Side Diff: ui/app_list/app_list_shower_delegate.h

Issue 1830293002: AppListController refactoring part 1: AppListShower implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: AppListShower to new component: //ui/app_list/shower, GetViewDelegate() in GetViewDelegate(). 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 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_SHOWER_APP_LIST_SHOWER_DELEGATE_H_
6 #define UI_APP_LIST_SHOWER_APP_LIST_SHOWER_DELEGATE_H_
7
8 #include "ui/app_list/shower/app_list_shower_export.h"
9
10 namespace aura {
11 class Window;
12 }
13
14 namespace gfx {
15 class Vector2d;
16 }
17
18 namespace app_list {
19
20 class AppListView;
21 class AppListViewDelegate;
22
23 // Delegate of AppListShower which allows to customize AppListShower's behavior.
24 // The design of this interface was heavily influenced by the needs of Ash's
25 // app list implementation (see ash::AppListShowerDelegate).
26 class APP_LIST_SHOWER_EXPORT AppListShowerDelegate {
27 public:
28 virtual ~AppListShowerDelegate() {}
29
30 // Returns the delegate for the app list view, possibly creating one.
31 virtual AppListViewDelegate* GetViewDelegate() = 0;
32
33 // Called to initialize the layout of the app list.
34 void virtual Init(AppListView* view,
xiyuan 2016/04/04 17:09:30 nit: not sure how I missed this. The prevailing st
mfomitchev 2016/04/04 18:59:06 Done.
35 aura::Window* root_window,
36 int current_apps_page) = 0;
37
38 // Called when app list is shown.
39 void virtual OnShown(aura::Window* root_window) = 0;
40
41 // Called when app list is dismissed
42 void virtual OnDismissed() = 0;
43
44 // Update app list bounds if necessary.
45 void virtual UpdateBounds() = 0;
46
47 // Returns the offset vector by which the app list window should animate
48 // when it gets hidden.
49 virtual gfx::Vector2d GetVisibilityAnimationOffset(
50 aura::Window* root_window) = 0;
51 };
52
53 } // namespace app_list
54
55 #endif // UI_APP_LIST_SHOWER_APP_LIST_SHOWER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698