OLD | NEW |
1 // Copyright (c) 2009 The chrome Authors. All rights reserved. | 1 // Copyright (c) 2009 The chrome 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 | 544 |
545 setupBrowserActionEvent(extensionId); | 545 setupBrowserActionEvent(extensionId); |
546 setupPageActionEvents(extensionId); | 546 setupPageActionEvents(extensionId); |
547 setupToolstripEvents(GetRenderViewId()); | 547 setupToolstripEvents(GetRenderViewId()); |
548 setupPopupEvents(GetRenderViewId()); | 548 setupPopupEvents(GetRenderViewId()); |
549 }); | 549 }); |
550 | 550 |
551 if (!chrome.experimental) | 551 if (!chrome.experimental) |
552 chrome.experimental = {}; | 552 chrome.experimental = {}; |
553 | 553 |
| 554 if (!chrome.experimental.accessibility) |
| 555 chrome.experimental.accessibility = {}; |
| 556 |
554 if (!chrome.experimental.history) | 557 if (!chrome.experimental.history) |
555 chrome.experimental.history = {}; | 558 chrome.experimental.history = {}; |
556 | 559 |
557 chrome.experimental.history.transistionType = { | 560 chrome.experimental.history.transistionType = { |
558 LINK: 0, | 561 LINK: 0, |
559 TYPED: 1, | 562 TYPED: 1, |
560 AUTO_BOOKMARK: 2, | 563 AUTO_BOOKMARK: 2, |
561 AUTO_SUBFRAME: 3, | 564 AUTO_SUBFRAME: 3, |
562 MANUAL_SUBFRAME: 4, | 565 MANUAL_SUBFRAME: 4, |
563 GENERATED: 5, | 566 GENERATED: 5, |
564 START_PAGE: 6, | 567 START_PAGE: 6, |
565 FORM_SUBMIT: 7, | 568 FORM_SUBMIT: 7, |
566 RELOAD: 8, | 569 RELOAD: 8, |
567 KEYWORD: 9, | 570 KEYWORD: 9, |
568 KEYWORD_GENERATED: 10 | 571 KEYWORD_GENERATED: 10 |
569 }; | 572 }; |
570 })(); | 573 })(); |
OLD | NEW |