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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2412023002: DevTools: migrate InspectorView to tabbed view location. (Closed)
Patch Set: test fixed Created 4 years, 2 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/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index 5b97e35cb3a97cf1a28b426b3a8c7dfa1fc6d2c3..1f319025111ef0792dcd9d9cdde786513729dd88 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -479,8 +479,8 @@ WebInspector.Main.prototype = {
event.preventDefault();
}
- if (!WebInspector.Dialog.hasInstance() && WebInspector.inspectorView.currentPanel()) {
- WebInspector.inspectorView.currentPanel().handleShortcut(event);
+ if (!WebInspector.Dialog.hasInstance() && WebInspector.inspectorView.currentPanelDeprecated()) {
+ WebInspector.inspectorView.currentPanelDeprecated().handleShortcut(event);
if (event.handled) {
event.consume(true);
return;
@@ -669,7 +669,7 @@ WebInspector.Main.SearchActionDelegate.prototype = {
*/
handleAction: function(context, actionId)
{
- var searchableView = WebInspector.SearchableView.fromElement(WebInspector.currentFocusElement()) || WebInspector.inspectorView.currentPanel().searchableView();
+ var searchableView = WebInspector.SearchableView.fromElement(WebInspector.currentFocusElement()) || WebInspector.inspectorView.currentPanelDeprecated().searchableView();
if (!searchableView)
return false;
switch (actionId) {

Powered by Google App Engine
This is Rietveld 408576698