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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/View.js

Issue 2254683003: DevTools: setting to auto-reveal in navigator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dont open navigator at all un Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui/View.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/View.js b/third_party/WebKit/Source/devtools/front_end/ui/View.js
index a5f3fe2b01a5141aa3dcfb566c2f0b678d6534fb..85c66c4e164f2ba0750a03bc2d7268db0496a0f3 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/View.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/View.js
@@ -325,9 +325,10 @@ WebInspector.ViewManager.prototype = {
/**
* @param {string} viewId
+ * @param {boolean=} skipReveal
* @return {!Promise}
*/
- showView: function(viewId)
+ showView: function(viewId, skipReveal)
{
var view = this._views.get(viewId);
if (!view) {
@@ -341,7 +342,8 @@ WebInspector.ViewManager.prototype = {
var location = view[WebInspector.ViewManager._Location.symbol];
if (location) {
- location._reveal();
+ if (!skipReveal)
+ location._reveal();
return location.showView(view);
}

Powered by Google App Engine
This is Rietveld 408576698