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

Unified Diff: chrome/browser/resources/ntp4/apps_page.js

Issue 7837008: ntp: add tooltips for all tile types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 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 | « no previous file | chrome/browser/resources/ntp4/bookmarks_page.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/apps_page.js
diff --git a/chrome/browser/resources/ntp4/apps_page.js b/chrome/browser/resources/ntp4/apps_page.js
index bc98db8ce4b5626454216947eec8c2acb2b0c7f1..04f9c270e84417c87d934de4424fa0b63df80a31 100644
--- a/chrome/browser/resources/ntp4/apps_page.js
+++ b/chrome/browser/resources/ntp4/apps_page.js
@@ -198,6 +198,7 @@ cr.define('ntp4', function() {
imgDiv.className = 'app-icon-div';
imgDiv.appendChild(appImgContainer);
imgDiv.addEventListener('click', this.onClick_.bind(this));
+ imgDiv.title = this.appData_.name;
this.imgDiv_ = imgDiv;
appContents.appendChild(imgDiv);
this.appImgContainer_.style.position = 'absolute';
@@ -210,11 +211,12 @@ cr.define('ntp4', function() {
chrome.send('getAppIconDominantColor', [this.id]);
} else {
appImgContainer.addEventListener('click', this.onClick_.bind(this));
+ appImgContainer.title = this.appData_.name;
appContents.appendChild(appImgContainer);
}
var appSpan = this.ownerDocument.createElement('span');
- appSpan.textContent = this.appData_.name;
+ appSpan.textContent = appSpan.title = this.appData_.name;
appSpan.addEventListener('click', this.onClick_.bind(this));
appContents.appendChild(appSpan);
this.appendChild(appContents);
« no previous file with comments | « no previous file | chrome/browser/resources/ntp4/bookmarks_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698