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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 PageAgent.setShowViewportSizeOnResize(true, WebInspector.settings.showMe
tricsRulers.get()); | 579 PageAgent.setShowViewportSizeOnResize(true, WebInspector.settings.showMe
tricsRulers.get()); |
580 } | 580 } |
581 showRulersChanged(); | 581 showRulersChanged(); |
582 | 582 |
583 WebInspector.WorkerManager.loadCompleted(); | 583 WebInspector.WorkerManager.loadCompleted(); |
584 InspectorFrontendAPI.loadCompleted(); | 584 InspectorFrontendAPI.loadCompleted(); |
585 | 585 |
586 if (WebInspector.experimentsSettings.tethering.isEnabled()) | 586 if (WebInspector.experimentsSettings.tethering.isEnabled()) |
587 this._setupTethering(); | 587 this._setupTethering(); |
588 | 588 |
| 589 if (WebInspector.experimentsSettings.screencast.isEnabled()) { |
| 590 var splitView = new WebInspector.SplitView(true, "screencastSplitView"); |
| 591 splitView.markAsRoot(); |
| 592 splitView.setSecondIsSidebar(false); |
| 593 splitView.show(document.body); |
| 594 |
| 595 var screencastView = new WebInspector.ScreencastView(); |
| 596 screencastView.show(splitView.firstElement()); |
| 597 splitView.secondElement().appendChild(document.getElementById("root")); |
| 598 } |
| 599 |
589 WebInspector.notifications.dispatchEventToListeners(WebInspector.Events.Insp
ectorLoaded); | 600 WebInspector.notifications.dispatchEventToListeners(WebInspector.Events.Insp
ectorLoaded); |
590 } | 601 } |
591 | 602 |
592 var windowLoaded = function() | 603 var windowLoaded = function() |
593 { | 604 { |
594 WebInspector.loaded(); | 605 WebInspector.loaded(); |
595 window.removeEventListener("DOMContentLoaded", windowLoaded, false); | 606 window.removeEventListener("DOMContentLoaded", windowLoaded, false); |
596 delete windowLoaded; | 607 delete windowLoaded; |
597 }; | 608 }; |
598 | 609 |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 | 1121 |
1111 /** | 1122 /** |
1112 * @return {string} | 1123 * @return {string} |
1113 */ | 1124 */ |
1114 WebInspector.getSelectionForegroundColor = function() | 1125 WebInspector.getSelectionForegroundColor = function() |
1115 { | 1126 { |
1116 return InspectorFrontendHost.getSelectionForegroundColor(); | 1127 return InspectorFrontendHost.getSelectionForegroundColor(); |
1117 } | 1128 } |
1118 | 1129 |
1119 window.DEBUG = true; | 1130 window.DEBUG = true; |
OLD | NEW |