| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This script contains privileged chrome extension related javascript APIs. | 5 // This script contains privileged chrome extension related javascript APIs. |
| 6 // It is loaded by pages whose URL has the chrome-extension protocol. | 6 // It is loaded by pages whose URL has the chrome-extension protocol. |
| 7 | 7 |
| 8 var chrome = chrome || {}; | 8 var chrome = chrome || {}; |
| 9 (function() { | 9 (function() { |
| 10 native function GetExtensionAPIDefinition(); | 10 native function GetExtensionAPIDefinition(); |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 } | 506 } |
| 507 }, | 507 }, |
| 508 giveFocus: { | 508 giveFocus: { |
| 509 type: "boolean", | 509 type: "boolean", |
| 510 optional: true | 510 optional: true |
| 511 }, | 511 }, |
| 512 borderStyle: { | 512 borderStyle: { |
| 513 type: "string", | 513 type: "string", |
| 514 optional: true, | 514 optional: true, |
| 515 enum: ["bubble", "rectangle"] | 515 enum: ["bubble", "rectangle"] |
| 516 }, |
| 517 maxSize: { |
| 518 type: "object", |
| 519 optional: true, |
| 520 properties: { |
| 521 width: { |
| 522 type: "integer", optional: true, minimum: 32 |
| 523 }, |
| 524 height: { |
| 525 type: "integer", optional: true, minimum: 32 |
| 526 } |
| 527 } |
| 516 } | 528 } |
| 517 } | 529 } |
| 518 }, | 530 }, |
| 519 this.definition.parameters[2] | 531 this.definition.parameters[2] |
| 520 ]; | 532 ]; |
| 521 return sendRequest(this.name, | 533 return sendRequest(this.name, |
| 522 [url, | 534 [url, |
| 523 { | 535 { |
| 524 domAnchor: getAbsoluteRect(showDetails.relativeTo), | 536 domAnchor: getAbsoluteRect(showDetails.relativeTo), |
| 525 giveFocus: showDetails.giveFocus, | 537 giveFocus: showDetails.giveFocus, |
| 526 borderStyle: showDetails.borderStyle | 538 borderStyle: showDetails.borderStyle, |
| 539 maxSize: showDetails.maxSize |
| 527 }, | 540 }, |
| 528 callback], | 541 callback], |
| 529 internalSchema); | 542 internalSchema); |
| 530 }; | 543 }; |
| 531 | 544 |
| 532 apiFunctions["experimental.extension.getPopupView"].handleRequest = | 545 apiFunctions["experimental.extension.getPopupView"].handleRequest = |
| 533 function() { | 546 function() { |
| 534 return GetPopupView(); | 547 return GetPopupView(); |
| 535 }; | 548 }; |
| 536 | 549 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 | 727 |
| 715 if (!chrome.experimental) | 728 if (!chrome.experimental) |
| 716 chrome.experimental = {}; | 729 chrome.experimental = {}; |
| 717 | 730 |
| 718 if (!chrome.experimental.accessibility) | 731 if (!chrome.experimental.accessibility) |
| 719 chrome.experimental.accessibility = {}; | 732 chrome.experimental.accessibility = {}; |
| 720 | 733 |
| 721 if (!chrome.experimental.tts) | 734 if (!chrome.experimental.tts) |
| 722 chrome.experimental.tts = {}; | 735 chrome.experimental.tts = {}; |
| 723 })(); | 736 })(); |
| OLD | NEW |