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

Unified Diff: chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.h

Issue 1973603002: arc: Make Play Store item persistance in shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.h
diff --git a/chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.h b/chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..e9f1323eb51d91e92200b4313ffd30554252825b
--- /dev/null
+++ b/chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.h
@@ -0,0 +1,43 @@
+// Copyright (c) 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 CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_PLAYSTORE_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_
+#define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_PLAYSTORE_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_
+
+#include <memory>
+
+#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.
+#include "base/macros.h"
+#include "chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h"
+#include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h"
+
+class ArcAppLauncher;
+class ChromeLauncherController;
+
+namespace ash {
+class ShelfMenuModel;
xiyuan 2016/05/11 22:10:08 nit: not needed?
khmel 2016/05/12 18:28:06 Done.
+}
+
+namespace ui {
+class Event;
xiyuan 2016/05/11 22:10:08 nit: not needed?
khmel 2016/05/12 18:28:06 Done.
+}
+
+class ArcPlaystoreShortcutLauncherItemController
+ : public AppShortcutLauncherItemController {
+ public:
+ ArcPlaystoreShortcutLauncherItemController(
+ ChromeLauncherController* controller);
+ ~ArcPlaystoreShortcutLauncherItemController() override;
+
+ // LauncherItemController overrides:
+ ash::ShelfItemDelegate::PerformedAction Activate(
+ ash::LaunchSource source) override;
+
+ private:
+ std::unique_ptr<ArcAppLauncher> playstore_launcher_;
+
+ DISALLOW_COPY_AND_ASSIGN(ArcPlaystoreShortcutLauncherItemController);
+};
+
+#endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_PLAYSTORE_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698