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

Unified Diff: ui/views/test/menu_test_utils.cc

Issue 2790773002: Cleanup MenuRunner API (Closed)
Patch Set: Rebase Created 3 years, 8 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 | « ui/views/test/menu_test_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/menu_test_utils.cc
diff --git a/ui/views/test/menu_test_utils.cc b/ui/views/test/menu_test_utils.cc
index 6e64f7441cd44168f5559b3e2a23272af0507bfc..b103a0153f6ec2df23026fd8a5311f5eba35fe5a 100644
--- a/ui/views/test/menu_test_utils.cc
+++ b/ui/views/test/menu_test_utils.cc
@@ -15,7 +15,6 @@ TestMenuDelegate::TestMenuDelegate()
: execute_command_id_(0),
on_menu_closed_called_count_(0),
on_menu_closed_menu_(nullptr),
- on_menu_closed_run_result_(MenuRunner::MENU_DELETED),
on_perform_drop_called_(false) {}
TestMenuDelegate::~TestMenuDelegate() {}
@@ -33,11 +32,9 @@ void TestMenuDelegate::ExecuteCommand(int id) {
execute_command_id_ = id;
}
-void TestMenuDelegate::OnMenuClosed(MenuItemView* menu,
- MenuRunner::RunResult result) {
+void TestMenuDelegate::OnMenuClosed(MenuItemView* menu) {
on_menu_closed_called_count_++;
on_menu_closed_menu_ = menu;
- on_menu_closed_run_result_ = result;
}
int TestMenuDelegate::OnPerformDrop(MenuItemView* menu,
« no previous file with comments | « ui/views/test/menu_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698