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

Issue 1284343005: NOT FOR REVIEW: Aura on Android - content shell compiles

Created:
5 years, 4 months ago by mfomitchev
Modified:
5 years, 4 months ago
Reviewers:
Yaron, sadrul, no sievers
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, sadrul, kalyank, zea+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, tfarina, mlamouri+watch-notifications_chromium.org, jam, android-webview-reviews_chromium.org, wifiprefetch-reviews_google.com, darin-cc_chromium.org, gunsch+watch_chromium.org, peter+watch_chromium.org, lcwu+watch_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@build_ALL_patch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

NOT FOR REVIEW: Aura on Android - content shell compiles This is on top of the changes in https://codereview.chromium.org/1256053002/ Major changes: 1. Using shell_views, got rid of shell_android.cc. 2. Got rid of ShellManager, and stripped down Shell.java. I was planning to potentially expose the native Shell::CreateNewWindow() method through Shell.java since we don't have ShellManager::launchSHell anymore - see review comment in ContentShellActivity.finishInitialization. 3. BrowserStartupController sets Activity as the "application context". This is done so that PlatformWindowAndroid::Show() can initialize the Java PlatformWindowAndroid, which sets itself as the content view on the activity. 4. Added WindowTreeHostAndroid - basically a copy of WindowTreeHostOzone with a couple of small changes. BUG=513795

Patch Set 1 #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+466 lines, -408 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeBrowserProvider.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/invalidation/ChromiumSyncAdapter.java View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationService.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheService.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/services/AccountsChangedReceiver.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerTest.java View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeaderTest.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/preferences/ChromeShellPreferences.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/signin/AccountsChangedReceiver.java View 1 chunk +1 line, -1 line 0 comments Download
M chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastBrowserHelper.java View 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M content/content_shell.gypi View 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/BackgroundSyncLauncherService.java View 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java View 2 chunks +11 lines, -4 lines 0 comments Download
M content/public/test/android/javatests/src/org/chromium/content/browser/test/NativeLibraryTestBase.java View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/android/BUILD.gn View 5 chunks +34 lines, -3 lines 0 comments Download
A + content/shell/android/aura_shell_apk/AndroidManifest.xml.jinja2 View 0 chunks +-1 lines, --1 lines 0 comments Download
A + content/shell/android/aura_shell_apk/res/layout/content_shell_activity.xml View 1 chunk +1 line, -1 line 1 comment Download
A + content/shell/android/aura_shell_apk/res/values/strings.xml View 0 chunks +-1 lines, --1 lines 0 comments Download
A + content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java View 10 chunks +63 lines, -84 lines 6 comments Download
A + content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellApplication.java View 2 chunks +6 lines, -5 lines 0 comments Download
M content/shell/android/browsertests/src/org/chromium/content_shell/browsertests/ContentShellBrowserTestActivity.java View 1 chunk +3 lines, -2 lines 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/Shell.java View 6 chunks +112 lines, -264 lines 0 comments Download
M content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestActivity.java View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java View 2 chunks +2 lines, -2 lines 0 comments Download
M content/shell/android/shell_library_loader.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/browser/shell.h View 3 chunks +5 lines, -3 lines 0 comments Download
M content/shell/browser/shell.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/shell/browser/shell_views.cc View 3 chunks +25 lines, -0 lines 0 comments Download
M ui/aura/BUILD.gn View 2 chunks +6 lines, -0 lines 0 comments Download
M ui/aura/window_tree_host.cc View 1 chunk +0 lines, -11 lines 0 comments Download
A + ui/aura/window_tree_host_android.h View 2 chunks +5 lines, -5 lines 3 comments Download
A ui/aura/window_tree_host_android.cc View 1 chunk +125 lines, -0 lines 1 comment Download
M ui/platform_window/android/BUILD.gn View 2 chunks +4 lines, -0 lines 0 comments Download
A ui/platform_window/android/android_window_export.h View 1 chunk +30 lines, -0 lines 0 comments Download
M ui/platform_window/android/platform_window_android.h View 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/webview/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A + ui/views/controls/webview/unhandled_keyboard_event_handler_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/webview/webview.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (3 generated)
mfomitchev
https://codereview.chromium.org/1284343005/diff/1/content/shell/android/aura_shell_apk/res/layout/content_shell_activity.xml File content/shell/android/aura_shell_apk/res/layout/content_shell_activity.xml (right): https://codereview.chromium.org/1284343005/diff/1/content/shell/android/aura_shell_apk/res/layout/content_shell_activity.xml#newcode10 content/shell/android/aura_shell_apk/res/layout/content_shell_activity.xml:10: <org.chromium.aura_content_shell_apk.ShellManager Ok, using ShellManager here is clearly wrong. I ...
5 years, 4 months ago (2015-08-12 22:18:46 UTC) #1
Yaron
https://codereview.chromium.org/1284343005/diff/1/content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java File content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java (right): https://codereview.chromium.org/1284343005/diff/1/content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java#newcode133 content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java:133: // mShellManager.launchShell(shellUrl); On 2015/08/12 22:18:46, mfomitchev wrote: > So.. ...
5 years, 4 months ago (2015-08-13 13:40:07 UTC) #3
mfomitchev
https://codereview.chromium.org/1284343005/diff/1/content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java File content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java (right): https://codereview.chromium.org/1284343005/diff/1/content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java#newcode133 content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java:133: // mShellManager.launchShell(shellUrl); Let me see if I understand this ...
5 years, 4 months ago (2015-08-13 15:33:04 UTC) #4
sadrul
non-review comment: https://codereview.chromium.org/1284343005/diff/1/ui/aura/window_tree_host_android.h File ui/aura/window_tree_host_android.h (right): https://codereview.chromium.org/1284343005/diff/1/ui/aura/window_tree_host_android.h#newcode64 ui/aura/window_tree_host_android.h:64: DISALLOW_COPY_AND_ASSIGN(WindowTreeHostAndroid); We should, of course, have a ...
5 years, 4 months ago (2015-08-13 18:31:28 UTC) #6
Yaron
https://codereview.chromium.org/1284343005/diff/1/content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java File content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java (right): https://codereview.chromium.org/1284343005/diff/1/content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java#newcode133 content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java:133: // mShellManager.launchShell(shellUrl); On 2015/08/13 15:33:03, mfomitchev wrote: > Let ...
5 years, 4 months ago (2015-08-13 18:54:03 UTC) #7
mfomitchev
https://codereview.chromium.org/1284343005/diff/1/content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java File content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java (right): https://codereview.chromium.org/1284343005/diff/1/content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java#newcode133 content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java:133: // mShellManager.launchShell(shellUrl); On 2015/08/13 18:54:03, Yaron wrote: > On ...
5 years, 4 months ago (2015-08-13 21:08:23 UTC) #8
sadrul
https://codereview.chromium.org/1284343005/diff/1/ui/aura/window_tree_host_android.h File ui/aura/window_tree_host_android.h (right): https://codereview.chromium.org/1284343005/diff/1/ui/aura/window_tree_host_android.h#newcode64 ui/aura/window_tree_host_android.h:64: DISALLOW_COPY_AND_ASSIGN(WindowTreeHostAndroid); On 2015/08/13 21:08:23, mfomitchev wrote: > On 2015/08/13 ...
5 years, 4 months ago (2015-08-13 21:33:20 UTC) #9
Yaron
https://codereview.chromium.org/1284343005/diff/1/content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java File content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java (right): https://codereview.chromium.org/1284343005/diff/1/content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java#newcode133 content/shell/android/aura_shell_apk/src/org/chromium/aura_content_shell_apk/ContentShellActivity.java:133: // mShellManager.launchShell(shellUrl); On 2015/08/13 21:08:23, mfomitchev wrote: > On ...
5 years, 4 months ago (2015-08-14 15:10:24 UTC) #10
no sievers
5 years, 4 months ago (2015-08-15 01:21:40 UTC) #12
https://codereview.chromium.org/1284343005/diff/1/ui/aura/window_tree_host_an...
File ui/aura/window_tree_host_android.cc (right):

https://codereview.chromium.org/1284343005/diff/1/ui/aura/window_tree_host_an...
ui/aura/window_tree_host_android.cc:108: CreateCompositor(widget_);
Generally this might be good enough to get you going with --in-process-gpu.
But see comments in 513540 - I don't think we can really defer the compositor
creation until here.

Powered by Google App Engine
This is Rietveld 408576698