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

Side by Side Diff: chrome/browser/ui/app_list/playstore_app_context_menu.h

Issue 2929273002: Add the Play Store app search to the launcher. (Closed)
Patch Set: Finished comments and merged with the context menu CL. Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 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_APP_LIST_PLAYSTORE_APP_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_UI_APP_LIST_PLAYSTORE_APP_CONTEXT_MENU_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11 #include "chrome/browser/ui/app_list/app_context_menu.h"
12
13 class AppListControllerDelegate;
14 class Profile;
15
16 namespace app_list {
17 class AppContextMenuDelegate;
18 }
19
20 class PlayStoreAppContextMenu : public app_list::AppContextMenu {
21 public:
22 PlayStoreAppContextMenu(app_list::AppContextMenuDelegate* delegate,
23 Profile* profile,
24 AppListControllerDelegate* controller);
25 ~PlayStoreAppContextMenu() override;
26
27 // AppListContextMenu overrides:
28 void BuildMenu(ui::SimpleMenuModel* menu_model) override;
29
30 // ui::SimpleMenuModel::Delegate overrides:
31 void ExecuteCommand(int command_id, int event_flags) override;
32 bool IsCommandIdEnabled(int command_id) const override;
33
34 private:
35 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.
36 void ShowPackageInfo();
37
38 DISALLOW_COPY_AND_ASSIGN(PlayStoreAppContextMenu);
39 };
40
41 #endif /* CHROME_BROWSER_UI_APP_LIST_PLAYSTORE_APP_CONTEXT_MENU_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698