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

Issue 683703002: Notify launcher page with onTransitionChanged event (Closed)

Created:
6 years, 1 month ago by calamity
Modified:
6 years, 1 month ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@launcher_page_api_show_state_notify
Project:
chromium
Visibility:
Public.

Description

Notify launcher page with onTransitionChanged event. This CL adds a launcherPage API which notifies the launcher page when the app launcher switches to and from the custom launcher page. These events are only sent to the first custom launcher page. BUG=425444 TBR=oshima@chromium.org Committed: https://crrev.com/d2b6be4e2ef7a38d503deb1f89ca96b16c85effb Cr-Commit-Position: refs/heads/master@{#303427}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : remove launcherPagePrivate permission #

Patch Set 3 : address comments #

Patch Set 4 : change API to onTransitionChanged(progress) #

Patch Set 5 : nullptr like it's 1999 #

Total comments: 28

Patch Set 6 : address comments by changing world and rebasing on top of it #

Patch Set 7 : just forward info through ALVD #

Patch Set 8 : change launcherPagePrivate to launcherPage #

Patch Set 9 : #

Total comments: 14

Patch Set 10 : rebase #

Patch Set 11 : address tapted@'s comments #

Total comments: 6

Patch Set 12 : address comments #

Patch Set 13 : fix mac compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -9 lines) Patch
M ash/shell/app_list.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M athena/home/app_list_view_delegate.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M athena/home/app_list_view_delegate.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/apps/custom_launcher_page_browsertest_views.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +49 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.h View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +15 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/launcher_page_event_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/launcher_page_event_dispatcher.cc View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/launcher_page.idl View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/schemas.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/custom_launcher_page/main.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M ui/app_list/app_list_model.h View 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/app_list_view_delegate.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M ui/app_list/test/app_list_test_view_delegate.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/views/app_list_main_view.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M ui/app_list/views/app_list_main_view.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/views/contents_view.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -1 line 0 comments Download
M ui/app_list/views/contents_view.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +27 lines, -3 lines 0 comments Download

Messages

Total messages: 36 (12 generated)
calamity
6 years, 1 month ago (2014-10-28 00:55:10 UTC) #3
Matt Giuca
lgtm with nits https://codereview.chromium.org/683703002/diff/20001/chrome/browser/apps/custom_launcher_page_browsertest_views.cc File chrome/browser/apps/custom_launcher_page_browsertest_views.cc (right): https://codereview.chromium.org/683703002/diff/20001/chrome/browser/apps/custom_launcher_page_browsertest_views.cc#newcode65 chrome/browser/apps/custom_launcher_page_browsertest_views.cc:65: OpenLauncherAndShowCustomPage) { Perhaps s/Show/SwitchTo/ https://codereview.chromium.org/683703002/diff/20001/chrome/browser/ui/app_list/app_list_view_delegate.cc File ...
6 years, 1 month ago (2014-10-28 05:41:22 UTC) #4
calamity
+benwells for OWNERS of all things extensions. https://codereview.chromium.org/683703002/diff/20001/chrome/browser/apps/custom_launcher_page_browsertest_views.cc File chrome/browser/apps/custom_launcher_page_browsertest_views.cc (right): https://codereview.chromium.org/683703002/diff/20001/chrome/browser/apps/custom_launcher_page_browsertest_views.cc#newcode65 chrome/browser/apps/custom_launcher_page_browsertest_views.cc:65: OpenLauncherAndShowCustomPage) { ...
6 years, 1 month ago (2014-10-28 06:34:21 UTC) #6
Matt Giuca
lgtm
6 years, 1 month ago (2014-10-28 07:44:43 UTC) #7
calamity
I changed this to be onTransitionChanged() since it's easier to go from there to a ...
6 years, 1 month ago (2014-10-31 03:12:58 UTC) #8
tapted
https://codereview.chromium.org/683703002/diff/100001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/683703002/diff/100001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode470 chrome/browser/ui/app_list/app_list_view_delegate.cc:470: controller_->GetAppListWindow()); (overridden by later comments, but worth noting: GetAppListWindow ...
6 years, 1 month ago (2014-11-03 00:31:21 UTC) #10
Matt Giuca
Urrgghhh. This is all pretty awful but seems necessary :| https://codereview.chromium.org/683703002/diff/100001/chrome/browser/apps/custom_launcher_page_browsertest_views.cc File chrome/browser/apps/custom_launcher_page_browsertest_views.cc (right): https://codereview.chromium.org/683703002/diff/100001/chrome/browser/apps/custom_launcher_page_browsertest_views.cc#newcode81 ...
6 years, 1 month ago (2014-11-03 00:57:42 UTC) #11
Matt Giuca
not lgtm, because I haven't given an lg yet for the rewrite since my last ...
6 years, 1 month ago (2014-11-03 02:34:37 UTC) #12
calamity
+tapted for design review. 3rd rewrite. The animation information is now forwarded directly to the ...
6 years, 1 month ago (2014-11-06 02:36:32 UTC) #16
tapted
I like it! (sorry for the lag - make sure you prod me in case ...
6 years, 1 month ago (2014-11-06 06:05:45 UTC) #17
Matt Giuca
Since I've done 6 reviews for you in the past 24 hours, I think I'll ...
6 years, 1 month ago (2014-11-06 06:09:37 UTC) #18
tapted
https://codereview.chromium.org/683703002/diff/220001/chrome/browser/ui/app_list/app_list_view_delegate.h File chrome/browser/ui/app_list/app_list_view_delegate.h (right): https://codereview.chromium.org/683703002/diff/220001/chrome/browser/ui/app_list/app_list_view_delegate.h#newcode100 chrome/browser/ui/app_list/app_list_view_delegate.h:100: void CustomLauncherPageAnimationChanged(double progress) override; also, don't forget about applisttestviewdelegate ...
6 years, 1 month ago (2014-11-06 11:54:18 UTC) #19
calamity
https://codereview.chromium.org/683703002/diff/220001/athena/home/app_list_view_delegate.cc File athena/home/app_list_view_delegate.cc (right): https://codereview.chromium.org/683703002/diff/220001/athena/home/app_list_view_delegate.cc#newcode163 athena/home/app_list_view_delegate.cc:163: launcher_page_event_dispatcher_->ProgressChanged(progress); On 2014/11/06 06:05:45, tapted wrote: > remove? (not ...
6 years, 1 month ago (2014-11-07 03:43:30 UTC) #21
tapted
The release code lgtm, but I'm worried about the test... If you can make it ...
6 years, 1 month ago (2014-11-07 05:34:56 UTC) #22
Matt Giuca
Just have a few questions. lgtm here, because I don't think the answer to those ...
6 years, 1 month ago (2014-11-07 06:46:29 UTC) #23
calamity
https://codereview.chromium.org/683703002/diff/280001/chrome/browser/apps/custom_launcher_page_browsertest_views.cc File chrome/browser/apps/custom_launcher_page_browsertest_views.cc (right): https://codereview.chromium.org/683703002/diff/280001/chrome/browser/apps/custom_launcher_page_browsertest_views.cc#newcode88 chrome/browser/apps/custom_launcher_page_browsertest_views.cc:88: contents_view->SetActivePage(contents_view->GetPageIndexForState( On 2014/11/07 05:34:56, tapted wrote: > You might ...
6 years, 1 month ago (2014-11-10 03:38:30 UTC) #24
benwells
extensions lgtm
6 years, 1 month ago (2014-11-10 03:42:01 UTC) #25
calamity
TBR-ing oshima for ash and athena new AppListViewDelegate methods.
6 years, 1 month ago (2014-11-10 03:43:34 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/683703002/300001
6 years, 1 month ago (2014-11-10 04:21:43 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/32668)
6 years, 1 month ago (2014-11-10 04:42:35 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/32668)
6 years, 1 month ago (2014-11-10 04:42:51 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/683703002/320001
6 years, 1 month ago (2014-11-10 05:25:42 UTC) #34
commit-bot: I haz the power
Committed patchset #13 (id:320001)
6 years, 1 month ago (2014-11-10 06:24:25 UTC) #35
commit-bot: I haz the power
6 years, 1 month ago (2014-11-10 06:25:00 UTC) #36
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/d2b6be4e2ef7a38d503deb1f89ca96b16c85effb
Cr-Commit-Position: refs/heads/master@{#303427}

Powered by Google App Engine
This is Rietveld 408576698