Index: chrome/browser/resources/local_ntp/local_ntp.js |
diff --git a/chrome/browser/resources/local_ntp/local_ntp.js b/chrome/browser/resources/local_ntp/local_ntp.js |
index 912e52d881cc2819e01213f9d04270448f80bedd..68f4a93e4ae05fc8139a168ee84d6ceb4023b569 100644 |
--- a/chrome/browser/resources/local_ntp/local_ntp.js |
+++ b/chrome/browser/resources/local_ntp/local_ntp.js |
@@ -55,6 +55,7 @@ var CLASSES = { |
SUGGESTION_CONTENTS: 'suggestion-contents', |
SUGGESTIONS_BOX: 'suggestions-box', |
THUMBNAIL: 'mv-thumb', |
+ THUMBNAIL_MASK: 'mv-mask', |
// Applied when user types. Makes fakebox non-interactive and hides |
// scrollbars. Removed on ESC. |
USER_TYPED: 'user-typed', |
@@ -466,6 +467,10 @@ function createTile(page, position) { |
thumbnailElement.className = CLASSES.THUMBNAIL; |
tileElement.appendChild(thumbnailElement); |
+ // A mask to darken the thumbnail on focus. |
+ var maskElement = createAndAppendElement( |
+ tileElement, 'div', CLASSES.THUMBNAIL_MASK); |
+ |
// The button used to blacklist this page. |
var blacklistButton = createAndAppendElement( |
tileElement, 'div', CLASSES.BLACKLIST_BUTTON); |