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

Side by Side Diff: Source/devtools/front_end/StylesSidebarPane.js

Issue 213423010: DevTools: Migrate General tab settings to extensions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698