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

Unified Diff: ash/sysui/context_menu_mus.h

Issue 2271373002: mash: Port mojo:ash_sysui's ContextMenuMus to mojo:ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 4 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
« no previous file with comments | « ash/sysui/BUILD.gn ('k') | ash/sysui/context_menu_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/sysui/context_menu_mus.h
diff --git a/ash/sysui/context_menu_mus.h b/ash/sysui/context_menu_mus.h
deleted file mode 100644
index eb6674533d6aad2b423a5c7651dbf6951c3e813e..0000000000000000000000000000000000000000
--- a/ash/sysui/context_menu_mus.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// 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 ASH_SYSUI_CONTEXT_MENU_MUS_H_
-#define ASH_SYSUI_CONTEXT_MENU_MUS_H_
-
-#include "ash/common/shelf/shelf_alignment_menu.h"
-#include "base/macros.h"
-#include "ui/base/models/simple_menu_model.h"
-
-namespace ash {
-
-class WmShelf;
-
-// Context menu for mash.
-// TODO(msw): Mimic logic in LauncherContextMenu.
-class ContextMenuMus : public ui::SimpleMenuModel,
- public ui::SimpleMenuModel::Delegate {
- public:
- explicit ContextMenuMus(WmShelf* wm_shelf);
- ~ContextMenuMus() override;
-
- // ui::SimpleMenuModel::Delegate overrides:
- bool IsCommandIdChecked(int command_id) const override;
- bool IsCommandIdEnabled(int command_id) const override;
- void ExecuteCommand(int command_id, int event_flags) override;
-
- private:
- enum MenuItem {
- MENU_AUTO_HIDE,
- MENU_ALIGNMENT_MENU,
- MENU_CHANGE_WALLPAPER,
- };
-
- WmShelf* wm_shelf_;
- ShelfAlignmentMenu alignment_menu_;
-
- DISALLOW_COPY_AND_ASSIGN(ContextMenuMus);
-};
-
-} // namespace ash
-
-#endif // ASH_SYSUI_CONTEXT_MENU_MUS_H_
« no previous file with comments | « ash/sysui/BUILD.gn ('k') | ash/sysui/context_menu_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698