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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/inspect/inspect.js
diff --git a/chrome/browser/resources/inspect/inspect.js b/chrome/browser/resources/inspect/inspect.js
index b9c1bee964878c91e11ed7aef72948de8bd33d76..3189dacf6dd23b076c26e560042743766a1407c4 100644
--- a/chrome/browser/resources/inspect/inspect.js
+++ b/chrome/browser/resources/inspect/inspect.js
@@ -7,7 +7,8 @@ var MIN_VERSION_TARGET_ID = 26;
var MIN_VERSION_NEW_TAB = 29;
var MIN_VERSION_TAB_ACTIVATE = 30;
-function inspect(data) {
+function inspect(data, event) {
+ event.preventDefault();
chrome.send('inspect', [data]);
}
@@ -15,11 +16,13 @@ function activate(data) {
chrome.send('activate', [data]);
}
-function terminate(data) {
+function terminate(data, event) {
+ event.preventDefault();
chrome.send('terminate', [data]);
}
-function reload(data) {
+function reload(data, event) {
+ event.preventDefault();
chrome.send('reload', [data]);
}
« 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