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

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

Issue 1838263002: Arc app integration in shelf launcher context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor and comments&inlucdes cleanup 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_launcher_context_menu.h
diff --git a/chrome/browser/ui/ash/launcher/arc_launcher_context_menu.h b/chrome/browser/ui/ash/launcher/arc_launcher_context_menu.h
new file mode 100644
index 0000000000000000000000000000000000000000..f91439e8844ad6aeec64932b06d2a198080ef770
--- /dev/null
+++ b/chrome/browser/ui/ash/launcher/arc_launcher_context_menu.h
@@ -0,0 +1,28 @@
+// 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_LAUNCHER_CONTEXT_MENU_H_
+#define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_LAUNCHER_CONTEXT_MENU_H_
+
+#include "base/macros.h"
+#include "chrome/browser/ui/ash/launcher/launcher_context_menu.h"
+
khmel 2016/03/30 00:58:46 namespace ash { class Shelf; class ShelfItem; }
lgcheng 2016/03/30 02:06:25 Use
+class ChromeLauncherController;
+
+// Class for context menu which is shown for Arc app in the shelf.
+class ArcLauncherContextMenu : public LauncherContextMenu {
+ public:
+ ArcLauncherContextMenu(ChromeLauncherController* controller,
+ const ash::ShelfItem* item,
+ ash::Shelf* shelf);
+ ~ArcLauncherContextMenu() override;
+ // LauncherContextMenu overrides:
+ void Init() override;
+ // ui::SimpleMenuModel::Delegate overrides:
+ bool IsCommandIdEnabled(int command_id) const override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ArcLauncherContextMenu);
+};
+#endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_LAUNCHER_CONTEXT_MENU_H_

Powered by Google App Engine
This is Rietveld 408576698