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

Unified Diff: chrome/browser/resources/ntp4/new_tab_init.js

Issue 8423055: [Aura] Initial app list webui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos bot compilation error 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/ntp4/new_tab_init.js
diff --git a/chrome/browser/resources/ntp4/new_tab_init.js b/chrome/browser/resources/ntp4/new_tab_init.js
new file mode 100644
index 0000000000000000000000000000000000000000..dc7dd4ff061c6ae4e9e8bc0ffe3532962d8b4fcd
--- /dev/null
+++ b/chrome/browser/resources/ntp4/new_tab_init.js
@@ -0,0 +1,35 @@
+// 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 New tab page initialization/config.
+ */
+
+cr.define('ntp4', function() {
+ 'use strict';
+
+ /**
+ * Invoked at startup once the DOM is available to initialize the app.
+ */
+ function initialize() {
+ var config = {};
+ config.shownPage = templateData['shown_page_type'];
+ config.shownPageIndex = templateData['shown_page_index'];
+
+ config.supportsPageSwitchers = true;
+ config.supportsNotification = true;
+ config.supportsRecentlyClosed = true;
+ config.supportsMostVisited = true;
+ config.supportsBookmarks = templateData['bookmark_features'] == 'true';
+ config.supportsSyncLogin = true;
+
+ ntp4.setup(config);
+ }
+
+ return {
+ initialize: initialize
+ };
+});
+
+document.addEventListener('DOMContentLoaded', ntp4.initialize);

Powered by Google App Engine
This is Rietveld 408576698