| Index: ui/views/controls/menu/menu_types.h
|
| diff --git a/ui/views/controls/menu/menu_types.h b/ui/views/controls/menu/menu_types.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..160dd5ae3d1f9c5b4a9e3304511234f1931dc909
|
| --- /dev/null
|
| +++ b/ui/views/controls/menu/menu_types.h
|
| @@ -0,0 +1,26 @@
|
| +// 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_
|
|
|