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

Unified Diff: ui/views/controls/menu/menu_runner.cc

Issue 2861873002: Align the base of the shelf's context menu to the top edge of the shelf. (Closed)
Patch Set: Rebased and adressed comments. Created 3 years, 7 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
Index: ui/views/controls/menu/menu_runner.cc
diff --git a/ui/views/controls/menu/menu_runner.cc b/ui/views/controls/menu/menu_runner.cc
index 991f76bc48a89261a695e03da2ee81a803758506..3a522e8579a6a4e4266dce42c3eb88e596898ef4 100644
--- a/ui/views/controls/menu/menu_runner.cc
+++ b/ui/views/controls/menu/menu_runner.cc
@@ -64,6 +64,11 @@ void MenuRunner::RunMenuAt(Widget* parent,
case ui::MENU_SOURCE_TOUCH_EDIT_MENU:
anchor = MENU_ANCHOR_BOTTOMCENTER;
break;
+ case ui::MENU_SOURCE_TOUCH_SIDE_ANCHOR:
+ anchor = MENU_ANCHOR_SIDECENTER;
+ break;
+ case ui::MENU_SOURCE_TOUCH_BOTTOM_ANCHOR:
+ anchor = MENU_ANCHOR_FIXED_BOTTOMCENTER;
default:
break;
}

Powered by Google App Engine
This is Rietveld 408576698