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

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

Issue 2811049: Add ability to limit when context menu items appear with url patterns.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 2531 matching lines...) Expand 10 before | Expand all | Expand 10 after
2542 }, 2542 },
2543 "onclick": { 2543 "onclick": {
2544 "type": "function", 2544 "type": "function",
2545 "optional": true, 2545 "optional": true,
2546 "description": "Function to be called back when your menu item i s clicked." 2546 "description": "Function to be called back when your menu item i s clicked."
2547 }, 2547 },
2548 "parentId": { 2548 "parentId": {
2549 "type": "integer", 2549 "type": "integer",
2550 "optional": true, 2550 "optional": true,
2551 "description": "The id of a parent menu item - this makes the it em a child of a previously added item." 2551 "description": "The id of a parent menu item - this makes the it em a child of a previously added item."
2552 },
2553 "documentUrlPatterns": {
2554 "type": "array",
2555 "items": {"type": "string"},
2556 "optional": true,
2557 "description": "Lets you restrict the item to only apply to docu ments whose URL matches one of the given patterns. (This applies to frames as we ll). For details on the format of a pattern, see <a href='match_patterns.html'>M atch Patterns</a>."
2558 },
2559 "targetUrlPatterns": {
2560 "type": "array",
2561 "items": {"type": "string"},
2562 "optional": true,
2563 "description": "Similar to documentUrlPatterns, but this lets yo u filter based on the src attribute of img/audio/video tags and the href of anch or tags."
2552 } 2564 }
2553 } 2565 }
2554 }, 2566 },
2555 { 2567 {
2556 "type": "function", 2568 "type": "function",
2557 "name": "callback", 2569 "name": "callback",
2558 "optional": true, 2570 "optional": true,
2559 "description": "Called when the item has been created in the browser . If there were any problems creating the item, details will be avilable in chro me.extension.lastError.", 2571 "description": "Called when the item has been created in the browser . If there were any problems creating the item, details will be avilable in chro me.extension.lastError.",
2560 "parameters": [] 2572 "parameters": []
2561 } 2573 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
2595 "optional": true 2607 "optional": true
2596 }, 2608 },
2597 "onclick": { 2609 "onclick": {
2598 "type": "function", 2610 "type": "function",
2599 "optional": true 2611 "optional": true
2600 }, 2612 },
2601 "parentId": { 2613 "parentId": {
2602 "type": "integer", 2614 "type": "integer",
2603 "optional": true, 2615 "optional": true,
2604 "description": "Note: you cannot change an item to be a child of one of it's own descendants." 2616 "description": "Note: you cannot change an item to be a child of one of it's own descendants."
2617 },
2618 "documentUrlPatterns": {
2619 "type": "array",
2620 "items": {"type": "string"},
2621 "optional": true
2622 },
2623 "targetUrlPatterns": {
2624 "type": "array",
2625 "items": {"type": "string"},
2626 "optional": true
2605 } 2627 }
2606 } 2628 }
2607 }, 2629 },
2608 { 2630 {
2609 "type": "function", 2631 "type": "function",
2610 "name": "callback", 2632 "name": "callback",
2611 "optional": true, 2633 "optional": true,
2612 "parameters": [], 2634 "parameters": [],
2613 "description": "Called when the context menu has been updated." 2635 "description": "Called when the context menu has been updated."
2614 } 2636 }
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
3189 { 3211 {
3190 "name": "onInputCancelled", 3212 "name": "onInputCancelled",
3191 "perExtensionEvent": true, 3213 "perExtensionEvent": true,
3192 "type": "function", 3214 "type": "function",
3193 "description": "User has ended the keyword input session without accepti ng the input.", 3215 "description": "User has ended the keyword input session without accepti ng the input.",
3194 "parameters": [] 3216 "parameters": []
3195 } 3217 }
3196 ] 3218 ]
3197 } 3219 }
3198 ] 3220 ]
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/common/extensions/docs/contextMenus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698