Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 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 CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_PLAYSTORE_SHORTCUT_LAUNCHER_ITEM_CONT ROLLER_H_ | |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_PLAYSTORE_SHORTCUT_LAUNCHER_ITEM_CONT ROLLER_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "ash/shelf/shelf_item_delegate.h" | |
|
xiyuan
2016/05/11 22:10:08
nit: not needed since we include app_shortcut_laun
khmel
2016/05/12 18:28:06
Done.
| |
| 11 #include "base/macros.h" | |
| 12 #include "chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h " | |
| 13 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h" | |
| 14 | |
| 15 class ArcAppLauncher; | |
| 16 class ChromeLauncherController; | |
| 17 | |
| 18 namespace ash { | |
| 19 class ShelfMenuModel; | |
|
xiyuan
2016/05/11 22:10:08
nit: not needed?
khmel
2016/05/12 18:28:06
Done.
| |
| 20 } | |
| 21 | |
| 22 namespace ui { | |
| 23 class Event; | |
|
xiyuan
2016/05/11 22:10:08
nit: not needed?
khmel
2016/05/12 18:28:06
Done.
| |
| 24 } | |
| 25 | |
| 26 class ArcPlaystoreShortcutLauncherItemController | |
| 27 : public AppShortcutLauncherItemController { | |
| 28 public: | |
| 29 ArcPlaystoreShortcutLauncherItemController( | |
| 30 ChromeLauncherController* controller); | |
| 31 ~ArcPlaystoreShortcutLauncherItemController() override; | |
| 32 | |
| 33 // LauncherItemController overrides: | |
| 34 ash::ShelfItemDelegate::PerformedAction Activate( | |
| 35 ash::LaunchSource source) override; | |
| 36 | |
| 37 private: | |
| 38 std::unique_ptr<ArcAppLauncher> playstore_launcher_; | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(ArcPlaystoreShortcutLauncherItemController); | |
| 41 }; | |
| 42 | |
| 43 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_PLAYSTORE_SHORTCUT_LAUNCHER_ITEM_C ONTROLLER_H_ | |
| OLD | NEW |