Index: ui/aura_shell/app_list/app_list_view_delegate.h |
diff --git a/ui/aura_shell/app_list/app_list_view_delegate.h b/ui/aura_shell/app_list/app_list_view_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a73b783630a758989b2bc37d2901998f7ed9fcd6 |
--- /dev/null |
+++ b/ui/aura_shell/app_list/app_list_view_delegate.h |
@@ -0,0 +1,27 @@ |
+// Copyright (c) 2011 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_AURA_SHELL_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
+#define UI_AURA_SHELL_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
+#pragma once |
+ |
+#include "ui/aura_shell/aura_shell_export.h" |
+ |
+namespace aura_shell { |
+ |
+class AppListItemModel; |
+ |
+class AURA_SHELL_EXPORT AppListViewDelegate { |
+ public: |
+ // AppListView owns the delegate. |
+ virtual ~AppListViewDelegate() {} |
+ |
+ // Invoked an AppListeItemModelView is activated by click or enter key. |
+ virtual void OnAppListItemActivated(AppListItemModel* item, |
+ int event_flags) = 0; |
+}; |
+ |
+} // namespace aura_shell |
+ |
+#endif // UI_AURA_SHELL_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |