15c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Copyright 2014 The Chromium Authors. All rights reserved.
25c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Use of this source code is governed by a BSD-style license that can be
35c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// found in the LICENSE file.
45c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
55c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu#ifndef UI_VIEWS_CONTROLS_MENU_MENU_TYPES_H_
65c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu#define UI_VIEWS_CONTROLS_MENU_MENU_TYPES_H_
75c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
85c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liunamespace views {
95c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
105c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Where a popup menu should be anchored to for non-RTL languages. The opposite
115c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// position will be used if base::i18n:IsRTL() is true. The BUBBLE flags are
125c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// used when the menu should get enclosed by a bubble. Note that BUBBLE flags
135c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// should only be used with menus which have no children.
145c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liuenum MenuAnchorPosition {
155c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu  MENU_ANCHOR_TOPLEFT,
165c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu  MENU_ANCHOR_TOPRIGHT,
175c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu  MENU_ANCHOR_BOTTOMCENTER,
185c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu  MENU_ANCHOR_BUBBLE_LEFT,
195c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu  MENU_ANCHOR_BUBBLE_RIGHT,
205c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu  MENU_ANCHOR_BUBBLE_ABOVE,
215c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu  MENU_ANCHOR_BUBBLE_BELOW
225c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu};
235c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
245c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu}  // namespace views
255c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
265c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu#endif  // UI_VIEWS_CONTROLS_MENU_MENU_TYPES_H_
27