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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js

Issue 2421983002: [DevTools] Remove layout editor experiment. (Closed)
Patch Set: rebased Created 4 years 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 967
968 /** 968 /**
969 * @override 969 * @override
970 * @return {!Promise} 970 * @return {!Promise}
971 */ 971 */
972 resumeModel() { 972 resumeModel() {
973 return this._agent.enable().then(this._wasEnabled.bind(this)); 973 return this._agent.enable().then(this._wasEnabled.bind(this));
974 } 974 }
975 975
976 /** 976 /**
977 * @param {!Protocol.CSS.StyleSheetId} id
978 * @param {!Protocol.CSS.SourceRange} range
979 */
980 _layoutEditorChange(id, range) {
981 this.dispatchEventToListeners(SDK.CSSModel.Events.LayoutEditorChange, {id: i d, range: range});
982 }
983
984 /**
985 * @param {number} nodeId 977 * @param {number} nodeId
986 * @param {string} name 978 * @param {string} name
987 * @param {string} value 979 * @param {string} value
988 */ 980 */
989 setEffectivePropertyValueForNode(nodeId, name, value) { 981 setEffectivePropertyValueForNode(nodeId, name, value) {
990 this._agent.setEffectivePropertyValueForNode(nodeId, name, value); 982 this._agent.setEffectivePropertyValueForNode(nodeId, name, value);
991 } 983 }
992 984
993 /** 985 /**
994 * @param {!SDK.DOMNode} node 986 * @param {!SDK.DOMNode} node
(...skipping 12 matching lines...) Expand all
1007 delete this._cachedMatchedCascadeNode; 999 delete this._cachedMatchedCascadeNode;
1008 delete this._cachedMatchedCascadePromise; 1000 delete this._cachedMatchedCascadePromise;
1009 } 1001 }
1010 }; 1002 };
1011 1003
1012 /** @typedef {!{range: !Protocol.CSS.SourceRange, styleSheetId: !Protocol.CSS.St yleSheetId, wasUsed: boolean}} */ 1004 /** @typedef {!{range: !Protocol.CSS.SourceRange, styleSheetId: !Protocol.CSS.St yleSheetId, wasUsed: boolean}} */
1013 SDK.CSSModel.RuleUsage; 1005 SDK.CSSModel.RuleUsage;
1014 1006
1015 /** @enum {symbol} */ 1007 /** @enum {symbol} */
1016 SDK.CSSModel.Events = { 1008 SDK.CSSModel.Events = {
1017 LayoutEditorChange: Symbol('LayoutEditorChange'),
1018 FontsUpdated: Symbol('FontsUpdated'), 1009 FontsUpdated: Symbol('FontsUpdated'),
1019 MediaQueryResultChanged: Symbol('MediaQueryResultChanged'), 1010 MediaQueryResultChanged: Symbol('MediaQueryResultChanged'),
1020 ModelWasEnabled: Symbol('ModelWasEnabled'), 1011 ModelWasEnabled: Symbol('ModelWasEnabled'),
1021 PseudoStateForced: Symbol('PseudoStateForced'), 1012 PseudoStateForced: Symbol('PseudoStateForced'),
1022 StyleSheetAdded: Symbol('StyleSheetAdded'), 1013 StyleSheetAdded: Symbol('StyleSheetAdded'),
1023 StyleSheetChanged: Symbol('StyleSheetChanged'), 1014 StyleSheetChanged: Symbol('StyleSheetChanged'),
1024 StyleSheetRemoved: Symbol('StyleSheetRemoved'), 1015 StyleSheetRemoved: Symbol('StyleSheetRemoved'),
1025 SourceMapAttached: Symbol('SourceMapAttached'), 1016 SourceMapAttached: Symbol('SourceMapAttached'),
1026 SourceMapDetached: Symbol('SourceMapDetached'), 1017 SourceMapDetached: Symbol('SourceMapDetached'),
1027 SourceMapChanged: Symbol('SourceMapChanged') 1018 SourceMapChanged: Symbol('SourceMapChanged')
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 this._cssModel._styleSheetAdded(header); 1117 this._cssModel._styleSheetAdded(header);
1127 } 1118 }
1128 1119
1129 /** 1120 /**
1130 * @override 1121 * @override
1131 * @param {!Protocol.CSS.StyleSheetId} id 1122 * @param {!Protocol.CSS.StyleSheetId} id
1132 */ 1123 */
1133 styleSheetRemoved(id) { 1124 styleSheetRemoved(id) {
1134 this._cssModel._styleSheetRemoved(id); 1125 this._cssModel._styleSheetRemoved(id);
1135 } 1126 }
1136
1137 /**
1138 * @override
1139 * @param {!Protocol.CSS.StyleSheetId} id
1140 * @param {!Protocol.CSS.SourceRange} range
1141 */
1142 layoutEditorChange(id, range) {
1143 this._cssModel._layoutEditorChange(id, range);
1144 }
1145 }; 1127 };
1146 1128
1147 /** 1129 /**
1148 * @unrestricted 1130 * @unrestricted
1149 */ 1131 */
1150 SDK.CSSModel.ComputedStyleLoader = class { 1132 SDK.CSSModel.ComputedStyleLoader = class {
1151 /** 1133 /**
1152 * @param {!SDK.CSSModel} cssModel 1134 * @param {!SDK.CSSModel} cssModel
1153 */ 1135 */
1154 constructor(cssModel) { 1136 constructor(cssModel) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 SDK.CSSModel.InlineStyleResult = class { 1184 SDK.CSSModel.InlineStyleResult = class {
1203 /** 1185 /**
1204 * @param {?SDK.CSSStyleDeclaration} inlineStyle 1186 * @param {?SDK.CSSStyleDeclaration} inlineStyle
1205 * @param {?SDK.CSSStyleDeclaration} attributesStyle 1187 * @param {?SDK.CSSStyleDeclaration} attributesStyle
1206 */ 1188 */
1207 constructor(inlineStyle, attributesStyle) { 1189 constructor(inlineStyle, attributesStyle) {
1208 this.inlineStyle = inlineStyle; 1190 this.inlineStyle = inlineStyle;
1209 this.attributesStyle = attributesStyle; 1191 this.attributesStyle = attributesStyle;
1210 } 1192 }
1211 }; 1193 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/main/Main.js ('k') | third_party/WebKit/Source/web/InspectorOverlay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698