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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 New tab page initialization/config.
7 */
8
9 cr.define('ntp4', function() {
10 'use strict';
11
12 /**
13 * Invoked at startup once the DOM is available to initialize the app.
14 */
15 function initialize() {
16 var config = {};
17 config.shownPage = templateData['shown_page_type'];
18 config.shownPageIndex = templateData['shown_page_index'];
19
20 config.supportsPageSwitchers = true;
21 config.supportsNotification = true;
22 config.supportsRecentlyClosed = true;
23 config.supportsMostVisited = true;
24 config.supportsBookmarks = templateData['bookmark_features'] == 'true';
25 config.supportsSyncLogin = true;
26
27 ntp4.setup(config);
28 }
29
30 return {
31 initialize: initialize
32 };
33 });
34
35 document.addEventListener('DOMContentLoaded', ntp4.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698