Chromium Code Reviews| 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..78288fe75f4fad413de8489712aa351c142ee919 |
| --- /dev/null |
| +++ b/chrome/browser/ui/ash/launcher/arc_launcher_context_menu.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
|
khmel
2016/03/29 22:11:17
(c) is not required
lgcheng
2016/03/30 00:01:53
Done.
|
| +// 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 "ash/shelf/shelf_item_types.h" |
|
khmel
2016/03/29 22:11:17
Is it in use? You have the same include in .cc, pl
lgcheng
2016/03/30 00:01:53
Removed. Removed for other .h and .cc when not use
|
| +#include "base/macros.h" |
| +#include "chrome/browser/ui/ash/launcher/launcher_context_menu.h" |
| + |
| +class ChromeLauncherController; |
| + |
| +// Class for context menu shown for desktop shell |
|
khmel
2016/03/29 22:11:17
Showing 'desktop shell'?
lgcheng
2016/03/30 00:01:53
Done.
|
| +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_ |