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

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

Issue 961553002: Enable right clicking on the applist doodle web contents and log the data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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 fc5ebc4cd7b3bdc8cfbeb68c1c363c69a028ef63..3b665bc960a71c896e317cebea723835a4f0a607 100644
--- a/chrome/browser/resources/app_list/start_page.js
+++ b/chrome/browser/resources/app_list/start_page.js
@@ -15,6 +15,7 @@ cr.define('appList.startPage', function() {
// The element containing the current Google Doodle.
var doodle = null;
+ var doodleData = null;
/**
* Initialize the page.
@@ -83,6 +84,7 @@ cr.define('appList.startPage', function() {
this.doodle = null;
}
+ this.doodleData = data.ddljson;
Matt Giuca 2015/02/26 03:07:08 You aren't using this any more? (Since you seem to
Matt Giuca 2015/02/26 03:09:28 OK, then 1. Add a TODO explaining that this is for
calamity 2015/02/26 03:27:25 Keeping it here for inspection purposes.
var doodleData = data.ddljson;
if (!doodleData || !doodleData.transparent_large_image) {
setDoodleVisible(false);
@@ -152,5 +154,4 @@ cr.define('appList.startPage', function() {
};
});
-document.addEventListener('contextmenu', function(e) { e.preventDefault(); });
document.addEventListener('DOMContentLoaded', appList.startPage.initialize);
Matt Giuca 2015/02/26 03:07:08 // TODO(calamity): Uncomment this line to suppress
calamity 2015/02/26 03:27:25 Did what was discussed.
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/start_page_service.cc » ('j') | chrome/browser/ui/app_list/start_page_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698