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_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_ | |
OLD | NEW |