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

Issue 8208014: Update the notification bubble. (Closed)

Created:
9 years, 2 months ago by Finnur
Modified:
9 years, 1 month ago
CC:
chromium-reviews, estade+watch_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

Update the notification bubble on the new tab page, as per UI mocks. This introduces a new ExpandableBubble, to accomodate this. It is collapsed when shown and can be set to not dismiss on blur. Clicking on the bubble expands the bubble. Note: Still uses the old-style arrow. BUG=88067 TEST=Notification bubble should look different and function differently. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108449

Patch Set 1 #

Total comments: 29

Patch Set 2 : Comments addressed #

Total comments: 15

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 4

Patch Set 7 : '' #

Total comments: 6

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+408 lines, -61 lines) Patch
M chrome/browser/resources/ntp4/apps_page.js View 1 2 3 4 5 6 7 3 chunks +52 lines, -61 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.html View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/shared/css/expandable_bubble.css View 1 2 3 1 chunk +110 lines, -0 lines 0 comments Download
A chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js View 1 2 3 4 5 6 7 1 chunk +244 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
Finnur
9 years, 2 months ago (2011-10-12 16:17:47 UTC) #1
Finnur
ping
9 years, 2 months ago (2011-10-13 16:10:46 UTC) #2
Evan Stade
sorry, I am travelling. May take me a while to get to this but I'll ...
9 years, 2 months ago (2011-10-13 22:00:24 UTC) #3
Finnur
arv, do you have time to take a look? On 2011/10/13 22:00:24, Evan Stade wrote: ...
9 years, 2 months ago (2011-10-13 22:31:55 UTC) #4
Evan Stade
http://codereview.chromium.org/8208014/diff/1/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (right): http://codereview.chromium.org/8208014/diff/1/chrome/browser/resources/ntp4/apps_page.js#newcode337 chrome/browser/resources/ntp4/apps_page.js:337: this.infoBubbleShowing_ = infoBubble; can you document this? Also currentlyShowingInfoBubble_ ...
9 years, 2 months ago (2011-10-14 18:22:59 UTC) #5
arv (Not doing code reviews)
Sorry for not seeing this earlier. I always try do your code reviews in the ...
9 years, 2 months ago (2011-10-14 22:20:54 UTC) #6
Evan Stade
http://codereview.chromium.org/8208014/diff/1/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js File chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js (right): http://codereview.chromium.org/8208014/diff/1/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js#newcode128 chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js:128: bubbleTitle.style.width = (width - 2) + 'px'; On 2011/10/14 ...
9 years, 2 months ago (2011-10-17 23:15:14 UTC) #7
Finnur
All done (except as below). PTAL. http://codereview.chromium.org/8208014/diff/1/chrome/browser/resources/shared/css/expandable_bubble.css File chrome/browser/resources/shared/css/expandable_bubble.css (right): http://codereview.chromium.org/8208014/diff/1/chrome/browser/resources/shared/css/expandable_bubble.css#newcode19 chrome/browser/resources/shared/css/expandable_bubble.css:19: z-index: 3; Animations ...
9 years, 2 months ago (2011-10-18 12:39:10 UTC) #8
Evan Stade
http://codereview.chromium.org/8208014/diff/1/chrome/browser/resources/shared/css/expandable_bubble.css File chrome/browser/resources/shared/css/expandable_bubble.css (right): http://codereview.chromium.org/8208014/diff/1/chrome/browser/resources/shared/css/expandable_bubble.css#newcode74 chrome/browser/resources/shared/css/expandable_bubble.css:74: .ex-bubble-arrow { On 2011/10/18 12:39:10, Finnur wrote: > Yes, ...
9 years, 2 months ago (2011-10-18 16:34:15 UTC) #9
arv (Not doing code reviews)
http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (right): http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/ntp4/apps_page.js#newcode442 chrome/browser/resources/ntp4/apps_page.js:442: <<<<<<< .mine Please resolve http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js File chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js (right): http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js#newcode43 ...
9 years, 2 months ago (2011-10-18 16:50:30 UTC) #10
Finnur
arv: you can ignore this email... just addressing one point from estade to get an ...
9 years, 2 months ago (2011-10-18 22:56:42 UTC) #11
Evan Stade
http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js File chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js (right): http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js#newcode205 chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js:205: if (e.keyCode == 27) // Esc. if escape hides, ...
9 years, 2 months ago (2011-10-19 01:57:05 UTC) #12
Finnur
Updated to address review comments (and fix z-order where one expanded bubble could underlap another ...
9 years, 2 months ago (2011-10-19 15:12:30 UTC) #13
Evan Stade
http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js File chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js (right): http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js#newcode205 chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js:205: if (e.keyCode == 27) // Esc. On 2011/10/19 15:12:30, ...
9 years, 2 months ago (2011-10-19 23:26:14 UTC) #14
Finnur
http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js File chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js (right): http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js#newcode183 chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js:183: this.eventTracker_.add(doc, 'keydown', this, true); Silly question: arv & estade: ...
9 years, 2 months ago (2011-10-20 11:36:07 UTC) #15
Evan Stade
http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js File chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js (right): http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js#newcode183 chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js:183: this.eventTracker_.add(doc, 'keydown', this, true); On 2011/10/20 11:36:08, Finnur wrote: ...
9 years, 2 months ago (2011-10-20 17:08:50 UTC) #16
arv (Not doing code reviews)
http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js File chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js (right): http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js#newcode183 chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js:183: this.eventTracker_.add(doc, 'keydown', this, true); On 2011/10/20 17:08:50, Evan Stade ...
9 years, 2 months ago (2011-10-20 18:54:13 UTC) #17
Evan Stade
On 2011/10/20 18:54:13, arv wrote: > http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js > File chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js (right): > > http://codereview.chromium.org/8208014/diff/10001/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js#newcode183 > ...
9 years, 2 months ago (2011-10-20 19:55:37 UTC) #18
Evan Stade
On 2011/10/20 19:55:37, Evan Stade wrote: > On 2011/10/20 18:54:13, arv wrote: > > > ...
9 years, 2 months ago (2011-10-24 18:32:10 UTC) #19
Finnur
OK, if we want to fake the focus grabbing... then we are at full circle, ...
9 years, 2 months ago (2011-10-25 11:32:25 UTC) #20
Evan Stade
On 2011/10/25 11:32:25, Finnur wrote: > OK, if we want to fake the focus grabbing... ...
9 years, 1 month ago (2011-10-25 17:01:15 UTC) #21
Finnur
Clicking outside the bubble or pressing Esc collapses the bubble (if it is expanded) and ...
9 years, 1 month ago (2011-10-26 08:49:54 UTC) #22
Finnur
So, to expand a bit... I think a fake focus grab, like we have in ...
9 years, 1 month ago (2011-10-27 00:01:18 UTC) #23
Finnur
On 2011/10/27 00:01:18, Finnur wrote: > So, to expand a bit... I think a fake ...
9 years, 1 month ago (2011-10-27 00:01:48 UTC) #24
arv (Not doing code reviews)
lgtm http://codereview.chromium.org/8208014/diff/31002/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js File chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js (right): http://codereview.chromium.org/8208014/diff/31002/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js#newcode221 chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js:221: e.stopPropagation(); I still like comments in the code ...
9 years, 1 month ago (2011-10-27 16:50:01 UTC) #25
Finnur
Thanks. I'll address those. Evan, let me know if you have remaining concerns. Otherwise I'll ...
9 years, 1 month ago (2011-10-27 20:33:25 UTC) #26
Evan Stade
http://codereview.chromium.org/8208014/diff/31002/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js File chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js (right): http://codereview.chromium.org/8208014/diff/31002/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js#newcode179 chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js:179: this.eventTracker_.add(window, don't connect on |window| http://codereview.chromium.org/8208014/diff/31002/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js#newcode221 chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js:221: e.stopPropagation(); you ...
9 years, 1 month ago (2011-10-27 20:51:48 UTC) #27
Finnur
All good points (addressed). Please take a look and see if you like these last ...
9 years, 1 month ago (2011-11-01 14:44:32 UTC) #28
Evan Stade
lgtm, just nits http://codereview.chromium.org/8208014/diff/30006/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js File chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js (right): http://codereview.chromium.org/8208014/diff/30006/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js#newcode83 chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js:83: if (this.expanded) { prefer ternary http://codereview.chromium.org/8208014/diff/30006/chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js#newcode176 ...
9 years, 1 month ago (2011-11-01 20:47:24 UTC) #29
Finnur
9 years, 1 month ago (2011-11-03 12:25:04 UTC) #30
http://codereview.chromium.org/8208014/diff/30006/chrome/browser/resources/sh...
File chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js (right):

http://codereview.chromium.org/8208014/diff/30006/chrome/browser/resources/sh...
chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js:176: 'load',
this.resizeAndReposition_.bind(this));
Nope. The show call can come before load is called.

On 2011/11/01 20:47:24, Evan Stade wrote:
> why is this one necessary? I should have thought load would have to have been
> called by the time we show()

http://codereview.chromium.org/8208014/diff/30006/chrome/browser/resources/sh...
chrome/browser/resources/shared/js/cr/ui/expandable_bubble.js:178: 'resize',
this.collapseBubble_.bind(this));
We can start with re-position and see how it goes.

On 2011/11/01 20:47:24, Evan Stade wrote:
> Why have you made this collapse instead of just reposition? I'd rather it just
> resize/reposition but I don't feel particularly strongly.

Powered by Google App Engine
This is Rietveld 408576698