OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_WINDOW_OPEN_DISPOSITION_H_ | 5 #ifndef UI_BASE_WINDOW_OPEN_DISPOSITION_H_ |
6 #define UI_BASE_WINDOW_OPEN_DISPOSITION_H_ | 6 #define UI_BASE_WINDOW_OPEN_DISPOSITION_H_ |
7 | 7 |
8 #include "ui/base/ui_base_export.h" | 8 #include "ui/base/ui_base_export.h" |
9 | 9 |
10 // A Java counterpart will be generated for this enum. | |
11 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui | |
12 enum class WindowOpenDisposition { | 10 enum class WindowOpenDisposition { |
13 UNKNOWN, | 11 UNKNOWN, |
14 CURRENT_TAB, | 12 CURRENT_TAB, |
15 // Indicates that only one tab with the url should exist in the same window. | 13 // Indicates that only one tab with the url should exist in the same window. |
16 SINGLETON_TAB, | 14 SINGLETON_TAB, |
17 NEW_FOREGROUND_TAB, | 15 NEW_FOREGROUND_TAB, |
18 NEW_BACKGROUND_TAB, | 16 NEW_BACKGROUND_TAB, |
19 NEW_POPUP, | 17 NEW_POPUP, |
20 NEW_WINDOW, | 18 NEW_WINDOW, |
21 SAVE_TO_DISK, | 19 SAVE_TO_DISK, |
(...skipping 15 matching lines...) Expand all Loading... |
37 bool shift_key); | 35 bool shift_key); |
38 | 36 |
39 // Translates event flags into what kind of disposition they represents. | 37 // Translates event flags into what kind of disposition they represents. |
40 // For example, a middle click would mean to open a background tab. | 38 // For example, a middle click would mean to open a background tab. |
41 // event_flags are the flags as understood by ui::MouseEvent. | 39 // event_flags are the flags as understood by ui::MouseEvent. |
42 UI_BASE_EXPORT WindowOpenDisposition DispositionFromEventFlags(int event_flags); | 40 UI_BASE_EXPORT WindowOpenDisposition DispositionFromEventFlags(int event_flags); |
43 | 41 |
44 } // namespace ui | 42 } // namespace ui |
45 | 43 |
46 #endif // UI_BASE_WINDOW_OPEN_DISPOSITION_H_ | 44 #endif // UI_BASE_WINDOW_OPEN_DISPOSITION_H_ |
OLD | NEW |