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

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

Issue 2604883002: DevTools: namespace globals (Closed)
Patch Set: address CL feedback Created 3 years, 11 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 /* 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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 * @param {string} reason 860 * @param {string} reason
861 */ 861 */
862 constructor(reason) { 862 constructor(reason) {
863 super(true); 863 super(true);
864 this.registerRequiredCSS('main/remoteDebuggingTerminatedScreen.css'); 864 this.registerRequiredCSS('main/remoteDebuggingTerminatedScreen.css');
865 var message = this.contentElement.createChild('div', 'message'); 865 var message = this.contentElement.createChild('div', 'message');
866 message.createChild('span').textContent = Common.UIString('Debugging connect ion was closed. Reason: '); 866 message.createChild('span').textContent = Common.UIString('Debugging connect ion was closed. Reason: ');
867 message.createChild('span', 'reason').textContent = reason; 867 message.createChild('span', 'reason').textContent = reason;
868 this.contentElement.createChild('div', 'message').textContent = 868 this.contentElement.createChild('div', 'message').textContent =
869 Common.UIString('Reconnect when ready by reopening DevTools.'); 869 Common.UIString('Reconnect when ready by reopening DevTools.');
870 var button = createTextButton(Common.UIString('Reconnect DevTools'), () => w indow.location.reload()); 870 var button = UI.createTextButton(Common.UIString('Reconnect DevTools'), () = > window.location.reload());
871 this.contentElement.createChild('div', 'button').appendChild(button); 871 this.contentElement.createChild('div', 'button').appendChild(button);
872 } 872 }
873 873
874 /** 874 /**
875 * @param {string} reason 875 * @param {string} reason
876 */ 876 */
877 static show(reason) { 877 static show(reason) {
878 var dialog = new UI.Dialog(); 878 var dialog = new UI.Dialog();
879 dialog.setWrapsContent(true); 879 dialog.setWrapsContent(true);
880 dialog.addCloseButton(); 880 dialog.addCloseButton();
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 * @override 981 * @override
982 * @return {?Element} 982 * @return {?Element}
983 */ 983 */
984 settingElement() { 984 settingElement() {
985 return UI.SettingsUI.createSettingCheckbox( 985 return UI.SettingsUI.createSettingCheckbox(
986 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); 986 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' ));
987 } 987 }
988 }; 988 };
989 989
990 new Main.Main(); 990 new Main.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698