diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 22:05:04 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 22:05:04 +0000 |
commit | deb958caa1a2d2390633e5b8194bc57c23fc4a7d (patch) | |
tree | b16386ad9e919a09a32e44c7fb0fa1a7cea248e1 /chrome/browser/resources | |
parent | 9d1cb4e7f4217761ceaf9aeaed7c4b18c2d99db6 (diff) | |
download | chromium_src-deb958caa1a2d2390633e5b8194bc57c23fc4a7d.zip chromium_src-deb958caa1a2d2390633e5b8194bc57c23fc4a7d.tar.gz chromium_src-deb958caa1a2d2390633e5b8194bc57c23fc4a7d.tar.bz2 |
Tweaks and fixes for NTP extension promo.
Don't show promo for extensions on Mac, as they're not available yet. Decrement promo counter even when NTP is not home page, and do not remove puzzle piece when promo line is closed. When message bar is closed, make it zip off bottom of screen instead of just disappearing.
BUG= 27814, 25258, 27815
TEST= see various bugs.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32176
Review URL: http://codereview.chromium.org/385135
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r-- | chrome/browser/resources/new_new_tab.css | 10 | ||||
-rw-r--r-- | chrome/browser/resources/new_new_tab.html | 1 | ||||
-rw-r--r-- | chrome/browser/resources/new_new_tab.js | 7 |
3 files changed, 10 insertions, 8 deletions
diff --git a/chrome/browser/resources/new_new_tab.css b/chrome/browser/resources/new_new_tab.css index 79b135d..ddf6ca2 100644 --- a/chrome/browser/resources/new_new_tab.css +++ b/chrome/browser/resources/new_new_tab.css @@ -690,21 +690,25 @@ html[dir='rtl'] #option-menu > [command='hide']:before { /* promotions line */ #bottom-right-promo { position: absolute; - display: block; width: 180px; height: 131px; border: 0; bottom: 0px; right: 0px; + z-index: -1; } #footer { position: fixed; - bottom: 0px; + bottom: 0; left: 0px; text-align: center; width: 100%; - display: block; + -webkit-transition: bottom .15s; +} + +#footer.hide-footer { + bottom: -40px; } #promo-line { diff --git a/chrome/browser/resources/new_new_tab.html b/chrome/browser/resources/new_new_tab.html index 6b62355..25ce5af 100644 --- a/chrome/browser/resources/new_new_tab.html +++ b/chrome/browser/resources/new_new_tab.html @@ -1,7 +1,6 @@ <!DOCTYPE html> <html i18n-values=" dir:textdirection; - firstview:firstview; bookmarkbarattached:bookmarkbarattached; hasattribution:hasattribution; anim:anim; diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js index a27bf06..2e539e3 100644 --- a/chrome/browser/resources/new_new_tab.js +++ b/chrome/browser/resources/new_new_tab.js @@ -1593,10 +1593,9 @@ function fixLinkUnderline(el) { updateAttribution(); -/* Close the promo notices when close button on the promo-line is clicked. */ +// Closes the promo line when close button is clicked. $('promo-close').onclick = function (e) { - $('promo-line').style.display = 'none'; - $('bottom-right-promo').style.display = 'none'; - chrome.send('stopPromoMessages'); + $('footer').className = 'hide-footer'; + chrome.send('stopPromoLineMessage'); e.preventDefault(); }; |