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 26 matching lines...) Expand all Loading... | |
37 */ | 37 */ |
38 constructor() { | 38 constructor() { |
39 Main.Main._instanceForTest = this; | 39 Main.Main._instanceForTest = this; |
40 runOnWindowLoad(this._loaded.bind(this)); | 40 runOnWindowLoad(this._loaded.bind(this)); |
41 } | 41 } |
42 | 42 |
43 /** | 43 /** |
44 * @param {boolean} hard | 44 * @param {boolean} hard |
45 */ | 45 */ |
46 static _reloadPage(hard) { | 46 static _reloadPage(hard) { |
47 var mainTarget = SDK.targetManager.mainTarget(); | 47 for (var resourceTreeModel of SDK.targetManager.models(SDK.ResourceTreeModel )) |
48 if (mainTarget && mainTarget.hasBrowserCapability()) | 48 resourceTreeModel.reloadPage(hard); |
lushnikov
2017/03/20 23:50:09
(here and in other for-loops): don't you want filt
dgozman
2017/03/21 21:04:09
Done.
| |
49 SDK.targetManager.reloadPage(hard); | |
50 } | 49 } |
51 | 50 |
52 _loaded() { | 51 _loaded() { |
53 console.timeStamp('Main._loaded'); | 52 console.timeStamp('Main._loaded'); |
54 Runtime.setPlatform(Host.platform()); | 53 Runtime.setPlatform(Host.platform()); |
55 InspectorFrontendHost.getPreferences(this._gotPreferences.bind(this)); | 54 InspectorFrontendHost.getPreferences(this._gotPreferences.bind(this)); |
56 } | 55 } |
57 | 56 |
58 /** | 57 /** |
59 * @param {!Object<string, string>} prefs | 58 * @param {!Object<string, string>} prefs |
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
949 * @override | 948 * @override |
950 * @return {?Element} | 949 * @return {?Element} |
951 */ | 950 */ |
952 settingElement() { | 951 settingElement() { |
953 return UI.SettingsUI.createSettingCheckbox( | 952 return UI.SettingsUI.createSettingCheckbox( |
954 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); | 953 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); |
955 } | 954 } |
956 }; | 955 }; |
957 | 956 |
958 new Main.Main(); | 957 new Main.Main(); |
OLD | NEW |