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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/main/RenderingOptions.js

Issue 2137763002: DevTools: automatically populate 'More tools' submenu with the drawer views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 /** 160 /**
161 * @return {!WebInspector.RenderingOptionsView} 161 * @return {!WebInspector.RenderingOptionsView}
162 */ 162 */
163 WebInspector.RenderingOptionsView.instance = function() 163 WebInspector.RenderingOptionsView.instance = function()
164 { 164 {
165 if (!WebInspector.RenderingOptionsView._instanceObject) 165 if (!WebInspector.RenderingOptionsView._instanceObject)
166 WebInspector.RenderingOptionsView._instanceObject = new WebInspector.Ren deringOptionsView(); 166 WebInspector.RenderingOptionsView._instanceObject = new WebInspector.Ren deringOptionsView();
167 return WebInspector.RenderingOptionsView._instanceObject; 167 return WebInspector.RenderingOptionsView._instanceObject;
168 } 168 }
169
170 /**
171 * @constructor
172 * @implements {WebInspector.ActionDelegate}
173 */
174 WebInspector.RenderingOptionsView.ShowActionDelegate = function()
175 {
176 }
177
178 WebInspector.RenderingOptionsView.ShowActionDelegate.prototype = {
179 /**
180 * @override
181 * @param {!WebInspector.Context} context
182 * @param {string} actionId
183 * @return {boolean}
184 */
185 handleAction: function(context, actionId)
186 {
187 WebInspector.inspectorView.showViewInDrawer("rendering");
188 return true;
189 }
190 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698