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

Side by Side 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: address comments from yoz@ 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 [ 5 [
6 { 6 {
7 "namespace": "chromeWebViewInternal", 7 "namespace": "chromeWebViewInternal",
8 "description": "none", 8 "description": "none",
9 "compiler_options": { 9 "compiler_options": {
10 "implemented_in": "chrome/browser/extensions/api/web_view/chrome_web_view_ internal_api.h" 10 "implemented_in": "chrome/browser/extensions/api/web_view/chrome_web_view_ internal_api.h"
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 } 281 }
282 ] 282 ]
283 } 283 }
284 ], 284 ],
285 "events": [ 285 "events": [
286 { 286 {
287 "name": "onClicked", 287 "name": "onClicked",
288 "type": "function", 288 "type": "function",
289 "nodoc": true, 289 "nodoc": true,
290 "$ref": "contextMenusInternal.onClicked" 290 "$ref": "contextMenusInternal.onClicked"
291 },
292 {
293 "name": "onShow",
294 "type": "function",
295 "description": "Fired when context menu is about to be shown. Provides t he ability to cancel the context menu. This can be done by calling <code>event.p reventDefault()</code> from this handler.",
Yoyo Zhou 2015/03/26 20:19:47 You can delete ". This can be done"
lazyboy 2015/03/26 20:32:21 Done.
296 "nodoc": true,
297 "parameters": [
298 {
299 "name": "event",
300 "type": "object",
301 "properties": {
302 "preventDefault": {
303 "type": "function",
304 "parameters": [
305 ]
306 }
307 }
308 }
309 ]
291 } 310 }
292 ] 311 ]
293 } 312 }
294 ] 313 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698