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

Unified Diff: chrome/browser/resources/app_list.js

Issue 8423055: [Aura] Initial app list webui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move onKeyDown into PageListView onDocKeyDown Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/app_list.js
diff --git a/chrome/browser/resources/app_list.js b/chrome/browser/resources/app_list.js
new file mode 100644
index 0000000000000000000000000000000000000000..5b16e54c971a37cb9d5745e1eb9ddbc05caf43da
--- /dev/null
+++ b/chrome/browser/resources/app_list.js
@@ -0,0 +1,41 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview App list UI.
+ * For now, most of its logic is borrowed from ntp4.
+ */
+
+// Use an anonymous function to enable strict mode just for this file (which
+// will be concatenated with other files when embedded in Chrome
+cr.define('appList', function() {
+
+ /**
+ * Creates an AppListView object.
+ * @constructor
+ * @extends {PageListView}
+ */
+ 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
+ this.__proto__ = AppListView.prototype;
+ this.initialize();
+ }
+
+ AppListView.prototype = {
+ __proto__: ntp4.PageListView.prototype
+ };
+
+ /**
+ * Invoked at startup once the DOM is available to initialize the app.
+ */
+ function initialize() {
+ new AppListView();
+ }
+
+ // Return an object with all the exports
+ return {
+ initialize: initialize
+ };
+});
+
+document.addEventListener('DOMContentLoaded', appList.initialize);

Powered by Google App Engine
This is Rietveld 408576698