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

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

Issue 1952933002: DevTools: extract the report view to reuse in app manifest and service worker pane. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests fixed Created 4 years, 7 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 makeBlueOnHover: function() 66 makeBlueOnHover: function()
67 { 67 {
68 this._contentElement.classList.add("toolbar-blue-on-hover"); 68 this._contentElement.classList.add("toolbar-blue-on-hover");
69 }, 69 },
70 70
71 makeToggledGray: function() 71 makeToggledGray: function()
72 { 72 {
73 this._contentElement.classList.add("toolbar-toggled-gray"); 73 this._contentElement.classList.add("toolbar-toggled-gray");
74 }, 74 },
75 75
76 renderAsLinks: function()
77 {
78 this._contentElement.classList.add("toolbar-render-as-links");
79 },
80
76 /** 81 /**
77 * @param {boolean} enabled 82 * @param {boolean} enabled
78 */ 83 */
79 setEnabled: function(enabled) 84 setEnabled: function(enabled)
80 { 85 {
81 for (var item of this._items) 86 for (var item of this._items)
82 item.setEnabled(enabled); 87 item.setEnabled(enabled);
83 }, 88 },
84 89
85 /** 90 /**
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 /** 975 /**
971 * @return {!Promise} 976 * @return {!Promise}
972 */ 977 */
973 onLoad: function() 978 onLoad: function()
974 { 979 {
975 return this._promise; 980 return this._promise;
976 }, 981 },
977 982
978 __proto__: WebInspector.Toolbar.prototype 983 __proto__: WebInspector.Toolbar.prototype
979 } 984 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698