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

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

Issue 10834241: Change Font Settings Sample Extension to use an options page instead of browser action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 8 years, 4 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 // 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 // Mapping between font list ids and the generic family setting they 5 // Mapping between font list ids and the generic family setting they
6 // represent. 6 // represent.
7 var genericFamilies = [ 7 var genericFamilies = [
8 { fontList: 'standardFontList', name: 'standard' }, 8 { fontList: 'standardFontList', name: 'standard' },
9 { fontList: 'serifFontList', name: 'serif' }, 9 { fontList: 'serifFontList', name: 'serif' },
10 { fontList: 'sansSerifFontList', name: 'sansserif' }, 10 { fontList: 'sansSerifFontList', name: 'sansserif' },
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 initFontSizePref('minFontSize', 240 initFontSizePref('minFontSize',
241 chrome.fontSettings.getMinimumFontSize, 241 chrome.fontSettings.getMinimumFontSize,
242 chrome.fontSettings.setMinimumFontSize, 242 chrome.fontSettings.setMinimumFontSize,
243 chrome.fontSettings.onMinimumFontSizeChanged); 243 chrome.fontSettings.onMinimumFontSizeChanged);
244 244
245 var clearButton = document.getElementById('clearButton'); 245 var clearButton = document.getElementById('clearButton');
246 clearButton.addEventListener('click', clearAllSettings); 246 clearButton.addEventListener('click', clearAllSettings);
247 } 247 }
248 248
249 document.addEventListener('DOMContentLoaded', init); 249 document.addEventListener('DOMContentLoaded', init);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698