Index: chrome/browser/ui/app_list/playstore_app_context_menu.h |
diff --git a/chrome/browser/ui/app_list/playstore_app_context_menu.h b/chrome/browser/ui/app_list/playstore_app_context_menu.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d97fd4da373dce67bef9bb415637e42a6b71f07f |
--- /dev/null |
+++ b/chrome/browser/ui/app_list/playstore_app_context_menu.h |
@@ -0,0 +1,41 @@ |
+// Copyright 2017 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_APP_LIST_PLAYSTORE_APP_CONTEXT_MENU_H_ |
+#define CHROME_BROWSER_UI_APP_LIST_PLAYSTORE_APP_CONTEXT_MENU_H_ |
+ |
+#include <string> |
+ |
+#include "base/macros.h" |
+#include "chrome/browser/ui/app_list/app_context_menu.h" |
+ |
+class AppListControllerDelegate; |
+class Profile; |
+ |
+namespace app_list { |
+class AppContextMenuDelegate; |
+} |
+ |
+class PlayStoreAppContextMenu : public app_list::AppContextMenu { |
+ public: |
+ PlayStoreAppContextMenu(app_list::AppContextMenuDelegate* delegate, |
+ Profile* profile, |
+ AppListControllerDelegate* controller); |
+ ~PlayStoreAppContextMenu() override; |
+ |
+ // AppListContextMenu overrides: |
+ void BuildMenu(ui::SimpleMenuModel* menu_model) override; |
+ |
+ // ui::SimpleMenuModel::Delegate overrides: |
+ void ExecuteCommand(int command_id, int event_flags) override; |
+ bool IsCommandIdEnabled(int command_id) const override; |
+ |
+ private: |
+ void IsAppOpen(); |
Luis Héctor Chávez
2017/06/22 15:42:09
These two methods seem to be unused.
Jiaquan He
2017/06/22 19:12:40
Done.
|
+ void ShowPackageInfo(); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(PlayStoreAppContextMenu); |
+}; |
+ |
+#endif /* CHROME_BROWSER_UI_APP_LIST_PLAYSTORE_APP_CONTEXT_MENU_H_ */ |