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

Side by Side Diff: Source/devtools/front_end/HelpScreen.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: Rebase Created 7 years 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 showModal: function() 82 showModal: function()
83 { 83 {
84 var visibleHelpScreen = WebInspector.HelpScreen._visibleScreen; 84 var visibleHelpScreen = WebInspector.HelpScreen._visibleScreen;
85 if (visibleHelpScreen === this) 85 if (visibleHelpScreen === this)
86 return; 86 return;
87 87
88 if (visibleHelpScreen) 88 if (visibleHelpScreen)
89 visibleHelpScreen.hide(); 89 visibleHelpScreen.hide();
90 WebInspector.HelpScreen._visibleScreen = this; 90 WebInspector.HelpScreen._visibleScreen = this;
91 this.show(document.body); 91 this.show(WebInspector.inspectorView.devtoolsElement());
92 this.focus(); 92 this.focus();
93 }, 93 },
94 94
95 hide: function() 95 hide: function()
96 { 96 {
97 if (!this.isShowing()) 97 if (!this.isShowing())
98 return; 98 return;
99 99
100 WebInspector.HelpScreen._visibleScreen = null; 100 WebInspector.HelpScreen._visibleScreen = null;
101 101
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 */ 148 */
149 willHide: function() 149 willHide: function()
150 { 150 {
151 WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerMode l.Events.GlobalObjectCleared, this.hide, this); 151 WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerMode l.Events.GlobalObjectCleared, this.hide, this);
152 WebInspector.HelpScreen.prototype.willHide.call(this); 152 WebInspector.HelpScreen.prototype.willHide.call(this);
153 }, 153 },
154 154
155 __proto__: WebInspector.HelpScreen.prototype 155 __proto__: WebInspector.HelpScreen.prototype
156 } 156 }
157 157
OLDNEW
« no previous file with comments | « Source/devtools/front_end/Drawer.js ('k') | Source/devtools/front_end/InspectorFrontendHostStub.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698