| OLD | NEW |
| 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 * @return {?UI.ToolbarItem} | 632 * @return {?UI.ToolbarItem} |
| 633 */ | 633 */ |
| 634 item() { | 634 item() { |
| 635 return this._toolbarItem; | 635 return this._toolbarItem; |
| 636 } | 636 } |
| 637 }; | 637 }; |
| 638 | 638 |
| 639 /** | 639 /** |
| 640 * @implements {UI.ToolbarItem.Provider} | 640 * @implements {UI.ToolbarItem.Provider} |
| 641 */ | 641 */ |
| 642 Main.Main.NodeConnectionLink = class { |
| 643 constructor() { |
| 644 this._link = createElementWithClass('span', 'link'); |
| 645 this._link.addEventListener('click', () => { |
| 646 UI.viewManager.showView('remote-devices'); |
| 647 }, false); |
| 648 this._link.textContent = Common.UIString('Connect'); |
| 649 this._link.style.padding = '0 5px'; |
| 650 this._toolbarItem = new UI.ToolbarItem(this._link); |
| 651 } |
| 652 |
| 653 /** |
| 654 * @override |
| 655 * @return {?UI.ToolbarItem} |
| 656 */ |
| 657 item() { |
| 658 return this._toolbarItem; |
| 659 } |
| 660 }; |
| 661 |
| 662 /** |
| 663 * @implements {UI.ToolbarItem.Provider} |
| 664 */ |
| 642 Main.Main.MainMenuItem = class { | 665 Main.Main.MainMenuItem = class { |
| 643 constructor() { | 666 constructor() { |
| 644 this._item = new UI.ToolbarMenuButton(this._handleContextMenu.bind(this), tr
ue); | 667 this._item = new UI.ToolbarMenuButton(this._handleContextMenu.bind(this), tr
ue); |
| 645 this._item.setTitle(Common.UIString('Customize and control DevTools')); | 668 this._item.setTitle(Common.UIString('Customize and control DevTools')); |
| 646 } | 669 } |
| 647 | 670 |
| 648 /** | 671 /** |
| 649 * @override | 672 * @override |
| 650 * @return {?UI.ToolbarItem} | 673 * @return {?UI.ToolbarItem} |
| 651 */ | 674 */ |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 * @override | 971 * @override |
| 949 * @return {?Element} | 972 * @return {?Element} |
| 950 */ | 973 */ |
| 951 settingElement() { | 974 settingElement() { |
| 952 return UI.SettingsUI.createSettingCheckbox( | 975 return UI.SettingsUI.createSettingCheckbox( |
| 953 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 976 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
| 954 } | 977 } |
| 955 }; | 978 }; |
| 956 | 979 |
| 957 new Main.Main(); | 980 new Main.Main(); |
| OLD | NEW |