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

Side by Side Diff: Source/devtools/front_end/inspector.js

Issue 71633003: DevTools: added "overlayContents" mode, where DevTools content is placed around and underneath inse… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 }, 77 },
78 78
79 /** 79 /**
80 * @return {boolean} 80 * @return {boolean}
81 */ 81 */
82 isInspectingDevice: function() 82 isInspectingDevice: function()
83 { 83 {
84 return !!WebInspector.queryParamsObject["remoteFrontend"]; 84 return !!WebInspector.queryParamsObject["remoteFrontend"];
85 }, 85 },
86 86
87 /**
88 * @return {boolean}
89 */
90 useOverlayContentsLayout: function()
91 {
92 var docked = WebInspector.queryParamsObject["dockSide"] !== WebInspector .DockController.State.Undocked;
93 if (WebInspector.dockController)
94 docked = WebInspector.dockController.dockSide() !== WebInspector.Doc kController.State.Undocked;
95 return docked && !!WebInspector.queryParamsObject["overlayContents"];
96 },
97
87 _toggleScreencastButtonClicked: function() 98 _toggleScreencastButtonClicked: function()
88 { 99 {
89 this._toggleScreencastButton.toggled = !this._toggleScreencastButton.tog gled; 100 this._toggleScreencastButton.toggled = !this._toggleScreencastButton.tog gled;
90 WebInspector.settings.screencastEnabled.set(this._toggleScreencastButton .toggled); 101 WebInspector.settings.screencastEnabled.set(this._toggleScreencastButton .toggled);
91 102
92 if (this._toggleScreencastButton.toggled) { 103 if (this._toggleScreencastButton.toggled) {
93 if (!this._screencastView) { 104 if (!this._screencastView) {
94 // Rebuild the UI upon first invocation. 105 // Rebuild the UI upon first invocation.
95 this._screencastView = new WebInspector.ScreencastView(); 106 this._screencastView = new WebInspector.ScreencastView();
96 this._screencastSplitView = new WebInspector.SplitView(true, Web Inspector.settings.screencastSidebarWidth.name); 107 this._screencastSplitView = new WebInspector.SplitView(true, Web Inspector.settings.screencastSidebarWidth.name);
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 1015
1005 /** 1016 /**
1006 * @return {string} 1017 * @return {string}
1007 */ 1018 */
1008 WebInspector.getSelectionForegroundColor = function() 1019 WebInspector.getSelectionForegroundColor = function()
1009 { 1020 {
1010 return InspectorFrontendHost.getSelectionForegroundColor(); 1021 return InspectorFrontendHost.getSelectionForegroundColor();
1011 } 1022 }
1012 1023
1013 window.DEBUG = true; 1024 window.DEBUG = true;
OLDNEW
« Source/devtools/front_end/SplitView.js ('K') | « Source/devtools/front_end/inspector.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698