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

Side by Side Diff: chrome/renderer/resources/extension_process_bindings.js

Issue 1530002: Move history API out of experimental. Allow extensions to override history page. (Closed)
Patch Set: Rebase for commit. Created 10 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 (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
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 })();
OLDNEW
« no previous file with comments | « chrome/common/page_transition_types.cc ('k') | chrome/renderer/resources/renderer_extension_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698