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

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

Issue 2474073005: DevTools: add the logging aspect into the PerformanceMonitor (Closed)
Patch Set: test fixed Created 4 years, 1 month 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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 /** 1006 /**
1007 * @implements {WebInspector.TargetManager.Observer} 1007 * @implements {WebInspector.TargetManager.Observer}
1008 * @unrestricted 1008 * @unrestricted
1009 */ 1009 */
1010 WebInspector.BackendSettingsSync = class { 1010 WebInspector.BackendSettingsSync = class {
1011 constructor() { 1011 constructor() {
1012 this._autoAttachSetting = WebInspector.settings.moduleSetting('autoAttachToC reatedPages'); 1012 this._autoAttachSetting = WebInspector.settings.moduleSetting('autoAttachToC reatedPages');
1013 this._autoAttachSetting.addChangeListener(this._update, this); 1013 this._autoAttachSetting.addChangeListener(this._update, this);
1014 this._disableJavascriptSetting = WebInspector.settings.moduleSetting('javaSc riptDisabled'); 1014 this._disableJavascriptSetting = WebInspector.settings.moduleSetting('javaSc riptDisabled');
1015 this._disableJavascriptSetting.addChangeListener(this._update, this); 1015 this._disableJavascriptSetting.addChangeListener(this._update, this);
1016 this._blockedEventsWarningSetting = WebInspector.settings.moduleSetting('blo ckedEventsWarningEnabled');
1017 this._blockedEventsWarningSetting.addChangeListener(this._update, this);
1018 WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capabili ty.Browser); 1016 WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capabili ty.Browser);
1019 } 1017 }
1020 1018
1021 /** 1019 /**
1022 * @param {!WebInspector.Target} target 1020 * @param {!WebInspector.Target} target
1023 */ 1021 */
1024 _updateTarget(target) { 1022 _updateTarget(target) {
1025 var blockedEventsWarningThresholdSeconds = 0.1;
1026 target.pageAgent().setBlockedEventsWarningThreshold(
1027 this._blockedEventsWarningSetting.get() ? blockedEventsWarningThresholdS econds : 0);
1028 target.pageAgent().setAutoAttachToCreatedPages(this._autoAttachSetting.get() ); 1023 target.pageAgent().setAutoAttachToCreatedPages(this._autoAttachSetting.get() );
1029 target.emulationAgent().setScriptExecutionDisabled(this._disableJavascriptSe tting.get()); 1024 target.emulationAgent().setScriptExecutionDisabled(this._disableJavascriptSe tting.get());
1030 } 1025 }
1031 1026
1032 _update() { 1027 _update() {
1033 WebInspector.targetManager.targets(WebInspector.Target.Capability.Browser).f orEach(this._updateTarget, this); 1028 WebInspector.targetManager.targets(WebInspector.Target.Capability.Browser).f orEach(this._updateTarget, this);
1034 } 1029 }
1035 1030
1036 /** 1031 /**
1037 * @param {!WebInspector.Target} target 1032 * @param {!WebInspector.Target} target
(...skipping 21 matching lines...) Expand all
1059 * @override 1054 * @override
1060 * @return {?Element} 1055 * @return {?Element}
1061 */ 1056 */
1062 settingElement() { 1057 settingElement() {
1063 return WebInspector.SettingsUI.createSettingCheckbox( 1058 return WebInspector.SettingsUI.createSettingCheckbox(
1064 WebInspector.UIString('Show rulers'), WebInspector.moduleSetting('showMe tricsRulers')); 1059 WebInspector.UIString('Show rulers'), WebInspector.moduleSetting('showMe tricsRulers'));
1065 } 1060 }
1066 }; 1061 };
1067 1062
1068 new WebInspector.Main(); 1063 new WebInspector.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698