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

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: address comments 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..c46b0cea177babbee7bc4854a3aed71a9f8792ca 100644
--- a/chrome/browser/resources/app_list/start_page.js
+++ b/chrome/browser/resources/app_list/start_page.js
@@ -16,6 +16,10 @@ cr.define('appList.startPage', function() {
// The element containing the current Google Doodle.
var doodle = null;
+ // TODO(calamity): This is used for manual inspection of the doodle data.
+ // Remove this once http://crbug.com/462082 is diagnosed.
+ var doodleData = null;
+
/**
* Initialize the page.
*/
@@ -84,6 +88,7 @@ cr.define('appList.startPage', function() {
}
var doodleData = data.ddljson;
+ this.doodleData = doodleData;
if (!doodleData || !doodleData.transparent_large_image) {
setDoodleVisible(false);
return;
@@ -152,5 +157,6 @@ cr.define('appList.startPage', function() {
};
});
-document.addEventListener('contextmenu', function(e) { e.preventDefault(); });
+// TODO(calamity): Suppress context the menu once http://crbug.com/462082 is
+// diagnosed.
document.addEventListener('DOMContentLoaded', appList.startPage.initialize);
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/start_page_service.h » ('j') | chrome/browser/ui/app_list/start_page_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698