OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 3228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3239 return; | 3239 return; |
3240 } | 3240 } |
3241 | 3241 |
3242 var results = this._cssCompletions.startsWith(prefix); | 3242 var results = this._cssCompletions.startsWith(prefix); |
3243 var selectedIndex = this._cssCompletions.mostUsedOf(results); | 3243 var selectedIndex = this._cssCompletions.mostUsedOf(results); |
3244 completionsReadyCallback(results, selectedIndex); | 3244 completionsReadyCallback(results, selectedIndex); |
3245 }, | 3245 }, |
3246 | 3246 |
3247 __proto__: WebInspector.TextPrompt.prototype | 3247 __proto__: WebInspector.TextPrompt.prototype |
3248 } | 3248 } |
3249 | |
3250 /** | |
3251 * @constructor | |
3252 * @extends {WebInspector.SelectUISettingDelegate} | |
3253 */ | |
3254 WebInspector.StylesSidebarPane.ColorFormatSettingDelegate = function() | |
3255 { | |
3256 WebInspector.SelectUISettingDelegate.call(this); | |
3257 } | |
3258 | |
3259 WebInspector.StylesSidebarPane.ColorFormatSettingDelegate.prototype = { | |
3260 /** | |
3261 * @return {!Array.<!Array.<*>>} | |
3262 */ | |
3263 settingOptions: function() | |
3264 { | |
3265 return [ | |
3266 [ WebInspector.UIString("As authored"), WebInspector.Color.Forma t.Original ], | |
pfeldman
2014/03/27 15:27:14
Lets be brave enough to get it from descriptor.
apavlov
2014/03/28 10:21:23
Done.
| |
3267 [ "HEX: #DAC0DE", WebInspector.Color.Format.HEX ], | |
3268 [ "RGB: rgb(128, 255, 255)", WebInspector.Color.Format.RGB ], | |
3269 [ "HSL: hsl(300, 80%, 90%)", WebInspector.Color.Format.HSL ] | |
3270 ]; | |
3271 }, | |
3272 | |
3273 __proto__: WebInspector.SelectUISettingDelegate.prototype | |
3274 } | |
OLD | NEW |