Index: chrome/browser/ui/webui/web_ui_util.h |
diff --git a/chrome/browser/ui/webui/web_ui_util.h b/chrome/browser/ui/webui/web_ui_util.h |
index 2a7743fcb7f485176cf065c217af61bcb021e335..99a2b46570adab2f6a38aef462b94d3d3e8ebbff 100644 |
--- a/chrome/browser/ui/webui/web_ui_util.h |
+++ b/chrome/browser/ui/webui/web_ui_util.h |
@@ -8,6 +8,9 @@ |
#include <string> |
+#include "base/values.h" |
+#include "webkit/glue/window_open_disposition.h" |
+ |
class SkBitmap; |
namespace web_ui_util { |
@@ -24,6 +27,12 @@ std::string GetImageDataUrl(const SkBitmap& bitmap); |
// |resource_id|. |
std::string GetImageDataUrlFromResource(int resource_id); |
+// Extracts a disposition from click event arguments. |args| should contain |
+// an integer button and booleans alt key, ctrl key, meta key, and shift key |
+// (in that order), starting at |start_index|. |
+WindowOpenDisposition GetDispositionFromClick(const ListValue* args, |
+ int start_index); |
+ |
} // namespace web_ui_util |
#endif // CHROME_BROWSER_UI_WEBUI_WEB_UI_UTIL_H_ |