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

Issue 1403293003: Introduce AndroidFocusRules and NativeWidgetAndroid (Closed)

Created:
5 years, 2 months ago by bshe
Modified:
5 years, 1 month ago
Reviewers:
sadrul, mfomitchev, sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce AndroidFocusRules and NativeWidgetAndroid NativeWidgetAndroidis very similar to NativeWidgetAura. It owns a WindowTreeHost and FocusController which initialized from AndroidFocusRules. Aura on Android should use this native widget for top level windows. It should create and host the Widget in a native Android window. BUG=507792 Committed: https://crrev.com/31db6ee3532c748f40d2ae00514b5d91031d78e7 Cr-Commit-Position: refs/heads/master@{#360645}

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : Add NOTIMPLEMENTED #

Total comments: 54

Patch Set 6 : #

Total comments: 34

Patch Set 7 : reviews #

Total comments: 18

Patch Set 8 : reviews #

Total comments: 8

Patch Set 9 : reviews #

Patch Set 10 : reviews #

Patch Set 11 : #

Total comments: 4

Patch Set 12 : reviews #

Total comments: 8

Patch Set 13 : reviews #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -749 lines) Patch
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 3 7 8 9 10 11 12 2 chunks +8 lines, -0 lines 0 comments Download
M ui/views/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
A + ui/views/widget/android/android_focus_rules.h View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -13 lines 0 comments Download
A + ui/views/widget/android/android_focus_rules.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -13 lines 0 comments Download
A + ui/views/widget/android/native_widget_android.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +41 lines, -26 lines 0 comments Download
A + ui/views/widget/android/native_widget_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 chunks +361 lines, -695 lines 0 comments Download
M ui/views/widget/native_widget_aura.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 58 (27 generated)
bshe
Hey Sadrul. Do you mind to take a look at this CL? It introduce AndroidFocusRules ...
5 years, 2 months ago (2015-10-16 18:16:49 UTC) #2
bshe
+ mfomitchev
5 years, 2 months ago (2015-10-16 18:17:28 UTC) #3
sadrul
https://codereview.chromium.org/1403293003/diff/20001/ui/wm/android/android_focus_rules.cc File ui/wm/android/android_focus_rules.cc (right): https://codereview.chromium.org/1403293003/diff/20001/ui/wm/android/android_focus_rules.cc#newcode21 ui/wm/android/android_focus_rules.cc:21: return false; return window->IsRootWindow(); https://codereview.chromium.org/1403293003/diff/20001/ui/wm/test/wm_test_helper.cc File ui/wm/test/wm_test_helper.cc (right): https://codereview.chromium.org/1403293003/diff/20001/ui/wm/test/wm_test_helper.cc#newcode36 ...
5 years, 2 months ago (2015-10-19 15:36:12 UTC) #4
mfomitchev
https://codereview.chromium.org/1403293003/diff/60001/ui/wm/android/window_tree_host_manager.h File ui/wm/android/window_tree_host_manager.h (right): https://codereview.chromium.org/1403293003/diff/60001/ui/wm/android/window_tree_host_manager.h#newcode39 ui/wm/android/window_tree_host_manager.h:39: class WindowTreeHostManager : public aura::client::WindowTreeClient { Perhaps we should ...
5 years, 2 months ago (2015-10-21 21:32:01 UTC) #7
bshe
This is in a better shape for review now. PTAL, thanks! According to offline discussion, ...
5 years, 1 month ago (2015-11-03 19:40:39 UTC) #14
sadrul
Mostly nits. https://codereview.chromium.org/1403293003/diff/180001/ui/views/widget/android/android_focus_rules.h File ui/views/widget/android/android_focus_rules.h (right): https://codereview.chromium.org/1403293003/diff/180001/ui/views/widget/android/android_focus_rules.h#newcode1 ui/views/widget/android/android_focus_rules.h:1: // Copyright (c) 2015 The Chromium Authors. ...
5 years, 1 month ago (2015-11-04 19:00:53 UTC) #15
mfomitchev
https://codereview.chromium.org/1403293003/diff/180001/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/1403293003/diff/180001/chrome/browser/ui/views/chrome_views_delegate.cc#newcode396 chrome/browser/ui/views/chrome_views_delegate.cc:396: new views::NativeWidgetAura(delegate); So we are using both NativeWidgetAndroid and ...
5 years, 1 month ago (2015-11-04 23:21:14 UTC) #16
mfomitchev
https://codereview.chromium.org/1403293003/diff/220001/ui/views/widget/android/native_widget_android.cc File ui/views/widget/android/native_widget_android.cc (right): https://codereview.chromium.org/1403293003/diff/220001/ui/views/widget/android/native_widget_android.cc#newcode86 ui/views/widget/android/native_widget_android.cc:86: class AndroidDispatcherClient : public aura::client::DispatcherClient { We are trying ...
5 years, 1 month ago (2015-11-06 16:45:51 UTC) #18
bshe
I think I have addressed all reviews. Some of the reviews might not be valid ...
5 years, 1 month ago (2015-11-11 00:38:30 UTC) #26
mfomitchev
Looks pretty good, mostly minor comments. Maybe at some point we could look into sharing ...
5 years, 1 month ago (2015-11-11 22:40:33 UTC) #28
bshe
https://codereview.chromium.org/1403293003/diff/380001/ui/views/widget/desktop_android/desktop_native_widget_android.cc File ui/views/widget/desktop_android/desktop_native_widget_android.cc (right): https://codereview.chromium.org/1403293003/diff/380001/ui/views/widget/desktop_android/desktop_native_widget_android.cc#newcode52 ui/views/widget/desktop_android/desktop_native_widget_android.cc:52: // TODO(bshe): Most of the code is copied from ...
5 years, 1 month ago (2015-11-12 16:19:41 UTC) #30
mfomitchev
LGTM
5 years, 1 month ago (2015-11-12 16:31:00 UTC) #31
bshe
sadrul@ do you mind to take another look? +sky for owners too
5 years, 1 month ago (2015-11-16 18:07:40 UTC) #33
sadrul
The more I see desktop_android, the more I tend to think that it should be ...
5 years, 1 month ago (2015-11-16 19:48:20 UTC) #34
sky
I agree with Sadrul on naming. I would also put this code in a ui/views/widget/android, ...
5 years, 1 month ago (2015-11-16 22:06:55 UTC) #35
bshe
Changed name to NativeWidgeAndroid and addressed comments. PTAL, thanks! https://codereview.chromium.org/1403293003/diff/420001/ui/views/widget/desktop_android/android_focus_rules.cc File ui/views/widget/desktop_android/android_focus_rules.cc (right): https://codereview.chromium.org/1403293003/diff/420001/ui/views/widget/desktop_android/android_focus_rules.cc#newcode1 ui/views/widget/desktop_android/android_focus_rules.cc:1: ...
5 years, 1 month ago (2015-11-17 16:44:31 UTC) #38
mfomitchev
Can you please update the title and the description of the CL?
5 years, 1 month ago (2015-11-17 17:02:41 UTC) #39
bshe
On 2015/11/17 17:02:41, mfomitchev wrote: > Can you please update the title and the description ...
5 years, 1 month ago (2015-11-17 17:11:31 UTC) #41
bshe
On 2015/11/17 17:11:31, bshe wrote: > On 2015/11/17 17:02:41, mfomitchev wrote: > > Can you ...
5 years, 1 month ago (2015-11-18 19:04:39 UTC) #42
sky
LGTM when you get it compiling. https://codereview.chromium.org/1403293003/diff/520001/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/1403293003/diff/520001/chrome/browser/ui/views/chrome_views_delegate.cc#newcode56 chrome/browser/ui/views/chrome_views_delegate.cc:56: #include "ui/views/widget/desktop_android/desktop_native_widget_android.h" Fix ...
5 years, 1 month ago (2015-11-18 19:11:07 UTC) #43
bshe
Thanks! https://codereview.chromium.org/1403293003/diff/520001/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/1403293003/diff/520001/chrome/browser/ui/views/chrome_views_delegate.cc#newcode56 chrome/browser/ui/views/chrome_views_delegate.cc:56: #include "ui/views/widget/desktop_android/desktop_native_widget_android.h" On 2015/11/18 19:11:06, sky wrote: > ...
5 years, 1 month ago (2015-11-18 19:29:52 UTC) #44
sadrul
https://codereview.chromium.org/1403293003/diff/540001/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/1403293003/diff/540001/chrome/browser/ui/views/chrome_views_delegate.cc#newcode412 chrome/browser/ui/views/chrome_views_delegate.cc:412: params->native_widget = new views::DesktopNativeWidgetAndroid(delegate); s/Desktop// https://codereview.chromium.org/1403293003/diff/540001/ui/views/widget/android/native_widget_android.cc File ui/views/widget/android/native_widget_android.cc (right): ...
5 years, 1 month ago (2015-11-18 20:07:39 UTC) #45
bshe
Thanks for review! https://codereview.chromium.org/1403293003/diff/540001/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/1403293003/diff/540001/chrome/browser/ui/views/chrome_views_delegate.cc#newcode412 chrome/browser/ui/views/chrome_views_delegate.cc:412: params->native_widget = new views::DesktopNativeWidgetAndroid(delegate); On 2015/11/18 ...
5 years, 1 month ago (2015-11-18 20:57:53 UTC) #46
sadrul
lgtm
5 years, 1 month ago (2015-11-18 23:10:25 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403293003/560001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403293003/560001
5 years, 1 month ago (2015-11-19 15:06:11 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/90629) linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 1 month ago (2015-11-19 15:26:33 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403293003/560001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403293003/560001
5 years, 1 month ago (2015-11-19 19:35:55 UTC) #54
commit-bot: I haz the power
Committed patchset #13 (id:560001)
5 years, 1 month ago (2015-11-19 19:48:04 UTC) #55
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/31db6ee3532c748f40d2ae00514b5d91031d78e7 Cr-Commit-Position: refs/heads/master@{#360645}
5 years, 1 month ago (2015-11-19 19:48:43 UTC) #56
bshe
A revert of this CL (patchset #13 id:560001) has been created in https://codereview.chromium.org/1620463004/ by bshe@chromium.org. ...
4 years, 11 months ago (2016-01-22 15:14:10 UTC) #57
mfomitchev
4 years, 11 months ago (2016-01-26 20:55:11 UTC) #58
Message was sent while issue was closed.
A revert of this CL (patchset #13 id:560001) has been created in
https://codereview.chromium.org/1639003002/ by mfomitchev@chromium.org.

The reason for reverting is: Reverting the CL as the Android Aura project has
been cancelled..

Powered by Google App Engine
This is Rietveld 408576698