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

Unified Diff: ui/base/ui_base_types.h

Issue 250943008: Move enum MenuAnchorPosition to reduce deps on menu_item_view.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 6 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
Index: ui/base/ui_base_types.h
diff --git a/ui/base/ui_base_types.h b/ui/base/ui_base_types.h
index fc4ed95bab12ff8cab8604aaec797a02b548379a..d04b13462fa4346e4f40b8a85b06dd24d1f6259d 100644
--- a/ui/base/ui_base_types.h
+++ b/ui/base/ui_base_types.h
@@ -53,6 +53,20 @@ enum MenuSourceType {
UI_BASE_EXPORT MenuSourceType GetMenuSourceTypeForEvent(const ui::Event& event);
+// Where a popup menu should be anchored to for non-RTL languages. The opposite
+// position will be used if base::i18n:IsRTL() is true. The BUBBLE flags are
+// used when the menu should get enclosed by a bubble. Note that BUBBLE flags
+// should only be used with menus which have no children.
+enum MenuAnchorPosition {
sky 2014/04/29 15:30:57 I'm fine with moving MenuAnchorPosition, but it's
tapted 2014/04/30 08:32:56 Done.
+ MENU_ANCHOR_TOPLEFT,
+ MENU_ANCHOR_TOPRIGHT,
+ MENU_ANCHOR_BOTTOMCENTER,
+ MENU_ANCHOR_BUBBLE_LEFT,
+ MENU_ANCHOR_BUBBLE_RIGHT,
+ MENU_ANCHOR_BUBBLE_ABOVE,
+ MENU_ANCHOR_BUBBLE_BELOW
+};
+
} // namespace ui
#endif // UI_BASE_UI_BASE_TYPES_H_
tapted 2014/04/29 11:53:14 <link to interesting file>

Powered by Google App Engine
This is Rietveld 408576698