OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_BASE_UI_BASE_TYPES_H_ | 5 #ifndef UI_BASE_UI_BASE_TYPES_H_ |
6 #define UI_BASE_UI_BASE_TYPES_H_ | 6 #define UI_BASE_UI_BASE_TYPES_H_ |
7 | 7 |
8 #include "ui/base/ui_base_export.h" | 8 #include "ui/base/ui_base_export.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 MENU_SOURCE_NONE = 0, | 46 MENU_SOURCE_NONE = 0, |
47 MENU_SOURCE_MOUSE = 1, | 47 MENU_SOURCE_MOUSE = 1, |
48 MENU_SOURCE_KEYBOARD = 2, | 48 MENU_SOURCE_KEYBOARD = 2, |
49 MENU_SOURCE_TOUCH = 3, | 49 MENU_SOURCE_TOUCH = 3, |
50 MENU_SOURCE_TOUCH_EDIT_MENU = 4, | 50 MENU_SOURCE_TOUCH_EDIT_MENU = 4, |
51 MENU_SOURCE_TYPE_LAST = MENU_SOURCE_TOUCH_EDIT_MENU | 51 MENU_SOURCE_TYPE_LAST = MENU_SOURCE_TOUCH_EDIT_MENU |
52 }; | 52 }; |
53 | 53 |
54 UI_BASE_EXPORT MenuSourceType GetMenuSourceTypeForEvent(const ui::Event& event); | 54 UI_BASE_EXPORT MenuSourceType GetMenuSourceTypeForEvent(const ui::Event& event); |
55 | 55 |
56 // Where a popup menu should be anchored to for non-RTL languages. The opposite | |
57 // position will be used if base::i18n:IsRTL() is true. The BUBBLE flags are | |
58 // used when the menu should get enclosed by a bubble. Note that BUBBLE flags | |
59 // should only be used with menus which have no children. | |
60 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.
| |
61 MENU_ANCHOR_TOPLEFT, | |
62 MENU_ANCHOR_TOPRIGHT, | |
63 MENU_ANCHOR_BOTTOMCENTER, | |
64 MENU_ANCHOR_BUBBLE_LEFT, | |
65 MENU_ANCHOR_BUBBLE_RIGHT, | |
66 MENU_ANCHOR_BUBBLE_ABOVE, | |
67 MENU_ANCHOR_BUBBLE_BELOW | |
68 }; | |
69 | |
56 } // namespace ui | 70 } // namespace ui |
57 | 71 |
58 #endif // UI_BASE_UI_BASE_TYPES_H_ | 72 #endif // UI_BASE_UI_BASE_TYPES_H_ |
tapted
2014/04/29 11:53:14
<link to interesting file>
| |
OLD | NEW |