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

Issue 7124002: ntp4: notification area (Closed)

Created:
9 years, 6 months ago by Evan Stade
Modified:
9 years, 6 months ago
Reviewers:
csilv, Rick Byers
CC:
chromium-reviews, estade+watch_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

ntp4: add a notification area This is basically a port of the ntp3 notification area, except it allows multiple links. I think there are currently some minor bugs around most visited deletion and undo; think of this changeset as just a new piece of UI, and I will improve the functionality later. BUG=none TEST=[x] a most visited thumbnail and then undo Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88442

Patch Set 1 #

Patch Set 2 : notification area #

Total comments: 4

Patch Set 3 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -9 lines) Patch
M chrome/app/generated_resources.grd View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/new_tab.html View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/ntp4/most_visited_page.js View 6 chunks +39 lines, -8 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.css View 1 2 2 chunks +59 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.html View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.js View 1 2 3 chunks +49 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Evan Stade
9 years, 6 months ago (2011-06-07 22:13:20 UTC) #1
Rick Byers
LGTM. http://codereview.chromium.org/7124002/diff/2001/chrome/browser/resources/ntp4/new_tab.css File chrome/browser/resources/ntp4/new_tab.css (right): http://codereview.chromium.org/7124002/diff/2001/chrome/browser/resources/ntp4/new_tab.css#newcode55 chrome/browser/resources/ntp4/new_tab.css:55: display: inline-block; This seems unusual to me. You ...
9 years, 6 months ago (2011-06-08 20:41:10 UTC) #2
Evan Stade
9 years, 6 months ago (2011-06-08 23:54:47 UTC) #3
http://codereview.chromium.org/7124002/diff/2001/chrome/browser/resources/ntp...
File chrome/browser/resources/ntp4/new_tab.css (right):

http://codereview.chromium.org/7124002/diff/2001/chrome/browser/resources/ntp...
chrome/browser/resources/ntp4/new_tab.css:55: display: inline-block;
On 2011/06/08 20:41:10, rbyers wrote:
> This seems unusual to me.  You really want to set display on all decendants of
> #notification regardless of what they are?  I'm not enough of a CSS expert to
> know if this is ok or not - just seems odd.  Maybe deserves a comment?  I see
> elsewhere we sometimes do this to all chidlren - which makes more sense than
all
> descendants to me...

yes, this is what I want, but I can understand your concern, so I'll change it
to be more specific.

http://codereview.chromium.org/7124002/diff/2001/chrome/browser/resources/ntp...
File chrome/browser/resources/ntp4/new_tab.js (right):

http://codereview.chromium.org/7124002/diff/2001/chrome/browser/resources/ntp...
chrome/browser/resources/ntp4/new_tab.js:389: * @param {array} links An array of
objects describing the links in the
On 2011/06/08 20:41:10, rbyers wrote:
> You could precisely describe the type using closure type syntax, I think it's:
> {Array.<{{text:string, action: function()}}>}

yes, I think that's it except with one fewer pair of curlies. thanks.

Powered by Google App Engine
This is Rietveld 408576698