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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2519213002: [DevTools] Remove preventFollow and special checks for links throughout frontend. (Closed)
Patch Set: Created 4 years 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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 } 391 }
392 392
393 _postDocumentKeyDown(event) { 393 _postDocumentKeyDown(event) {
394 if (event.handled) 394 if (event.handled)
395 return; 395 return;
396 396
397 var document = event.target && event.target.ownerDocument; 397 var document = event.target && event.target.ownerDocument;
398 var target = document ? document.deepActiveElement() : null; 398 var target = document ? document.deepActiveElement() : null;
399 if (target) { 399 if (target) {
400 var anchor = target.enclosingNodeOrSelfWithNodeName('a'); 400 var anchor = target.enclosingNodeOrSelfWithNodeName('a');
401 if (anchor && anchor.preventFollow) 401 if (anchor)
402 event.preventDefault(); 402 event.preventDefault();
403 } 403 }
404 404
405 if (!UI.Dialog.hasInstance() && UI.inspectorView.currentPanelDeprecated()) { 405 if (!UI.Dialog.hasInstance() && UI.inspectorView.currentPanelDeprecated()) {
406 UI.inspectorView.currentPanelDeprecated().handleShortcut(event); 406 UI.inspectorView.currentPanelDeprecated().handleShortcut(event);
407 if (event.handled) { 407 if (event.handled) {
408 event.consume(true); 408 event.consume(true);
409 return; 409 return;
410 } 410 }
411 } 411 }
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 * @override 995 * @override
996 * @return {?Element} 996 * @return {?Element}
997 */ 997 */
998 settingElement() { 998 settingElement() {
999 return UI.SettingsUI.createSettingCheckbox( 999 return UI.SettingsUI.createSettingCheckbox(
1000 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); 1000 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' ));
1001 } 1001 }
1002 }; 1002 };
1003 1003
1004 new Main.Main(); 1004 new Main.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698