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

Unified Diff: ash/shelf/shelf_alignment_menu.h

Issue 2046563012: mash: Move shelf menu code to //ash/common/shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/shelf/shelf_menu_model.h ('k') | ash/shelf/shelf_alignment_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_alignment_menu.h
diff --git a/ash/shelf/shelf_alignment_menu.h b/ash/shelf/shelf_alignment_menu.h
deleted file mode 100644
index da628c4e73c63da74891b575c0e162f049eea51e..0000000000000000000000000000000000000000
--- a/ash/shelf/shelf_alignment_menu.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2013 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_SHELF_SHELF_ALIGNMENT_MENU_H_
-#define ASH_SHELF_SHELF_ALIGNMENT_MENU_H_
-
-#include "ash/ash_export.h"
-#include "base/macros.h"
-#include "ui/base/models/simple_menu_model.h"
-
-namespace ash {
-
-class WmShelf;
-
-// Submenu for choosing the alignment of the shelf.
-class ASH_EXPORT ShelfAlignmentMenu : public ui::SimpleMenuModel,
- public ui::SimpleMenuModel::Delegate {
- public:
- explicit ShelfAlignmentMenu(WmShelf* wm_shelf);
- ~ShelfAlignmentMenu() override;
-
- // ui::SimpleMenuModel::Delegate overrides:
- bool IsCommandIdChecked(int command_id) const override;
- bool IsCommandIdEnabled(int command_id) const override;
- bool GetAcceleratorForCommandId(int command_id,
- ui::Accelerator* accelerator) override;
- void ExecuteCommand(int command_id, int event_flags) override;
-
- private:
- enum MenuItem {
- // Offset so as not to interfere with other menus.
- MENU_ALIGN_LEFT = 500,
- MENU_ALIGN_RIGHT,
- MENU_ALIGN_BOTTOM,
- };
-
- WmShelf* wm_shelf_;
-
- DISALLOW_COPY_AND_ASSIGN(ShelfAlignmentMenu);
-};
-
-} // namespace ash
-
-#endif // ASH_SHELF_SHELF_ALIGNMENT_MENU_H_
« no previous file with comments | « ash/common/shelf/shelf_menu_model.h ('k') | ash/shelf/shelf_alignment_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698