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

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

Issue 874563003: Remove old HTML app list start page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months 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
« no previous file with comments | « chrome/browser/resources/app_list/start_page.html ('k') | chrome/browser/ui/app_list/recommended_apps.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/app_list/start_page.js
diff --git a/chrome/browser/resources/app_list/start_page.js b/chrome/browser/resources/app_list/start_page.js
index 999373f3ecd0f228ab94b20e0eb93768f4df55a7..21ccc4ebd86842a2a7bb054751619a2a998824ee 100644
--- a/chrome/browser/resources/app_list/start_page.js
+++ b/chrome/browser/resources/app_list/start_page.js
@@ -6,7 +6,6 @@
* @fileoverview App launcher start page implementation.
*/
-<include src="recommended_apps.js">
<include src="speech_manager.js">
cr.define('appList.startPage', function() {
@@ -15,58 +14,14 @@ cr.define('appList.startPage', function() {
var speechManager = null;
/**
- * Creates a StartPage object.
- * @constructor
- * @extends {HTMLDivElement}
- */
- var StartPage = cr.ui.define('div');
-
- StartPage.prototype = {
- __proto__: HTMLDivElement.prototype,
-
- /**
- * Instance of the recommended apps card.
- * @type {appsList.startPage.RecommendedApps}
- * @private
- */
- recommendedApps_: null,
-
- /** @override */
- decorate: function() {
- this.recommendedApps_ = new appList.startPage.RecommendedApps();
- this.appendChild(this.recommendedApps_);
- },
-
- /**
- * Sets the recommended apps.
- * @param {!Array.<!{appId: string,
- * iconUrl: string,
- * textTitle: string}>} apps An array of app info
- * dictionary to be displayed in the AppItemView.
- */
- setRecommendedApps: function(apps) {
- this.recommendedApps_.setApps(apps);
- }
- };
-
- /**
* Initialize the page.
*/
function initialize() {
- StartPage.decorate($('start-page'));
speechManager = new speech.SpeechManager();
chrome.send('initialize');
}
/**
- * Sets the recommended apps.
- * @param {Array.<Object>} apps An array of app info dictionary.
- */
- function setRecommendedApps(apps) {
- $('start-page').setRecommendedApps(apps);
- }
-
- /**
* Invoked when the hotword plugin availability is changed.
*
* @param {boolean} enabled Whether the plugin is enabled or not.
@@ -109,7 +64,6 @@ cr.define('appList.startPage', function() {
return {
initialize: initialize,
- setRecommendedApps: setRecommendedApps,
setHotwordEnabled: setHotwordEnabled,
setNaclArch: setNaclArch,
onAppListShown: onAppListShown,
@@ -118,5 +72,4 @@ cr.define('appList.startPage', function() {
};
});
-document.addEventListener('contextmenu', function(e) { e.preventDefault(); });
document.addEventListener('DOMContentLoaded', appList.startPage.initialize);
« no previous file with comments | « chrome/browser/resources/app_list/start_page.html ('k') | chrome/browser/ui/app_list/recommended_apps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698