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

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

Issue 2752403002: [DevTools] Migrate usages of Target to RuntimeModel where makes sense (Closed)
Patch Set: compilation errors Created 3 years, 9 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 */ 483 */
484 detached(reason) { 484 detached(reason) {
485 Main._disconnectedScreenWithReasonWasShown = true; 485 Main._disconnectedScreenWithReasonWasShown = true;
486 Main.RemoteDebuggingTerminatedScreen.show(reason); 486 Main.RemoteDebuggingTerminatedScreen.show(reason);
487 } 487 }
488 488
489 /** 489 /**
490 * @override 490 * @override
491 */ 491 */
492 targetCrashed() { 492 targetCrashed() {
493 var debuggerModel = SDK.DebuggerModel.fromTarget(this._target); 493 var debuggerModel = this._target.model(SDK.DebuggerModel);
494 if (debuggerModel) 494 if (debuggerModel)
495 Main.TargetCrashedScreen.show(debuggerModel); 495 Main.TargetCrashedScreen.show(debuggerModel);
496 } 496 }
497 }; 497 };
498 498
499 /** 499 /**
500 * @implements {UI.ActionDelegate} 500 * @implements {UI.ActionDelegate}
501 * @unrestricted 501 * @unrestricted
502 */ 502 */
503 Main.Main.ReloadActionDelegate = class { 503 Main.Main.ReloadActionDelegate = class {
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 * @override 952 * @override
953 * @return {?Element} 953 * @return {?Element}
954 */ 954 */
955 settingElement() { 955 settingElement() {
956 return UI.SettingsUI.createSettingCheckbox( 956 return UI.SettingsUI.createSettingCheckbox(
957 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); 957 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' ));
958 } 958 }
959 }; 959 };
960 960
961 new Main.Main(); 961 new Main.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698