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

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

Issue 1823923002: arc: Support running Arc app in shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased + few nits Created 4 years, 9 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_app_window_launcher_item_controller.h
diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..e6c13de1ff6a7d3ff548a8ebd3440987c4199670
--- /dev/null
+++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h
@@ -0,0 +1,32 @@
+// 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 CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_
+#define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_
+
+#include <string>
+
+#include "base/macros.h"
+#include "chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h"
+
+class ChromeLauncherController;
+
+class ArcAppWindowLauncherItemController
+ : public AppWindowLauncherItemController {
+ public:
+ ArcAppWindowLauncherItemController(const std::string& app_id,
+ ChromeLauncherController* controller);
+
+ ~ArcAppWindowLauncherItemController() override;
+
+ // LauncherItemController overrides:
+ base::string16 GetTitle() override;
+ ash::ShelfMenuModel* CreateApplicationMenu(int event_flags) override;
+ ChromeLauncherAppMenuItems GetApplicationList(int event_flags) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherItemController);
+};
+
+#endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698