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

Side by Side Diff: chrome/browser/resources/inspect/inspect.js

Issue 22314003: NavigationController prototype Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NavController prototype - chrome side Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/startup/startup_browser_creator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 var MIN_VERSION_TAB_CLOSE = 25; 5 var MIN_VERSION_TAB_CLOSE = 25;
6 var MIN_VERSION_TARGET_ID = 26; 6 var MIN_VERSION_TARGET_ID = 26;
7 var MIN_VERSION_NEW_TAB = 29; 7 var MIN_VERSION_NEW_TAB = 29;
8 var MIN_VERSION_TAB_ACTIVATE = 30; 8 var MIN_VERSION_TAB_ACTIVATE = 30;
9 9
10 function inspect(data) { 10 function inspect(data, event) {
11 event.preventDefault();
11 chrome.send('inspect', [data]); 12 chrome.send('inspect', [data]);
12 } 13 }
13 14
14 function activate(data) { 15 function activate(data) {
15 chrome.send('activate', [data]); 16 chrome.send('activate', [data]);
16 } 17 }
17 18
18 function terminate(data) { 19 function terminate(data, event) {
20 event.preventDefault();
19 chrome.send('terminate', [data]); 21 chrome.send('terminate', [data]);
20 } 22 }
21 23
22 function reload(data) { 24 function reload(data, event) {
25 event.preventDefault();
23 chrome.send('reload', [data]); 26 chrome.send('reload', [data]);
24 } 27 }
25 28
26 function open(browserId, url) { 29 function open(browserId, url) {
27 chrome.send('open', [browserId, url]); 30 chrome.send('open', [browserId, url]);
28 } 31 }
29 32
30 function removeChildren(element_id) { 33 function removeChildren(element_id) {
31 var element = $(element_id); 34 var element = $(element_id);
32 element.textContent = ''; 35 element.textContent = '';
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 if (line.querySelector('.invalid')) 651 if (line.querySelector('.invalid'))
649 return; 652 return;
650 line.classList.remove('fresh'); 653 line.classList.remove('fresh');
651 var freshLine = createEmptyConfigLine(); 654 var freshLine = createEmptyConfigLine();
652 line.parentNode.appendChild(freshLine); 655 line.parentNode.appendChild(freshLine);
653 if (opt_selectNew) 656 if (opt_selectNew)
654 freshLine.querySelector('.port').focus(); 657 freshLine.querySelector('.port').focus();
655 } 658 }
656 659
657 document.addEventListener('DOMContentLoaded', onload); 660 document.addEventListener('DOMContentLoaded', onload);
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/startup/startup_browser_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698