| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 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 WEBKIT_GLUE_WINDOW_OPEN_DISPOSITION_H_ | 5 #ifndef WEBKIT_GLUE_WINDOW_OPEN_DISPOSITION_H_ |
| 6 #define WEBKIT_GLUE_WINDOW_OPEN_DISPOSITION_H_ | 6 #define WEBKIT_GLUE_WINDOW_OPEN_DISPOSITION_H_ |
| 7 | 7 |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" |
| 9 #include "webkit/glue/webkit_glue_export.h" |
| 9 | 10 |
| 10 enum WindowOpenDisposition { | 11 enum WindowOpenDisposition { |
| 11 UNKNOWN, | 12 UNKNOWN, |
| 12 SUPPRESS_OPEN, | 13 SUPPRESS_OPEN, |
| 13 CURRENT_TAB, | 14 CURRENT_TAB, |
| 14 // Indicates that only one tab with the url should exist in the same window. | 15 // Indicates that only one tab with the url should exist in the same window. |
| 15 SINGLETON_TAB, | 16 SINGLETON_TAB, |
| 16 NEW_FOREGROUND_TAB, | 17 NEW_FOREGROUND_TAB, |
| 17 NEW_BACKGROUND_TAB, | 18 NEW_BACKGROUND_TAB, |
| 18 NEW_POPUP, | 19 NEW_POPUP, |
| 19 NEW_WINDOW, | 20 NEW_WINDOW, |
| 20 SAVE_TO_DISK, | 21 SAVE_TO_DISK, |
| 21 OFF_THE_RECORD, | 22 OFF_THE_RECORD, |
| 22 IGNORE_ACTION | 23 IGNORE_ACTION |
| 23 }; | 24 }; |
| 24 | 25 |
| 25 // Conversion function: | 26 // Conversion function: |
| 26 WindowOpenDisposition NavigationPolicyToDisposition( | 27 WEBKIT_GLUE_EXPORT WindowOpenDisposition NavigationPolicyToDisposition( |
| 27 WebKit::WebNavigationPolicy policy); | 28 WebKit::WebNavigationPolicy policy); |
| 28 | 29 |
| 29 #endif // WEBKIT_GLUE_WINDOW_OPEN_DISPOSITION_H_ | 30 #endif // WEBKIT_GLUE_WINDOW_OPEN_DISPOSITION_H_ |
| OLD | NEW |