OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EVENT_DISPOSITION_H__ |
| 6 #define CHROME_BROWSER_EVENT_DISPOSITION_H__ |
| 7 #pragma once |
| 8 |
| 9 #include "webkit/glue/window_open_disposition.h" |
| 10 |
| 11 namespace browser { |
| 12 |
| 13 // Translates event flags into what kind of disposition they represents. |
| 14 // For example, a middle click would mean to open a background tab. |
| 15 // event_flags are the flags as understood by views::MouseEvent. |
| 16 WindowOpenDisposition DispositionFromEventFlags(int event_flags); |
| 17 |
| 18 } |
| 19 |
| 20 #endif // CHROME_BROWSER_EVENT_DISPOSITION_H__ |
OLD | NEW |