• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_TYPES_H_
6 #define UI_VIEWS_CONTROLS_MENU_MENU_TYPES_H_
7 
8 namespace views {
9 
10 // Where a popup menu should be anchored to for non-RTL languages. The opposite
11 // position will be used if base::i18n:IsRTL() is true. The BUBBLE flags are
12 // used when the menu should get enclosed by a bubble. Note that BUBBLE flags
13 // should only be used with menus which have no children.
14 enum MenuAnchorPosition {
15   MENU_ANCHOR_TOPLEFT,
16   MENU_ANCHOR_TOPRIGHT,
17   MENU_ANCHOR_BOTTOMCENTER,
18   MENU_ANCHOR_BUBBLE_LEFT,
19   MENU_ANCHOR_BUBBLE_RIGHT,
20   MENU_ANCHOR_BUBBLE_ABOVE,
21   MENU_ANCHOR_BUBBLE_BELOW
22 };
23 
24 }  // namespace views
25 
26 #endif  // UI_VIEWS_CONTROLS_MENU_MENU_TYPES_H_
27