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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebarWithFramesSelector.js

Issue 2773583002: [DevTools] Introduce a sidebar with a drop-down
Patch Set: [DevTools] Introduce a sidebar with a drop-down 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebarWithFramesSelector.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebarWithFramesSelector.js b/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebarWithFramesSelector.js
new file mode 100644
index 0000000000000000000000000000000000000000..81ca61cf35800a810acfc773746890647f7acf05
--- /dev/null
+++ b/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebarWithFramesSelector.js
@@ -0,0 +1,25 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+Resources.ApplicationPanelSidebarWithFramesSelector = class extends UI.VBox {
dgozman 2017/03/24 17:06:54 Let's come up with a shorter name please.
eostroukhov 2017/04/04 23:47:17 Done.
+ constructor() {
+ super();
+
+ var frameSelector = new Resources.FrameSelector();
+ this.contentElement.appendChild(frameSelector.element);
+
+ frameSelector.selectRootFrame();
+ }
+
+ /**
+ * @param {!SDK.Resource} resource
+ * @param {number=} line
+ * @param {number=} column
+ * @return {boolean}
+ */
+ showResource(resource, line, column) {
+ // TODO (eostroukhov) Waiting till the resource tree is ported.
+ return true;
+ }
+};

Powered by Google App Engine
This is Rietveld 408576698