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

Issue 696063008: Refactor ShellDesktopController and ShellNativeAppWindow to allow for non-aura implementations. (Closed)

Created:
6 years, 1 month ago by Yoyo Zhou
Modified:
6 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Ken Rockot(use gerrit already)
Base URL:
https://chromium.googlesource.com/chromium/src@master
Project:
chromium
Visibility:
Public.

Description

Refactor ShellDesktopController and ShellNativeAppWindow to allow for non-Aura implementations. Rename ShellDesktopController to ShellDesktopControllerAura; make ShellNativeAppWindow implement only some of the BaseWindow methods, and move aura-specific bits to ShellNativeAppWindowAura. Adds a unit test for ShellNativeAppWindowAura. This is a precursor to a Cocoa implementation for Mac. BUG=399363 TBR=danakj@chromium.org,reed@google.com Committed: https://crrev.com/0e463fafeca7afbda7e4060a7ce591f7eab82c2f Cr-Commit-Position: refs/heads/master@{#304897}

Patch Set 1 : #

Total comments: 28

Patch Set 2 : cleanup app_window + unittest #

Patch Set 3 : rebase #

Total comments: 19

Patch Set 4 : revue #

Total comments: 2

Patch Set 5 : alpha #

Patch Set 6 : rebase #

Patch Set 7 : gn #

Patch Set 8 : + #

Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -804 lines) Patch
M athena/main/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M athena/main/athena_main_delegate.cc View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/power/process_power_collector_unittest.cc View 1 4 chunks +2 lines, -25 lines 0 comments Download
M extensions/browser/app_window/app_window.cc View 1 2 3 4 chunks +13 lines, -13 lines 0 comments Download
A extensions/browser/app_window/test_app_window_contents.h View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A extensions/browser/app_window/test_app_window_contents.cc View 1 1 chunk +39 lines, -0 lines 0 comments Download
M extensions/browser/extensions_test.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/shell/BUILD.gn View 1 2 3 4 5 6 3 chunks +5 lines, -2 lines 0 comments Download
M extensions/shell/app/shell_main_delegate.h View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/shell/app/shell_main_delegate.cc View 1 2 chunks +6 lines, -1 line 0 comments Download
M extensions/shell/app_shell.gyp View 1 2 3 4 5 6 7 5 chunks +18 lines, -4 lines 0 comments Download
M extensions/shell/browser/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/browser/default_shell_browser_main_delegate.cc View 1 2 3 4 5 2 chunks +9 lines, -2 lines 0 comments Download
M extensions/shell/browser/desktop_controller.h View 4 chunks +13 lines, -5 lines 0 comments Download
M extensions/shell/browser/shell_app_window_client.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_app_window_client.cc View 1 2 3 2 chunks +0 lines, -11 lines 0 comments Download
A + extensions/shell/browser/shell_app_window_client_aura.cc View 1 2 3 1 chunk +2 lines, -26 lines 0 comments Download
M extensions/shell/browser/shell_browser_main_delegate.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M extensions/shell/browser/shell_browser_main_parts.cc View 1 2 3 chunks +7 lines, -3 lines 0 comments Download
D extensions/shell/browser/shell_desktop_controller.h View 1 chunk +0 lines, -145 lines 0 comments Download
D extensions/shell/browser/shell_desktop_controller.cc View 1 chunk +0 lines, -361 lines 0 comments Download
A + extensions/shell/browser/shell_desktop_controller_aura.h View 1 4 chunks +19 lines, -18 lines 0 comments Download
A + extensions/shell/browser/shell_desktop_controller_aura.cc View 12 chunks +26 lines, -24 lines 0 comments Download
A + extensions/shell/browser/shell_desktop_controller_aura_unittest.cc View 4 chunks +8 lines, -8 lines 0 comments Download
D extensions/shell/browser/shell_desktop_controller_unittest.cc View 1 chunk +0 lines, -75 lines 0 comments Download
M extensions/shell/browser/shell_native_app_window.h View 2 chunks +2 lines, -10 lines 0 comments Download
M extensions/shell/browser/shell_native_app_window.cc View 1 2 3 4 5 6 7 chunks +3 lines, -63 lines 0 comments Download
A extensions/shell/browser/shell_native_app_window_aura.h View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
A extensions/shell/browser/shell_native_app_window_aura.cc View 1 1 chunk +71 lines, -0 lines 0 comments Download
A extensions/shell/browser/shell_native_app_window_aura_unittest.cc View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
M extensions/shell/test/shell_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (5 generated)
Yoyo Zhou
https://codereview.chromium.org/696063008/diff/20001/extensions/shell/browser/default_shell_browser_main_delegate.cc File extensions/shell/browser/default_shell_browser_main_delegate.cc (right): https://codereview.chromium.org/696063008/diff/20001/extensions/shell/browser/default_shell_browser_main_delegate.cc#newcode59 extensions/shell/browser/default_shell_browser_main_delegate.cc:59: #if defined(USE_AURA) These look a little funny now, but ...
6 years, 1 month ago (2014-11-11 01:55:31 UTC) #3
James Cook
Overall approach looks good, questions on some details. https://codereview.chromium.org/696063008/diff/20001/extensions/shell/app/shell_main_delegate.cc File extensions/shell/app/shell_main_delegate.cc (right): https://codereview.chromium.org/696063008/diff/20001/extensions/shell/app/shell_main_delegate.cc#newcode25 extensions/shell/app/shell_main_delegate.cc:25: #if ...
6 years, 1 month ago (2014-11-11 18:23:53 UTC) #4
Yoyo Zhou
I added a test, but it ended up being somewhat more involved than I think ...
6 years, 1 month ago (2014-11-15 01:05:45 UTC) #5
James Cook
Have to run to an interview, I'll finish review when I'm back https://codereview.chromium.org/696063008/diff/20001/extensions/shell/browser/shell_app_window_client.cc File extensions/shell/browser/shell_app_window_client.cc ...
6 years, 1 month ago (2014-11-17 17:48:36 UTC) #6
Yoyo Zhou
Just responding to this question first: https://codereview.chromium.org/696063008/diff/20001/extensions/shell/browser/shell_app_window_client.cc File extensions/shell/browser/shell_app_window_client.cc (right): https://codereview.chromium.org/696063008/diff/20001/extensions/shell/browser/shell_app_window_client.cc#newcode30 extensions/shell/browser/shell_app_window_client.cc:30: #if defined(USE_AURA) On ...
6 years, 1 month ago (2014-11-17 19:35:55 UTC) #7
James Cook
Looking good, just nits at this point https://codereview.chromium.org/696063008/diff/20001/extensions/shell/browser/shell_app_window_client.cc File extensions/shell/browser/shell_app_window_client.cc (right): https://codereview.chromium.org/696063008/diff/20001/extensions/shell/browser/shell_app_window_client.cc#newcode30 extensions/shell/browser/shell_app_window_client.cc:30: #if defined(USE_AURA) ...
6 years, 1 month ago (2014-11-17 20:54:22 UTC) #8
Yoyo Zhou
https://codereview.chromium.org/696063008/diff/20001/extensions/shell/browser/shell_app_window_client.cc File extensions/shell/browser/shell_app_window_client.cc (right): https://codereview.chromium.org/696063008/diff/20001/extensions/shell/browser/shell_app_window_client.cc#newcode30 extensions/shell/browser/shell_app_window_client.cc:30: #if defined(USE_AURA) On 2014/11/17 20:54:22, James Cook wrote: > ...
6 years, 1 month ago (2014-11-17 23:55:27 UTC) #9
Yoyo Zhou
derat: please review chrome/browser/power/process_power_collector_unittest.cc oshima: please review athena/ danakj: please review DEPS addition +ui/gfx in ...
6 years, 1 month ago (2014-11-17 23:57:05 UTC) #10
Yoyo Zhou
Let's try that again... derat: please review chrome/browser/power/process_power_collector_unittest.cc oshima: please review athena/ danakj: please review ...
6 years, 1 month ago (2014-11-17 23:57:37 UTC) #12
Daniel Erat
chrome/browser/power/process_power_collector_unittest.cc lgtm
6 years, 1 month ago (2014-11-17 23:58:47 UTC) #13
oshima
athena lgtm
6 years, 1 month ago (2014-11-18 00:06:18 UTC) #14
James Cook
LGTM with nit https://codereview.chromium.org/696063008/diff/80001/extensions/browser/app_window/test_app_window_contents.h File extensions/browser/app_window/test_app_window_contents.h (right): https://codereview.chromium.org/696063008/diff/80001/extensions/browser/app_window/test_app_window_contents.h#newcode10 extensions/browser/app_window/test_app_window_contents.h:10: #include "base/macros.h" nit: alphabetize, since this ...
6 years, 1 month ago (2014-11-18 00:12:27 UTC) #15
Yoyo Zhou
On 2014/11/18 00:12:27, James Cook wrote: > LGTM with nit > > https://codereview.chromium.org/696063008/diff/80001/extensions/browser/app_window/test_app_window_contents.h > File ...
6 years, 1 month ago (2014-11-18 00:14:03 UTC) #16
Yoyo Zhou
I had to fix some build issues - apparently gn is used to build app_shell, ...
6 years, 1 month ago (2014-11-18 01:46:07 UTC) #18
Yoyo Zhou
danakj, reed: ping? These are somewhat trivial DEPS additions, so I will TBR tomorrow if ...
6 years, 1 month ago (2014-11-19 02:07:14 UTC) #19
Yoyo Zhou
On 2014/11/19 02:07:14, Yoyo Zhou wrote: > danakj, reed: ping? These are somewhat trivial DEPS ...
6 years, 1 month ago (2014-11-19 21:08:58 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/696063008/160001
6 years, 1 month ago (2014-11-19 21:09:52 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:160001)
6 years, 1 month ago (2014-11-19 22:00:57 UTC) #23
commit-bot: I haz the power
6 years, 1 month ago (2014-11-19 22:02:29 UTC) #24
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/0e463fafeca7afbda7e4060a7ce591f7eab82c2f
Cr-Commit-Position: refs/heads/master@{#304897}

Powered by Google App Engine
This is Rietveld 408576698