OLD | NEW |
---|---|
(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_SHOWER_DELEGATE_H_ | |
6 #define UI_APP_LIST_APP_LIST_SHOWER_DELEGATE_H_ | |
7 | |
8 #include "ui/app_list/app_list_export.h" | |
9 | |
10 namespace aura { | |
11 class Window; | |
12 } | |
13 | |
14 namespace gfx { | |
15 class Vector2d; | |
16 } | |
17 | |
18 namespace app_list { | |
19 class AppListView; | |
xiyuan
2016/03/24 20:31:11
nit: insert an empty line since we have an empty l
mfomitchev
2016/03/29 17:33:31
Done.
| |
20 | |
21 class APP_LIST_EXPORT AppListShowerDelegate { | |
xiyuan
2016/03/24 20:31:11
nit: document the class?
mfomitchev
2016/03/29 17:33:31
Done.
| |
22 public: | |
23 virtual ~AppListShowerDelegate() {} | |
24 | |
25 // Called to initialize the layout of the app list. | |
26 void virtual Init(AppListView* view, | |
27 aura::Window* root_window, | |
28 int current_apps_page) = 0; | |
29 | |
30 // Called when app list is shown. | |
31 void virtual OnShown(aura::Window* root_window) = 0; | |
32 | |
33 // Called when app list is dismissed | |
34 void virtual OnDismissed() = 0; | |
35 | |
36 // Update app list bounds if necessary. | |
37 void virtual UpdateBounds() = 0; | |
38 | |
39 // Returns the offset vector by which the app list window should animate | |
40 // when it gets hidden. | |
41 virtual gfx::Vector2d GetVisibilityAnimationOffset( | |
42 aura::Window* root_window) = 0; | |
43 }; | |
44 | |
45 } // namespace app_list | |
46 | |
47 #endif // UI_APP_LIST_APP_LIST_SHOWER_DELEGATE_H_ | |
OLD | NEW |