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

Issue 7577002: ntp4: new app animation (Closed)

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

Description

ntp4: new app animation The new app animation already worked, but only if you have the new tab page already open (installing the app will switch to already-existent NTP and show the app being added). Now it also works if the app install triggers a new NTP. BUG=91583 TEST=try installing new app with and without NTP already open. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95433

Patch Set 1 #

Total comments: 3

Patch Set 2 : clear hash #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -4 lines) Patch
M chrome/browser/resources/ntp4/new_tab.js View 1 5 chunks +30 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.h View 1 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Evan Stade
9 years, 4 months ago (2011-08-04 03:07:09 UTC) #1
Rick Byers
http://codereview.chromium.org/7577002/diff/1/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): http://codereview.chromium.org/7577002/diff/1/chrome/browser/resources/ntp4/new_tab.js#newcode307 chrome/browser/resources/ntp4/new_tab.js:307: appAdded(highlightApp); Is there some reason you can't just do ...
9 years, 4 months ago (2011-08-04 13:21:58 UTC) #2
Evan Stade
http://codereview.chromium.org/7577002/diff/1/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): http://codereview.chromium.org/7577002/diff/1/chrome/browser/resources/ntp4/new_tab.js#newcode307 chrome/browser/resources/ntp4/new_tab.js:307: appAdded(highlightApp); On 2011/08/04 13:21:58, Rick Byers wrote: > Is ...
9 years, 4 months ago (2011-08-04 16:35:02 UTC) #3
Rick Byers
9 years, 4 months ago (2011-08-04 16:54:19 UTC) #4
LGTM

http://codereview.chromium.org/7577002/diff/1/chrome/browser/resources/ntp4/n...
File chrome/browser/resources/ntp4/new_tab.js (right):

http://codereview.chromium.org/7577002/diff/1/chrome/browser/resources/ntp4/n...
chrome/browser/resources/ntp4/new_tab.js:307: appAdded(highlightApp);
On 2011/08/04 16:35:02, Evan Stade wrote:
> On 2011/08/04 13:21:58, Rick Byers wrote:
> > Is there some reason you can't just do this call to appAdded directly above,
> > instead of waiting until the end?
> 
> All the cards have to be present and correct.
> 
> > 
> > If (eg. the user navigates to the hash URL directly or has it bookmarked,
> etc.),
> 
> The first example is officially not supported (and almost impossible for it to
> happen by accident). The second example I suppose might possibly happen if you
> bookmark the ntp at the right time. I think the best way to fix this is simply
> clearing the hash value after reading it.
> 
> > this app isn't actually the last app on the page, this will put it in the
> wrong
> > place.  Then if they do an unrelated rearrange, the new location will be
> > persisted.  A pretty minor bug, but I could see it annoying some users.
> 
> even if it is the last app on the page, you wouldn't want to animate it every
> time (in the bookmark example)
> 
> > 
> > If you can't just move this up for some reason, then maybe you should only
> check
> > for (what should be the common case) of the app being the last one on the
> page.
> 

Yeah, I think that's good enough.  Thanks.

Powered by Google App Engine
This is Rietveld 408576698