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

Side by Side Diff: chrome/common/extensions/docs/examples/api/fontSettings/js/cr/ui/list_selection_controller.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, 2 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 cr.define('cr.ui', function() { 5 cr.define('cr.ui', function() {
6 /** 6 /**
7 * Creates a selection controller that is to be used with lists. This is 7 * Creates a selection controller that is to be used with lists. This is
8 * implemented for vertical lists but changing the behavior for horizontal 8 * implemented for vertical lists but changing the behavior for horizontal
9 * lists or icon views is a matter of overriding {@code getIndexBefore}, 9 * lists or icon views is a matter of overriding {@code getIndexBefore},
10 * {@code getIndexAfter}, {@code getIndexAbove} as well as 10 * {@code getIndexAfter}, {@code getIndexAbove} as well as
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 if (prevent) 278 if (prevent)
279 e.preventDefault(); 279 e.preventDefault();
280 } 280 }
281 } 281 }
282 }; 282 };
283 283
284 return { 284 return {
285 ListSelectionController: ListSelectionController 285 ListSelectionController: ListSelectionController
286 }; 286 };
287 }); 287 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698