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

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

Issue 1055673002: [Extensions API] Remove inline enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 years, 8 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": "webViewInternal", 7 "namespace": "webViewInternal",
8 "description": "none", 8 "description": "none",
9 "compiler_options": { 9 "compiler_options": {
10 "implemented_in": "extensions/browser/api/guest_view/web_view/web_view_int ernal_api.h" 10 "implemented_in": "extensions/browser/api/guest_view/web_view/web_view_int ernal_api.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 }, 75 },
76 { 76 {
77 "name": "per-view", 77 "name": "per-view",
78 "description": "Zoom changes only take effect in this webview, and z oom changes in other webviews will not affect the zooming of this webview. Also, <code>per-view</code> zoom changes are reset on navigation; navigating a webvie w will always load pages with their per-origin zoom factors (within the scope of the partition)." 78 "description": "Zoom changes only take effect in this webview, and z oom changes in other webviews will not affect the zooming of this webview. Also, <code>per-view</code> zoom changes are reset on navigation; navigating a webvie w will always load pages with their per-origin zoom factors (within the scope of the partition)."
79 }, 79 },
80 { 80 {
81 "name": "disabled", 81 "name": "disabled",
82 "description": "Disables all zooming in the webview. The content wil l revert to the default zoom level, and all attempted zoom changes will be ignor ed." 82 "description": "Disables all zooming in the webview. The content wil l revert to the default zoom level, and all attempted zoom changes will be ignor ed."
83 } 83 }
84 ] 84 ]
85 },
86 {
87 "id": "StopFindingAction",
88 "type": "string",
89 "description": "Determines what to do with the active match after the fi nd session has ended. 'clear' will clear the highlighting over the active match; 'keep' will keep the active match highlighted; 'activate' will keep the active match highlighted and simulate a user click on that match.",
90 "enum": ["clear", "keep", "activate"]
91 },
92 {
93 "id": "SetPermissionAction",
94 "type": "string",
95 "enum": ["allow", "deny", "default"]
85 } 96 }
86 ], 97 ],
87 "functions": [ 98 "functions": [
88 { 99 {
89 "name": "executeScript", 100 "name": "executeScript",
90 "type": "function", 101 "type": "function",
91 "description": "Injects JavaScript code into a <webview> page.", 102 "description": "Injects JavaScript code into a <webview> page.",
92 "parameters": [ 103 "parameters": [
93 { 104 {
94 "type": "integer", 105 "type": "integer",
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 "name": "stopFinding", 339 "name": "stopFinding",
329 "type": "function", 340 "type": "function",
330 "description": "Ends the current find session (clearing all highlighting ) and cancels all find requests in progress.", 341 "description": "Ends the current find session (clearing all highlighting ) and cancels all find requests in progress.",
331 "parameters": [ 342 "parameters": [
332 { 343 {
333 "type": "integer", 344 "type": "integer",
334 "name": "instanceId", 345 "name": "instanceId",
335 "description": "The instance ID of the guest <webview> process." 346 "description": "The instance ID of the guest <webview> process."
336 }, 347 },
337 { 348 {
338 "type": "string", 349 "$ref": "StopFindingAction",
339 "name": "action", 350 "name": "action",
340 "description": "Determines what to do with the active match after th e find session has ended. 'clear' will clear the highlighting over the active ma tch; 'keep' will keep the active match highlighted; 'activate' will keep the act ive match highlighted and simulate a user click on that match.", 351 "description": "Determines what to do with the active match after th e find session has ended.",
341 "optional": true, 352 "optional": true
342 "enum": ["clear", "keep", "activate"]
343 } 353 }
344 ] 354 ]
345 }, 355 },
346 { 356 {
347 "name": "loadDataWithBaseUrl", 357 "name": "loadDataWithBaseUrl",
348 "type": "function", 358 "type": "function",
349 "description": "Loads a data URL with a specified base URL used for rela tive links. Optionally, a virtual URL can be provided to be shown to the user in stead of the data URL.", 359 "description": "Loads a data URL with a specified base URL used for rela tive links. Optionally, a virtual URL can be provided to be shown to the user in stead of the data URL.",
350 "parameters": [ 360 "parameters": [
351 { 361 {
352 "type": "integer", 362 "type": "integer",
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 "parameters": [ 485 "parameters": [
476 { 486 {
477 "type": "integer", 487 "type": "integer",
478 "name": "instanceId" 488 "name": "instanceId"
479 }, 489 },
480 { 490 {
481 "type": "integer", 491 "type": "integer",
482 "name": "requestId" 492 "name": "requestId"
483 }, 493 },
484 { 494 {
485 "type": "string", 495 "$ref": "SetPermissionAction",
486 "name": "action", 496 "name": "action"
487 "enum": ["allow", "deny", "default"]
488 }, 497 },
489 { 498 {
490 "type": "string", 499 "type": "string",
491 "name": "userInput", 500 "name": "userInput",
492 "optional": true 501 "optional": true
493 }, 502 },
494 { 503 {
495 "type": "function", 504 "type": "function",
496 "name": "callback", 505 "name": "callback",
497 "optional": true, 506 "optional": true,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 "type": "function", 571 "type": "function",
563 "description": "Called when deletion has completed.", 572 "description": "Called when deletion has completed.",
564 "optional": true, 573 "optional": true,
565 "parameters": [] 574 "parameters": []
566 } 575 }
567 ] 576 ]
568 } 577 }
569 ] 578 ]
570 } 579 }
571 ] 580 ]
OLDNEW
« no previous file with comments | « extensions/common/api/web_request_internal.json ('k') | extensions/renderer/resources/binding.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698