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

Issue 166833004: Add support for chrome.app.window.create() to app_shell (Closed)

Created:
6 years, 10 months ago by James Cook
Modified:
6 years, 10 months ago
Reviewers:
miket_OOO, hokein.wu
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, benwells
Visibility:
Public.

Description

Add support for chrome.app.window.create() to app_shell * Introduce an AppsClient for app_shell * Create an AppsClient for tests * Introduce ShellAppWindowDelegate whose sole purpose is to create a NativeAppWindowViews for windows in app_shell * Extract Chrome-specific code from apps/app_window.cc This is part 2 of 2 and depends on https://codereview.chromium.org/171003004/ BUG=343174 TEST=browser_tests PlatformApp* TBR=sky@chromium.org for chrome/test/base/testing_browser_process.cc Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252820

Patch Set 1 #

Patch Set 2 : rebase (shell_app_window) #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : add logging (shell_app_window) #

Patch Set 5 : rebase (shell_app_window) #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -9 lines) Patch
M apps/app_window.cc View 1 2 4 chunks +3 lines, -3 lines 0 comments Download
M apps/apps.gypi View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M apps/apps_client.h View 2 chunks +13 lines, -0 lines 0 comments Download
A apps/shell/browser/shell_app_window_delegate.h View 1 chunk +57 lines, -0 lines 0 comments Download
A apps/shell/browser/shell_app_window_delegate.cc View 1 2 3 1 chunk +81 lines, -0 lines 0 comments Download
A apps/shell/browser/shell_apps_client.h View 1 chunk +44 lines, -0 lines 0 comments Download
A apps/shell/browser/shell_apps_client.cc View 1 chunk +40 lines, -0 lines 0 comments Download
M apps/shell/browser/shell_browser_main_parts.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M apps/shell/browser/shell_browser_main_parts.cc View 1 2 3 3 chunks +5 lines, -0 lines 2 comments Download
M apps/shell/browser/shell_extension_system.h View 2 chunks +6 lines, -0 lines 0 comments Download
M apps/shell/browser/shell_extension_system.cc View 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/apps/chrome_apps_client.h View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/apps/chrome_apps_client.cc View 3 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_api.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
James Cook
benwells, PTAL.
6 years, 10 months ago (2014-02-20 23:01:17 UTC) #1
James Cook
miket, would you feel comfortable reviewing this? benwells LGTM'd part 1 of this patch set. ...
6 years, 10 months ago (2014-02-21 17:38:01 UTC) #2
miket_OOO
lgtm https://codereview.chromium.org/166833004/diff/30001/apps/apps_client.h File apps/apps_client.h (right): https://codereview.chromium.org/166833004/diff/30001/apps/apps_client.h#newcode41 apps/apps_client.h:41: // after a matching number of calls to ...
6 years, 10 months ago (2014-02-21 18:25:38 UTC) #3
James Cook
https://codereview.chromium.org/166833004/diff/30001/apps/apps_client.h File apps/apps_client.h (right): https://codereview.chromium.org/166833004/diff/30001/apps/apps_client.h#newcode41 apps/apps_client.h:41: // after a matching number of calls to EndKeepAlive() ...
6 years, 10 months ago (2014-02-22 00:11:17 UTC) #4
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 10 months ago (2014-02-22 14:50:33 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/166833004/180001
6 years, 10 months ago (2014-02-22 14:50:44 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-22 15:57:31 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=268511
6 years, 10 months ago (2014-02-22 15:57:31 UTC) #8
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 10 months ago (2014-02-22 18:20:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/166833004/180001
6 years, 10 months ago (2014-02-22 18:20:38 UTC) #10
commit-bot: I haz the power
Change committed as 252820
6 years, 10 months ago (2014-02-22 19:54:00 UTC) #11
Haojian Wu
https://codereview.chromium.org/166833004/diff/180001/apps/shell/browser/shell_browser_main_parts.cc File apps/shell/browser/shell_browser_main_parts.cc (right): https://codereview.chromium.org/166833004/diff/180001/apps/shell/browser/shell_browser_main_parts.cc#newcode168 apps/shell/browser/shell_browser_main_parts.cc:168: void ShellBrowserMainParts::OnWindowTreeHostCloseRequested( James@, could you tell me when will ...
6 years, 10 months ago (2014-02-25 13:48:47 UTC) #12
James Cook
6 years, 10 months ago (2014-02-25 17:47:31 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/166833004/diff/180001/apps/shell/browser/shel...
File apps/shell/browser/shell_browser_main_parts.cc (right):

https://codereview.chromium.org/166833004/diff/180001/apps/shell/browser/shel...
apps/shell/browser/shell_browser_main_parts.cc:168: void
ShellBrowserMainParts::OnWindowTreeHostCloseRequested(
On 2014/02/25 13:48:48, Haojian Wu wrote:
> James@, could you tell me when will this method get invoked?
> 
> I have done some tracks of this method, I don't see any invokes of this
method.
>  
> From the
>
document:https://code.google.com/p/chromium/codesearch#chromium/src/ui/aura/root_window_observer.h&q=nWindowTreeHostCloseRequested&sq=package:chromium&type=cs&l=31
> , it says "Invoked when the native windowing system sends us a request to
close
> our window.". Does this mean when we close the button of app_shell root
window,
> it will be invoked?

I'm not very familiar with that method, but it sounds like it should be called
when the user clicks the close button of the root window.  Someone refactored
this recently -- you might look at the svn blame / git blame for this line and
see what they changed.  Maybe we're not observing the root window correctly.

Powered by Google App Engine
This is Rietveld 408576698