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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js

Issue 2815373003: DevTools: Add more views to command menu (Closed)
Patch Set: Add panel location Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/module.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 willHide() { 104 willHide() {
105 this.element.ownerDocument.removeEventListener('keydown', this._keyDownBound , false); 105 this.element.ownerDocument.removeEventListener('keydown', this._keyDownBound , false);
106 } 106 }
107 107
108 /** 108 /**
109 * @override 109 * @override
110 * @param {string} locationName 110 * @param {string} locationName
111 * @return {?UI.ViewLocation} 111 * @return {?UI.ViewLocation}
112 */ 112 */
113 resolveLocation(locationName) { 113 resolveLocation(locationName) {
114 return this._drawerTabbedLocation; 114 if (locationName === 'drawer-view')
115 return this._drawerTabbedLocation;
116 if (locationName === 'panel')
117 return this._tabbedLocation;
118 return null;
115 } 119 }
116 120
117 createToolbars() { 121 createToolbars() {
118 this._tabbedPane.leftToolbar().appendLocationItems('main-toolbar-left'); 122 this._tabbedPane.leftToolbar().appendLocationItems('main-toolbar-left');
119 this._tabbedPane.rightToolbar().appendLocationItems('main-toolbar-right'); 123 this._tabbedPane.rightToolbar().appendLocationItems('main-toolbar-right');
120 } 124 }
121 125
122 /** 126 /**
123 * @param {!UI.View} view 127 * @param {!UI.View} view
124 */ 128 */
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 * @return {boolean} 339 * @return {boolean}
336 */ 340 */
337 handleAction(context, actionId) { 341 handleAction(context, actionId) {
338 if (UI.inspectorView.drawerVisible()) 342 if (UI.inspectorView.drawerVisible())
339 UI.inspectorView._closeDrawer(); 343 UI.inspectorView._closeDrawer();
340 else 344 else
341 UI.inspectorView._showDrawer(true); 345 UI.inspectorView._showDrawer(true);
342 return true; 346 return true;
343 } 347 }
344 }; 348 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/module.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698