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

Unified Diff: ash/common/shelf/shelf_application_menu_model.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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_alignment_menu.cc ('k') | ash/common/shelf/shelf_application_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_application_menu_model.h
diff --git a/ash/common/shelf/shelf_application_menu_model.h b/ash/common/shelf/shelf_application_menu_model.h
deleted file mode 100644
index 7abe8b54e247b73c86f752a0f05295dae64415d8..0000000000000000000000000000000000000000
--- a/ash/common/shelf/shelf_application_menu_model.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// 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 ASH_COMMON_SHELF_SHELF_APPLICATION_MENU_MODEL_H_
-#define ASH_COMMON_SHELF_SHELF_APPLICATION_MENU_MODEL_H_
-
-#include <memory>
-#include <vector>
-
-#include "ash/ash_export.h"
-#include "ash/public/cpp/shelf_application_menu_item.h"
-#include "base/macros.h"
-#include "ui/base/models/simple_menu_model.h"
-
-namespace ash {
-
-class ShelfApplicationMenuModelTestAPI;
-class ShelfItemDelegate;
-
-// A menu model listing open applications associated with a shelf item. Layout:
-// +---------------------------+
-// | |
-// | App Title |
-// | |
-// | [Icon] Item Title |
-// | [Icon] Item Title |
-// | |
-// +---------------------------+
-class ASH_EXPORT ShelfApplicationMenuModel
- : public ui::SimpleMenuModel,
- public ui::SimpleMenuModel::Delegate {
- public:
- // Makes a menu with a |title|, separators, and |items| for |delegate|.
- // |delegate| may be null in unit tests that do not execute commands.
- ShelfApplicationMenuModel(const base::string16& title,
- ShelfAppMenuItemList items,
- ShelfItemDelegate* delegate);
- ~ShelfApplicationMenuModel() override;
-
- // ui::SimpleMenuModel::Delegate:
- bool IsCommandIdChecked(int command_id) const override;
- bool IsCommandIdEnabled(int command_id) const override;
- void ExecuteCommand(int command_id, int event_flags) override;
-
- private:
- friend class ShelfApplicationMenuModelTestAPI;
-
- // Records UMA metrics when a menu item is selected.
- void RecordMenuItemSelectedMetrics(int command_id,
- int num_menu_items_enabled);
-
- // The list of menu items as returned from the shelf item's controller.
- ShelfAppMenuItemList items_;
-
- // The shelf item delegate that created the menu and executes its commands.
- ShelfItemDelegate* delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(ShelfApplicationMenuModel);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SHELF_SHELF_APPLICATION_MENU_MODEL_H_
« no previous file with comments | « ash/common/shelf/shelf_alignment_menu.cc ('k') | ash/common/shelf/shelf_application_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698