Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** | |
| 6 * @fileoverview App list UI. | |
| 7 * For now, most of its logic is borrowed from ntp4. | |
| 8 */ | |
| 9 | |
| 10 // Use an anonymous function to enable strict mode just for this file (which | |
| 11 // will be concatenated with other files when embedded in Chrome | |
| 12 cr.define('appList', function() { | |
| 13 | |
| 14 /** | |
| 15 * Creates an AppListView object. | |
| 16 * @constructor | |
| 17 * @extends {PageListView} | |
| 18 */ | |
| 19 function AppListView() { | |
|
Evan Stade
2011/11/07 23:59:20
filename should match class name. app_list.* shoul
xiyuan
2011/11/08 21:09:18
Done.
- Moved app_list.* to resources/aura/app_lis
| |
| 20 this.__proto__ = AppListView.prototype; | |
| 21 this.initialize(); | |
| 22 } | |
| 23 | |
| 24 AppListView.prototype = { | |
| 25 __proto__: ntp4.PageListView.prototype | |
| 26 }; | |
| 27 | |
| 28 /** | |
| 29 * Invoked at startup once the DOM is available to initialize the app. | |
| 30 */ | |
| 31 function initialize() { | |
| 32 new AppListView(); | |
| 33 } | |
| 34 | |
| 35 // Return an object with all the exports | |
| 36 return { | |
| 37 initialize: initialize | |
| 38 }; | |
| 39 }); | |
| 40 | |
| 41 document.addEventListener('DOMContentLoaded', appList.initialize); | |
| OLD | NEW |