| 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 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 setupToolstripEvents(GetRenderViewId()); | 612 setupToolstripEvents(GetRenderViewId()); |
| 613 setupPopupEvents(GetRenderViewId()); | 613 setupPopupEvents(GetRenderViewId()); |
| 614 setupHiddenContextMenuEvent(extensionId); | 614 setupHiddenContextMenuEvent(extensionId); |
| 615 }); | 615 }); |
| 616 | 616 |
| 617 if (!chrome.experimental) | 617 if (!chrome.experimental) |
| 618 chrome.experimental = {}; | 618 chrome.experimental = {}; |
| 619 | 619 |
| 620 if (!chrome.experimental.accessibility) | 620 if (!chrome.experimental.accessibility) |
| 621 chrome.experimental.accessibility = {}; | 621 chrome.experimental.accessibility = {}; |
| 622 | |
| 623 if (!chrome.experimental.history) | |
| 624 chrome.experimental.history = {}; | |
| 625 | |
| 626 chrome.experimental.history.transitionType = { | |
| 627 LINK: 0, | |
| 628 TYPED: 1, | |
| 629 AUTO_BOOKMARK: 2, | |
| 630 AUTO_SUBFRAME: 3, | |
| 631 MANUAL_SUBFRAME: 4, | |
| 632 GENERATED: 5, | |
| 633 START_PAGE: 6, | |
| 634 FORM_SUBMIT: 7, | |
| 635 RELOAD: 8, | |
| 636 KEYWORD: 9, | |
| 637 KEYWORD_GENERATED: 10 | |
| 638 }; | |
| 639 })(); | 622 })(); |
| OLD | NEW |