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

Issue 154783002: Honor can_activate flag in ShowWindowWithState (Closed)

Created:
6 years, 10 months ago by mohsen
Modified:
6 years, 7 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Honor can_activate flag in ShowWindowWithState In HWNDMessageHandler::ShowWindowWitState(), when ui::SHOW_STATE_DEFAULT is passed as state, the window grabs activation after being shown. The correct behavior would be to activate the widget if and only if the can_activate flag is set. HWNDMessageHandler::Show() method already does this since r244605. Also, the DefaultWidgetDelegate should honor InitParams::can_activate flag. BUG=340736 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271102

Patch Set 1 : #

Patch Set 2 : Added widget interactive test #

Patch Set 3 : Added touch selection interactive test #

Patch Set 4 : Rebased #

Total comments: 10

Patch Set 5 : Merged after r270597 and applied review comments #

Total comments: 4

Patch Set 6 : More review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -7 lines) Patch
M ui/views/controls/textfield/textfield.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M ui/views/test/test_views_delegate.h View 1 2 3 4 5 2 chunks +11 lines, -1 line 0 comments Download
M ui/views/test/test_views_delegate.cc View 1 2 3 4 5 3 chunks +10 lines, -5 lines 0 comments Download
M ui/views/touchui/touch_selection_controller_impl.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/widget_interactive_uitest.cc View 1 2 3 4 3 chunks +78 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
mohsen
Please take a look...
6 years, 10 months ago (2014-02-04 22:59:31 UTC) #1
sadrul
There should be a test for this.
6 years, 10 months ago (2014-02-04 23:25:10 UTC) #2
mohsen
Can you take a look please. I have added two tests. One is a simple ...
6 years, 7 months ago (2014-05-14 23:11:50 UTC) #3
sadrul
I think this looks reasonable. +sky@ since changes Windows too. https://codereview.chromium.org/154783002/diff/330001/ui/views/widget/widget_interactive_uitest.cc File ui/views/widget/widget_interactive_uitest.cc (right): https://codereview.chromium.org/154783002/diff/330001/ui/views/widget/widget_interactive_uitest.cc#newcode757 ...
6 years, 7 months ago (2014-05-15 12:52:01 UTC) #4
sky
https://codereview.chromium.org/154783002/diff/330001/ui/views/test/test_views_delegate.cc File ui/views/test/test_views_delegate.cc (right): https://codereview.chromium.org/154783002/diff/330001/ui/views/test/test_views_delegate.cc#newcode43 ui/views/test/test_views_delegate.cc:43: if (use_desktop_native_widgets_) Only do this if params->native_widget is NULL. ...
6 years, 7 months ago (2014-05-15 16:44:01 UTC) #5
mohsen
https://codereview.chromium.org/154783002/diff/330001/ui/views/test/test_views_delegate.cc File ui/views/test/test_views_delegate.cc (right): https://codereview.chromium.org/154783002/diff/330001/ui/views/test/test_views_delegate.cc#newcode43 ui/views/test/test_views_delegate.cc:43: if (use_desktop_native_widgets_) On 2014/05/15 16:44:01, sky wrote: > Only ...
6 years, 7 months ago (2014-05-16 15:56:08 UTC) #6
sky
LGTM with the following changes https://codereview.chromium.org/154783002/diff/380001/ui/views/test/test_views_delegate.cc File ui/views/test/test_views_delegate.cc (right): https://codereview.chromium.org/154783002/diff/380001/ui/views/test/test_views_delegate.cc#newcode7 ui/views/test/test_views_delegate.cc:7: #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" Only include ...
6 years, 7 months ago (2014-05-16 17:21:29 UTC) #7
mohsen
https://codereview.chromium.org/154783002/diff/380001/ui/views/test/test_views_delegate.cc File ui/views/test/test_views_delegate.cc (right): https://codereview.chromium.org/154783002/diff/380001/ui/views/test/test_views_delegate.cc#newcode7 ui/views/test/test_views_delegate.cc:7: #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" On 2014/05/16 17:21:29, sky wrote: > Only ...
6 years, 7 months ago (2014-05-16 17:36:38 UTC) #8
mohsen
The CQ bit was checked by mohsen@chromium.org
6 years, 7 months ago (2014-05-16 19:22:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/154783002/400001
6 years, 7 months ago (2014-05-16 19:23:28 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-16 20:25:27 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-16 21:32:00 UTC) #12
Message was sent while issue was closed.
Change committed as 271102

Powered by Google App Engine
This is Rietveld 408576698