Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1338)

Unified Diff: chrome/browser/ui/webui/web_ui_util.h

Issue 8662051: retry r112077 - recently closed menu: respect middle click (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.cc ('k') | chrome/browser/ui/webui/web_ui_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.cc ('k') | chrome/browser/ui/webui/web_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698