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

Side by Side Diff: chrome/common/extensions/docs/examples/api/fontSettings/js/cr/ui.js

Issue 11227018: Font Settings API: UI overhaul of example extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update version and description string Created 8 years, 1 month 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('cr.ui', function() { 5 cr.define('cr.ui', function() {
6 6
7 /** 7 /**
8 * Decorates elements as an instance of a class. 8 * Decorates elements as an instance of a class.
9 * @param {string|!Element} source The way to find the element(s) to decorate. 9 * @param {string|!Element} source The way to find the element(s) to decorate.
10 * If this is a string then {@code querySeletorAll} is used to find the 10 * If this is a string then {@code querySeletorAll} is used to find the
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 return Math.round(pixels) + 'px'; 168 return Math.round(pixels) + 'px';
169 } 169 }
170 170
171 return { 171 return {
172 decorate: decorate, 172 decorate: decorate,
173 define: define, 173 define: define,
174 limitInputWidth: limitInputWidth, 174 limitInputWidth: limitInputWidth,
175 toCssPx: toCssPx, 175 toCssPx: toCssPx,
176 }; 176 };
177 }); 177 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698