Index: ui/app_list/app_list_shower_delegate.h |
diff --git a/ui/app_list/app_list_shower_delegate.h b/ui/app_list/app_list_shower_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ae50ab80a8685747680b7a981433c9f1e69dc144 |
--- /dev/null |
+++ b/ui/app_list/app_list_shower_delegate.h |
@@ -0,0 +1,47 @@ |
+// 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_SHOWER_DELEGATE_H_ |
+#define UI_APP_LIST_APP_LIST_SHOWER_DELEGATE_H_ |
+ |
+#include "ui/app_list/app_list_export.h" |
+ |
+namespace aura { |
+class Window; |
+} |
+ |
+namespace gfx { |
+class Vector2d; |
+} |
+ |
+namespace app_list { |
+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.
|
+ |
+class APP_LIST_EXPORT AppListShowerDelegate { |
xiyuan
2016/03/24 20:31:11
nit: document the class?
mfomitchev
2016/03/29 17:33:31
Done.
|
+ public: |
+ virtual ~AppListShowerDelegate() {} |
+ |
+ // Called to initialize the layout of the app list. |
+ void virtual Init(AppListView* view, |
+ 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_SHOWER_DELEGATE_H_ |