OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 /** | 5 /** |
6 * @fileoverview App launcher start page implementation. | 6 * @fileoverview App launcher start page implementation. |
7 */ | 7 */ |
8 | 8 |
9 <include src="recommended_apps.js"/> | 9 <include src="recommended_apps.js"> |
10 <include src="speech_manager.js"/> | 10 <include src="speech_manager.js"> |
11 | 11 |
12 cr.define('appList.startPage', function() { | 12 cr.define('appList.startPage', function() { |
13 'use strict'; | 13 'use strict'; |
14 | 14 |
15 var speechManager = null; | 15 var speechManager = null; |
16 | 16 |
17 /** | 17 /** |
18 * Creates a StartPage object. | 18 * Creates a StartPage object. |
19 * @constructor | 19 * @constructor |
20 * @extends {HTMLDivElement} | 20 * @extends {HTMLDivElement} |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 setHotwordEnabled: setHotwordEnabled, | 113 setHotwordEnabled: setHotwordEnabled, |
114 setNaclArch: setNaclArch, | 114 setNaclArch: setNaclArch, |
115 onAppListShown: onAppListShown, | 115 onAppListShown: onAppListShown, |
116 onAppListHidden: onAppListHidden, | 116 onAppListHidden: onAppListHidden, |
117 toggleSpeechRecognition: toggleSpeechRecognition | 117 toggleSpeechRecognition: toggleSpeechRecognition |
118 }; | 118 }; |
119 }); | 119 }); |
120 | 120 |
121 document.addEventListener('contextmenu', function(e) { e.preventDefault(); }); | 121 document.addEventListener('contextmenu', function(e) { e.preventDefault(); }); |
122 document.addEventListener('DOMContentLoaded', appList.startPage.initialize); | 122 document.addEventListener('DOMContentLoaded', appList.startPage.initialize); |
OLD | NEW |