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

Issue 23702017: Ensure that the AURA focused window is set correctly when the window is activated. (Closed)

Created:
7 years, 3 months ago by ananta
Modified:
7 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, ben+watch_chromium.org
Visibility:
Public.

Description

Ensure that the AURA focused window is set correctly when the window is activated. Currently this only works if the window is activated with the mouse. If we Alt Tab to the window then the focus window is not restored in AURA. The view is correctly focused though. Fixes as below:- 1. Added a new function HandleActivationChanged to the DesktopNativeWidgetAura class. This is invoked from the DesktopRootWindowHostWin::HandleActivationChanged and DesktopRootWindowHostX11::HandleNativeWidgetActivationChanged functions. 2. Most of the common code in those functions now lives in the DesktopNativeWidgetAura::HandleActivationChanged function. This includes deactivating the window in the aura activation client and now additionally activating the window when we are being activated. Added an interactive ui test DesktopNativeWidgetAuraActivationAndFocusTest for Windows AURA. BUG=278000 TEST=Interactive ui test DesktopNativeWidgetAuraActivationAndFocusTest R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221225

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -28 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 1 chunk +31 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_root_window_host_win.cc View 1 3 1 chunk +1 line, -14 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc View 1 1 chunk +2 lines, -14 lines 0 comments Download
A ui/views/widget/widget_interactive_uitest.cc View 1 2 3 4 5 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
ananta
7 years, 3 months ago (2013-08-30 23:28:04 UTC) #1
dhw
Please update BUG=278000 and test for keyboard shortcuts, arrow keys, and backspace
7 years, 3 months ago (2013-09-01 00:17:25 UTC) #2
sky
https://codereview.chromium.org/23702017/diff/1/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/23702017/diff/1/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc#newcode248 ui/views/widget/desktop_aura/desktop_native_widget_aura.cc:248: focus_view->GetWidget()->GetNativeView()); Shouldn't we activate something if we can't find ...
7 years, 3 months ago (2013-09-03 18:21:51 UTC) #3
ananta
https://codereview.chromium.org/23702017/diff/1/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/23702017/diff/1/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc#newcode248 ui/views/widget/desktop_aura/desktop_native_widget_aura.cc:248: focus_view->GetWidget()->GetNativeView()); On 2013/09/03 18:21:51, sky wrote: > Shouldn't we ...
7 years, 3 months ago (2013-09-03 19:03:31 UTC) #4
sky
On Tue, Sep 3, 2013 at 12:03 PM, <ananta@chromium.org> wrote: > > https://codereview.chromium.org/23702017/diff/1/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc > File ...
7 years, 3 months ago (2013-09-03 20:02:27 UTC) #5
ananta
They won't conflict unless that test is executing on the same thread as this one. ...
7 years, 3 months ago (2013-09-03 20:04:24 UTC) #6
sky
I'm probably missing something, but won't setactivewindow do nothing if chrome isn't in the foreground?
7 years, 3 months ago (2013-09-03 20:50:00 UTC) #7
ananta
On 2013/09/03 20:50:00, sky wrote: > I'm probably missing something, but won't setactivewindow do nothing ...
7 years, 3 months ago (2013-09-03 22:06:08 UTC) #8
ananta
On 2013/09/03 22:06:08, ananta wrote: > On 2013/09/03 20:50:00, sky wrote: > > I'm probably ...
7 years, 3 months ago (2013-09-03 23:39:19 UTC) #9
sky
LGTM https://codereview.chromium.org/23702017/diff/46001/ui/views/widget/interactive_widget_tests.cc File ui/views/widget/interactive_widget_tests.cc (right): https://codereview.chromium.org/23702017/diff/46001/ui/views/widget/interactive_widget_tests.cc#newcode1 ui/views/widget/interactive_widget_tests.cc:1: // Copyright (c) 2013 The Chromium Authors. All ...
7 years, 3 months ago (2013-09-03 23:40:34 UTC) #10
ananta
https://codereview.chromium.org/23702017/diff/46001/ui/views/widget/interactive_widget_tests.cc File ui/views/widget/interactive_widget_tests.cc (right): https://codereview.chromium.org/23702017/diff/46001/ui/views/widget/interactive_widget_tests.cc#newcode1 ui/views/widget/interactive_widget_tests.cc:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 3 months ago (2013-09-03 23:47:46 UTC) #11
ananta
7 years, 3 months ago (2013-09-04 17:48:07 UTC) #12
Message was sent while issue was closed.
Committed patchset #7 manually as r221225 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698