 Chromium Code Reviews
 Chromium Code Reviews 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
    
  
    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| 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..b30693e68b45c36d107d2a7aeca9e3e331a1eeef | 
| --- /dev/null | 
| +++ b/ash/wm/app_list_shower_delegate_factory.h | 
| @@ -0,0 +1,40 @@ | 
| +// 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 <memory> | 
| + | 
| +#include "ash/ash_export.h" | 
| +#include "base/macros.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); | 
| 
sky
2016/04/07 20:11:16
nit: as you use unique_ptr on 29, use unique_ptr h
 
mfomitchev
2016/04/08 15:47:40
Oops, replaced with unique_ptr, thanks.
unique_ptr
 
sky
2016/04/08 16:35:33
Indeed. I got the <utility> include from an early
 | 
| + ~AppListShowerDelegateFactory() override; | 
| + | 
| + std::unique_ptr<app_list::AppListShowerDelegate> GetDelegate( | 
| + app_list::AppListShower* shower) override; | 
| + | 
| + private: | 
| + std::unique_ptr<AppListViewDelegateFactory> view_delegate_factory_; | 
| + | 
| + DISALLOW_COPY_AND_ASSIGN(AppListShowerDelegateFactory); | 
| +}; | 
| + | 
| +} // namespace ash | 
| + | 
| +#endif // ASH_WM_APP_LIST_SHOWER_DELEGATE_FACTORY_H_ |