blob: 160dd5ae3d1f9c5b4a9e3304511234f1931dc909 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_CONTROLS_MENU_MENU_TYPES_H_
#define UI_VIEWS_CONTROLS_MENU_MENU_TYPES_H_
namespace views {
// 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 {
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 views
#endif // UI_VIEWS_CONTROLS_MENU_MENU_TYPES_H_