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

Unified Diff: chrome/common/extensions/api/chrome_web_view_internal.json

Issue 1026383003: <webview>: make context menus cancellable using JS API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add todo for documentation Created 5 years, 9 months 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
Index: chrome/common/extensions/api/chrome_web_view_internal.json
diff --git a/chrome/common/extensions/api/chrome_web_view_internal.json b/chrome/common/extensions/api/chrome_web_view_internal.json
index 69729c5d6a094c9c7f1ce0e3bbb5cd0abe25f111..f7b15aafbf1da9a56dc0a711fc2d4c78d2877e77 100644
--- a/chrome/common/extensions/api/chrome_web_view_internal.json
+++ b/chrome/common/extensions/api/chrome_web_view_internal.json
@@ -288,6 +288,25 @@
"type": "function",
"nodoc": true,
"$ref": "contextMenusInternal.onClicked"
+ },
+ {
+ "name": "onShow",
+ "type": "function",
+ "description": "Event fired when context menu is about to be shown, provides ability to cancel context menu by preventDefault.",
Yoyo Zhou 2015/03/26 19:50:44 Please rewrite this: Fired when context menu is a
lazyboy 2015/03/26 20:13:07 Done.
+ "nodoc": true,
+ "parameters": [
+ {
+ "name": "event",
+ "type": "object",
+ "properties": {
+ "preventDefault": {
+ "type": "function",
+ "parameters": [
+ ]
+ }
+ }
+ }
+ ]
}
]
}

Powered by Google App Engine
This is Rietveld 408576698