summaryrefslogtreecommitdiffstats
path: root/webkit/glue/window_open_disposition.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/window_open_disposition.h')
-rw-r--r--webkit/glue/window_open_disposition.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/webkit/glue/window_open_disposition.h b/webkit/glue/window_open_disposition.h
new file mode 100644
index 0000000..24495f1
--- /dev/null
+++ b/webkit/glue/window_open_disposition.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_GLUE_WINDOW_OPEN_DISPOSITION_H_
+#define WEBKIT_GLUE_WINDOW_OPEN_DISPOSITION_H_
+
+#include "third_party/WebKit/WebKit/chromium/public/WebNavigationPolicy.h"
+
+enum WindowOpenDisposition {
+ SUPPRESS_OPEN,
+ CURRENT_TAB,
+ // Indicates that only one tab with the url should exist in the same window.
+ SINGLETON_TAB,
+ NEW_FOREGROUND_TAB,
+ NEW_BACKGROUND_TAB,
+ NEW_POPUP,
+ NEW_WINDOW,
+ SAVE_TO_DISK,
+ OFF_THE_RECORD,
+ IGNORE_ACTION
+};
+
+// Conversion function:
+WindowOpenDisposition NavigationPolicyToDisposition(
+ WebKit::WebNavigationPolicy policy);
+
+#endif // WEBKIT_GLUE_WINDOW_OPEN_DISPOSITION_H_