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

Unified Diff: ash/wm/app_list_shower_delegate_factory.h

Issue 1856943003: AppListController refactoring part 2: Ash's AppListShowerDelegate imlementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus_chrome_delegates_app_list_2
Patch Set: Rebase. 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/app_list_shower_delegate_factory.h
diff --git a/ash/wm/app_list_shower_delegate_factory.h b/ash/wm/app_list_shower_delegate_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..71c08288c4d93a247e4273ff1fd9b1d56351a785
--- /dev/null
+++ b/ash/wm/app_list_shower_delegate_factory.h
@@ -0,0 +1,39 @@
+// 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 ASH_WM_APP_LIST_SHOWER_DELEGATE_FACTORY_H_
+#define ASH_WM_APP_LIST_SHOWER_DELEGATE_FACTORY_H_
+
+#include "ash/ash_export.h"
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "ui/app_list/shower/app_list_shower_delegate_factory.h"
+
+namespace app_list {
+class AppListShower;
+}
+
+namespace ash {
+
+class AppListViewDelegateFactory;
+
+class ASH_EXPORT AppListShowerDelegateFactory
+ : public app_list::AppListShowerDelegateFactory {
+ public:
+ explicit AppListShowerDelegateFactory(
+ scoped_ptr<AppListViewDelegateFactory> view_delegate_factory);
+ ~AppListShowerDelegateFactory() override;
+
+ scoped_ptr<app_list::AppListShowerDelegate> GetDelegate(
xiyuan 2016/04/07 18:13:22 nit: I just learned from my other review that we s
mfomitchev 2016/04/07 19:23:28 Cool, thanks! Done.
+ app_list::AppListShower* shower) override;
+
+ private:
+ scoped_ptr<AppListViewDelegateFactory> view_delegate_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppListShowerDelegateFactory);
+};
+
+} // namespace ash
+
+#endif // ASH_WM_APP_LIST_SHOWER_DELEGATE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698