| Index: ui/base/window_open_disposition.h
|
| ===================================================================
|
| --- ui/base/window_open_disposition.h (revision 178083)
|
| +++ ui/base/window_open_disposition.h (working copy)
|
| @@ -5,6 +5,8 @@
|
| #ifndef UI_BASE_WINDOW_OPEN_DISPOSITION_H_
|
| #define UI_BASE_WINDOW_OPEN_DISPOSITION_H_
|
|
|
| +#include "ui/base/ui_export.h"
|
| +
|
| enum WindowOpenDisposition {
|
| UNKNOWN,
|
| SUPPRESS_OPEN,
|
| @@ -20,4 +22,22 @@
|
| IGNORE_ACTION
|
| };
|
|
|
| +namespace ui {
|
| +
|
| +// Translates event flags from a click on a link into the user's desired
|
| +// window disposition. For example, a middle click would mean to open
|
| +// a background tab.
|
| +UI_EXPORT WindowOpenDisposition DispositionFromClick(bool middle_button,
|
| + bool alt_key,
|
| + bool ctrl_key,
|
| + bool meta_key,
|
| + bool shift_key);
|
| +
|
| +// Translates event flags into what kind of disposition they represents.
|
| +// For example, a middle click would mean to open a background tab.
|
| +// event_flags are the flags as understood by ui::MouseEvent.
|
| +UI_EXPORT WindowOpenDisposition DispositionFromEventFlags(int event_flags);
|
| +
|
| +} // namespace ui
|
| +
|
| #endif // UI_BASE_WINDOW_OPEN_DISPOSITION_H_
|
|
|