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

Side by Side Diff: chrome/common/extensions/api/web_view_internal.json

Issue 359493005: Extend contextMenus API to support browser/page actions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 4 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
« no previous file with comments | « chrome/common/extensions/api/context_menus.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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": "webViewInternal", 7 "namespace": "webViewInternal",
8 "description": "none", 8 "description": "none",
9 "compiler_options": { 9 "compiler_options": {
10 "implemented_in": "chrome/browser/extensions/api/web_view/web_view_interna l_api.h" 10 "implemented_in": "chrome/browser/extensions/api/web_view/web_view_interna l_api.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 "checked": { 117 "checked": {
118 "type": "boolean", 118 "type": "boolean",
119 "optional": true, 119 "optional": true,
120 "description": "The initial state of a checkbox or radio item: t rue for selected and false for unselected. Only one radio item can be selected a t a time in a given group of radio items." 120 "description": "The initial state of a checkbox or radio item: t rue for selected and false for unselected. Only one radio item can be selected a t a time in a given group of radio items."
121 }, 121 },
122 "contexts": { 122 "contexts": {
123 "type": "array", 123 "type": "array",
124 "items": { 124 "items": {
125 "type": "string", 125 "type": "string",
126 // |launcher| isn't actually supported, this is listed here so that we can build |contexts| using the same code from chrome.contextMenus API. 126 // |launcher| isn't actually supported, this is listed here so that we can build |contexts| using the same code from chrome.contextMenus API.
127 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio", "launcher"] 127 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio", "launcher", "browser_action", "page_action"]
128 }, 128 },
129 "minItems": 1, 129 "minItems": 1,
130 "optional": true, 130 "optional": true,
131 "description": "List of contexts this menu item will appear in. Defaults to ['page'] if not specified. Specifying ['all'] is equivalent to the c ombination of all other contexts except for 'launcher'. The 'launcher' context i s not supported for <webview>." 131 "description": "List of contexts this menu item will appear in. Defaults to ['page'] if not specified. Specifying ['all'] is equivalent to the c ombination of all other contexts except for 'launcher'. The 'launcher' context i s not supported for <webview>."
132 }, 132 },
133 "onclick": { 133 "onclick": {
134 "type": "function", 134 "type": "function",
135 "optional": true, 135 "optional": true,
136 "description": "A function that will be called back when the men u item is clicked.", 136 "description": "A function that will be called back when the men u item is clicked.",
137 "parameters": [ 137 "parameters": [
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 }, 211 },
212 "checked": { 212 "checked": {
213 "type": "boolean", 213 "type": "boolean",
214 "optional": true 214 "optional": true
215 }, 215 },
216 "contexts": { 216 "contexts": {
217 "type": "array", 217 "type": "array",
218 "items": { 218 "items": {
219 "type": "string", 219 "type": "string",
220 // |launcher| isn't actually supported, this is listed here so that we can build |contexts| using the same code from chrome.contextMenus API. 220 // |launcher| isn't actually supported, this is listed here so that we can build |contexts| using the same code from chrome.contextMenus API.
221 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio", "launcher"] 221 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio", "launcher", "browser_action", "page_action"]
222 }, 222 },
223 "minItems": 1, 223 "minItems": 1,
224 "optional": true, 224 "optional": true,
225 "description": "List of contexts this menu item will appear in. Defaults to ['page'] if not specified. Specifying ['all'] is equivalent to the c ombination of all other contexts except for 'launcher'. The 'launcher' context i s not supported for <webview>." 225 "description": "List of contexts this menu item will appear in. Defaults to ['page'] if not specified. Specifying ['all'] is equivalent to the c ombination of all other contexts except for 'launcher'. The 'launcher' context i s not supported for <webview>."
226 }, 226 },
227 "onclick": { 227 "onclick": {
228 "type": "function", 228 "type": "function",
229 "optional": true 229 "optional": true
230 }, 230 },
231 "parentId": { 231 "parentId": {
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 "events": [ 715 "events": [
716 { 716 {
717 "name": "onClicked", 717 "name": "onClicked",
718 "type": "function", 718 "type": "function",
719 "nodoc": true, 719 "nodoc": true,
720 "$ref": "contextMenusInternal.onClicked" 720 "$ref": "contextMenusInternal.onClicked"
721 } 721 }
722 ] 722 ]
723 } 723 }
724 ] 724 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/context_menus.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698