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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 */ | 481 */ |
482 detached(reason) { | 482 detached(reason) { |
483 Main._disconnectedScreenWithReasonWasShown = true; | 483 Main._disconnectedScreenWithReasonWasShown = true; |
484 Main.RemoteDebuggingTerminatedScreen.show(reason); | 484 Main.RemoteDebuggingTerminatedScreen.show(reason); |
485 } | 485 } |
486 | 486 |
487 /** | 487 /** |
488 * @override | 488 * @override |
489 */ | 489 */ |
490 targetCrashed() { | 490 targetCrashed() { |
491 var debuggerModel = SDK.DebuggerModel.fromTarget(this._target); | 491 var debuggerModel = this._target.model(SDK.DebuggerModel); |
492 if (debuggerModel) | 492 if (debuggerModel) |
493 Main.TargetCrashedScreen.show(debuggerModel); | 493 Main.TargetCrashedScreen.show(debuggerModel); |
494 } | 494 } |
495 }; | 495 }; |
496 | 496 |
497 /** | 497 /** |
498 * @implements {UI.ActionDelegate} | 498 * @implements {UI.ActionDelegate} |
499 * @unrestricted | 499 * @unrestricted |
500 */ | 500 */ |
501 Main.Main.ReloadActionDelegate = class { | 501 Main.Main.ReloadActionDelegate = class { |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 * @override | 949 * @override |
950 * @return {?Element} | 950 * @return {?Element} |
951 */ | 951 */ |
952 settingElement() { | 952 settingElement() { |
953 return UI.SettingsUI.createSettingCheckbox( | 953 return UI.SettingsUI.createSettingCheckbox( |
954 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 954 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
955 } | 955 } |
956 }; | 956 }; |
957 | 957 |
958 new Main.Main(); | 958 new Main.Main(); |
OLD | NEW |