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

Issue 335003003: Introduces AppActivity and handler of chrome.shell API. (Closed)

Created:
6 years, 6 months ago by Jun Mukai
Modified:
6 years, 6 months ago
Reviewers:
James Cook, oshima
CC:
chromium-reviews, tfarina, darin-cc_chromium.org, jam, chromium-apps-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Introduces AppActivity and handler of chrome.shell API. Now, clicking the app item just emits onLaunched event, and the app will create an app window on the event handler. The API handler creates a ShellAppWindow for app_shell, but it should create an activity on athena. BUG=380421 R=jamescook@chromium.org, oshima@chromium.org TEST=manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277841

Patch Set 1 #

Patch Set 2 : add files #

Patch Set 3 : AppWindowOwner #

Total comments: 14

Patch Set 4 : rebase #

Patch Set 5 : fix #

Patch Set 6 : AppWindow ownership #

Total comments: 9

Patch Set 7 : fix #

Patch Set 8 : fix #

Total comments: 2

Patch Set 9 : comment #

Patch Set 10 : build fix #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -75 lines) Patch
M apps/shell/app_shell.gyp View 1 chunk +3 lines, -0 lines 0 comments Download
A apps/shell/browser/default_shell_app_window_controller.h View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A apps/shell/browser/default_shell_app_window_controller.cc View 1 1 chunk +45 lines, -0 lines 0 comments Download
M apps/shell/browser/default_shell_browser_main_delegate.cc View 2 chunks +4 lines, -1 line 0 comments Download
A apps/shell/browser/shell_app_window_controller.h View 1 1 chunk +30 lines, -0 lines 0 comments Download
M apps/shell/browser/shell_desktop_controller.h View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -3 lines 0 comments Download
M apps/shell/browser/shell_desktop_controller.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +13 lines, -16 lines 0 comments Download
M apps/shell/test/shell_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M athena/activity/public/activity_factory.h View 1 2 3 4 5 2 chunks +7 lines, -3 lines 0 comments Download
M athena/athena.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
A + athena/content/app_activity.h View 1 2 3 4 5 3 chunks +10 lines, -11 lines 0 comments Download
A athena/content/app_activity.cc View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
M athena/content/content_activity_factory.cc View 1 2 3 4 5 2 chunks +3 lines, -18 lines 0 comments Download
M athena/content/content_app_model_builder.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +17 lines, -14 lines 0 comments Download
M athena/content/public/content_activity_factory.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M athena/content/web_activity.h View 2 chunks +2 lines, -0 lines 0 comments Download
M athena/main/DEPS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A athena/main/athena_app_window_controller.h View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
A athena/main/athena_app_window_controller.cc View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
M athena/main/athena_main.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -1 line 0 comments Download
M athena/main/athena_main.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M athena/test/sample_activity_factory.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M athena/test/sample_activity_factory.cc View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Jun Mukai
6 years, 6 months ago (2014-06-14 01:22:01 UTC) #1
James Cook
Looking good, just a few small comments. https://codereview.chromium.org/335003003/diff/30001/apps/shell/browser/default_shell_app_window_controller.h File apps/shell/browser/default_shell_app_window_controller.h (right): https://codereview.chromium.org/335003003/diff/30001/apps/shell/browser/default_shell_app_window_controller.h#newcode17 apps/shell/browser/default_shell_app_window_controller.h:17: // app_window. ...
6 years, 6 months ago (2014-06-16 16:12:31 UTC) #2
Jun Mukai
https://codereview.chromium.org/335003003/diff/30001/apps/shell/browser/default_shell_app_window_controller.h File apps/shell/browser/default_shell_app_window_controller.h (right): https://codereview.chromium.org/335003003/diff/30001/apps/shell/browser/default_shell_app_window_controller.h#newcode20 apps/shell/browser/default_shell_app_window_controller.h:20: DefaultShellAppWindowController( On 2014/06/16 16:12:30, James Cook wrote: > explicit ...
6 years, 6 months ago (2014-06-16 17:46:52 UTC) #3
Jun Mukai
https://codereview.chromium.org/335003003/diff/30001/athena/main/athena_app_window_controller.cc File athena/main/athena_app_window_controller.cc (right): https://codereview.chromium.org/335003003/diff/30001/athena/main/athena_app_window_controller.cc#newcode17 athena/main/athena_app_window_controller.cc:17: class AppWindowOwner : public content::WebContentsObserver { On 2014/06/16 17:46:52, ...
6 years, 6 months ago (2014-06-16 17:58:11 UTC) #4
oshima
The design is ok for now, but I think we need two changes in near ...
6 years, 6 months ago (2014-06-16 18:40:08 UTC) #5
Jun Mukai
https://codereview.chromium.org/335003003/diff/90001/apps/shell/browser/shell_desktop_controller.cc File apps/shell/browser/shell_desktop_controller.cc (right): https://codereview.chromium.org/335003003/diff/90001/apps/shell/browser/shell_desktop_controller.cc#newcode194 apps/shell/browser/shell_desktop_controller.cc:194: return app_window_controller_ On 2014/06/16 18:40:08, oshima wrote: > then ...
6 years, 6 months ago (2014-06-16 18:48:15 UTC) #6
oshima
lgtm https://codereview.chromium.org/335003003/diff/90001/apps/shell/browser/shell_desktop_controller.h File apps/shell/browser/shell_desktop_controller.h (right): https://codereview.chromium.org/335003003/diff/90001/apps/shell/browser/shell_desktop_controller.h#newcode76 apps/shell/browser/shell_desktop_controller.h:76: void SetAppWindowController(ShellAppWindowController* app_window_controller); On 2014/06/16 18:48:15, Jun Mukai ...
6 years, 6 months ago (2014-06-16 18:53:16 UTC) #7
Jun Mukai
https://codereview.chromium.org/335003003/diff/90001/athena/content/app_activity.cc File athena/content/app_activity.cc (right): https://codereview.chromium.org/335003003/diff/90001/athena/content/app_activity.cc#newcode14 athena/content/app_activity.cc:14: // AppActivity is similar to WebActivity but doesn't have ...
6 years, 6 months ago (2014-06-16 18:59:33 UTC) #8
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 6 months ago (2014-06-16 18:59:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/335003003/130001
6 years, 6 months ago (2014-06-16 19:00:44 UTC) #10
James Cook
lgtm https://codereview.chromium.org/335003003/diff/130001/apps/shell/browser/shell_desktop_controller.h File apps/shell/browser/shell_desktop_controller.h (right): https://codereview.chromium.org/335003003/diff/130001/apps/shell/browser/shell_desktop_controller.h#newcode76 apps/shell/browser/shell_desktop_controller.h:76: void SetAppWindowController(ShellAppWindowController* app_window_controller); nit: Comment that it takes ...
6 years, 6 months ago (2014-06-16 20:20:32 UTC) #11
Jun Mukai
The CQ bit was unchecked by mukai@chromium.org
6 years, 6 months ago (2014-06-16 20:29:17 UTC) #12
Jun Mukai
On 2014/06/16 20:20:32, James Cook wrote: > lgtm > > https://codereview.chromium.org/335003003/diff/130001/apps/shell/browser/shell_desktop_controller.h > File apps/shell/browser/shell_desktop_controller.h (right): ...
6 years, 6 months ago (2014-06-16 20:35:06 UTC) #13
Jun Mukai
https://codereview.chromium.org/335003003/diff/130001/apps/shell/browser/shell_desktop_controller.h File apps/shell/browser/shell_desktop_controller.h (right): https://codereview.chromium.org/335003003/diff/130001/apps/shell/browser/shell_desktop_controller.h#newcode76 apps/shell/browser/shell_desktop_controller.h:76: void SetAppWindowController(ShellAppWindowController* app_window_controller); On 2014/06/16 20:20:32, James Cook wrote: ...
6 years, 6 months ago (2014-06-16 20:44:21 UTC) #14
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 6 months ago (2014-06-17 16:54:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/335003003/190001
6 years, 6 months ago (2014-06-17 16:57:28 UTC) #16
commit-bot: I haz the power
6 years, 6 months ago (2014-06-17 20:07:16 UTC) #17
Message was sent while issue was closed.
Change committed as 277841

Powered by Google App Engine
This is Rietveld 408576698