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

Issue 282223002: Store and restore view focus in OnWindowFocused. (Closed)

Created:
6 years, 7 months ago by msw
Modified:
6 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, Ben Goodger (Google), tdanderson+views_chromium.org, Mike Wittman, Greg Billock
Visibility:
Public.

Description

Store and restore view focus in OnWindowFocused. Mimic [Desktop]NativeWidgetAura::OnWindowActivated. Simplify OnNativeBlur calls and OnNative[Blur|Focus] impls. (View focus changes update the TextInputClient as needed) Rewrite and enable related ConstrainedWindowViewTests. Print GetLastError() in SendInput() error case for tests. (key presses get 5/ERROR_ACCESS_DENIED on locked desktops?) BUG=368691, 170331, 177482, 163931 TEST=Automated tests; the focused Views change as expected between the browser, web contents, and web content modal dialogs (print preview, collected cookies, etc.). R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271249

Patch Set 1 #

Patch Set 2 : Cleanup; add flag, comments, and TODOs. #

Patch Set 3 : Ditto for NativeWidgetAura; nix Widget [Blur|Focus]TextInputClient; fix tests. #

Patch Set 4 : Fix web content modal dialog tests and OnNativeBlur calls. #

Patch Set 5 : Refine NavigationOnBackspace; print GetLastError for SendInput failures. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -410 lines) Patch
M chrome/browser/ui/views/constrained_window_views_browsertest.cc View 1 2 3 4 2 chunks +129 lines, -394 lines 0 comments Download
M ui/base/win/foreground_helper.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 3 2 chunks +13 lines, -4 lines 2 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
msw
Hey Scott, please take a look; thanks!
6 years, 7 months ago (2014-05-16 18:06:49 UTC) #1
sky
https://codereview.chromium.org/282223002/diff/250001/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc File ui/views/widget/desktop_aura/desktop_native_widget_aura.cc (right): https://codereview.chromium.org/282223002/diff/250001/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc#newcode1060 ui/views/widget/desktop_aura/desktop_native_widget_aura.cc:1060: void DesktopNativeWidgetAura::OnWindowActivated(aura::Window* gained_active, Is this still needed after your ...
6 years, 7 months ago (2014-05-16 19:41:53 UTC) #2
msw
https://codereview.chromium.org/282223002/diff/250001/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc File ui/views/widget/desktop_aura/desktop_native_widget_aura.cc (right): https://codereview.chromium.org/282223002/diff/250001/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc#newcode1060 ui/views/widget/desktop_aura/desktop_native_widget_aura.cc:1060: void DesktopNativeWidgetAura::OnWindowActivated(aura::Window* gained_active, On 2014/05/16 19:41:54, sky wrote: > ...
6 years, 7 months ago (2014-05-16 19:55:41 UTC) #3
sky
*SIGH* LGTM
6 years, 7 months ago (2014-05-16 19:57:55 UTC) #4
msw
On 2014/05/16 19:57:55, sky wrote: > *SIGH* LGTM :( I'm sorry... But with these re-written ...
6 years, 7 months ago (2014-05-16 20:04:27 UTC) #5
msw
The CQ bit was checked by msw@chromium.org
6 years, 7 months ago (2014-05-16 20:19:17 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/282223002/250001
6 years, 7 months ago (2014-05-16 20:20:31 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-17 01:03:26 UTC) #8
msw
The CQ bit was checked by msw@chromium.org
6 years, 7 months ago (2014-05-17 17:42:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/282223002/250001
6 years, 7 months ago (2014-05-17 17:43:30 UTC) #10
commit-bot: I haz the power
Change committed as 271249
6 years, 7 months ago (2014-05-17 17:44:37 UTC) #11
ckocagil
6 years, 7 months ago (2014-05-18 13:50:38 UTC) #12
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/289283003/ by ckocagil@chromium.org.

The reason for reverting is: ConstrainedWindowViewTest.ClosesOnEscape introduced
in this patch fails on XP:
http://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%281%29/builds....

Powered by Google App Engine
This is Rietveld 408576698