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

Issue 2809073002: cros: allow aura window not considered activatable for pointer event (Closed)

Created:
3 years, 8 months ago by Qiang(Joe) Xu
Modified:
3 years, 7 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: allow aura window not considered activatable for pointer event Changes: Add a window property for set/get whether an aura window is considered activatable for pointer window activation. Modify CanFocusWindow in FocusRules to allow optional check for ui::Event. This is a stage one implementation for crbug.com/657525. BUG=657525 TEST=added test coverage Review-Url: https://codereview.chromium.org/2809073002 Cr-Commit-Position: refs/heads/master@{#467849} Committed: https://chromium.googlesource.com/chromium/src/+/e47fb498dce50d65d9c3b55fafdbffbe50ab6920

Patch Set 1 #

Total comments: 3

Patch Set 2 : rebase and fix conflicts #

Total comments: 4

Patch Set 3 : feedback #

Total comments: 6

Patch Set 4 : feedback from oshima and bugtracker #

Total comments: 8

Patch Set 5 : feedback from sky #

Patch Set 6 : ui::Event* #

Total comments: 10

Patch Set 7 : rebase #

Patch Set 8 : feedback from sky #

Total comments: 2

Patch Set 9 : const ui::Event* #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -48 lines) Patch
M ash/wm/ash_focus_rules.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -4 lines 0 comments Download
M ash/wm/ash_focus_rules.cc View 1 2 3 4 5 6 7 8 4 chunks +18 lines, -7 lines 2 comments Download
M ash/wm/window_manager_unittest.cc View 1 2 3 4 5 6 7 2 chunks +40 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/wm/core/base_focus_rules.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ui/wm/core/base_focus_rules.cc View 1 2 3 4 5 6 7 8 9 chunks +12 lines, -13 lines 0 comments Download
M ui/wm/core/focus_controller.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ui/wm/core/focus_controller.cc View 1 2 3 4 5 6 7 8 12 chunks +18 lines, -16 lines 0 comments Download
M ui/wm/core/focus_controller_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -3 lines 0 comments Download
M ui/wm/core/focus_rules.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 67 (41 generated)
Qiang(Joe) Xu
Hi all, PTAL, thanks! https://codereview.chromium.org/2809073002/diff/1/ash/wm/ash_focus_rules.h File ash/wm/ash_focus_rules.h (left): https://codereview.chromium.org/2809073002/diff/1/ash/wm/ash_focus_rules.h#oldcode23 ash/wm/ash_focus_rules.h:23: bool IsWindowConsideredActivatable(aura::Window* window) const; This ...
3 years, 8 months ago (2017-04-11 05:45:05 UTC) #12
sky
Could you outline where you are planning on going with this?
3 years, 8 months ago (2017-04-11 16:50:21 UTC) #15
Qiang(Joe) Xu
On 2017/04/11 16:50:21, sky wrote: > Could you outline where you are planning on going ...
3 years, 8 months ago (2017-04-11 18:19:43 UTC) #16
oshima
https://codereview.chromium.org/2809073002/diff/20001/ui/aura/client/aura_constants.h File ui/aura/client/aura_constants.h (right): https://codereview.chromium.org/2809073002/diff/20001/ui/aura/client/aura_constants.h#newcode40 ui/aura/client/aura_constants.h:40: AURA_EXPORT extern const WindowProperty<bool>* const kActivateOnClickKey; This doesn't have ...
3 years, 8 months ago (2017-04-11 18:57:52 UTC) #17
Qiang(Joe) Xu
Updated, PTAL, thanks https://codereview.chromium.org/2809073002/diff/20001/ui/aura/client/aura_constants.h File ui/aura/client/aura_constants.h (right): https://codereview.chromium.org/2809073002/diff/20001/ui/aura/client/aura_constants.h#newcode40 ui/aura/client/aura_constants.h:40: AURA_EXPORT extern const WindowProperty<bool>* const kActivateOnClickKey; ...
3 years, 8 months ago (2017-04-11 20:29:02 UTC) #19
oshima
https://codereview.chromium.org/2809073002/diff/60001/ash/wm/ash_focus_rules.cc File ash/wm/ash_focus_rules.cc (right): https://codereview.chromium.org/2809073002/diff/60001/ash/wm/ash_focus_rules.cc#newcode89 ash/wm/ash_focus_rules.cc:89: if (event->IsMouseEvent()) don't we need to filter other events ...
3 years, 8 months ago (2017-04-11 20:54:40 UTC) #20
sky
What is the expectation of that property? That clicks never activate the window? Who is ...
3 years, 8 months ago (2017-04-11 20:58:48 UTC) #21
sky
What is the expectation of that property? That clicks never activate the window? Who is ...
3 years, 8 months ago (2017-04-11 21:00:05 UTC) #22
Qiang(Joe) Xu
On 2017/04/11 21:00:05, sky wrote: > What is the expectation of that property? That clicks ...
3 years, 8 months ago (2017-04-11 21:15:31 UTC) #23
Qiang(Joe) Xu
Hi all, PTAL, thanks! https://codereview.chromium.org/2809073002/diff/60001/ash/wm/ash_focus_rules.cc File ash/wm/ash_focus_rules.cc (right): https://codereview.chromium.org/2809073002/diff/60001/ash/wm/ash_focus_rules.cc#newcode89 ash/wm/ash_focus_rules.cc:89: if (event->IsMouseEvent()) On 2017/04/11 20:54:40, ...
3 years, 8 months ago (2017-04-12 19:00:02 UTC) #41
sky
https://codereview.chromium.org/2809073002/diff/1/ui/aura/client/aura_constants.h File ui/aura/client/aura_constants.h (right): https://codereview.chromium.org/2809073002/diff/1/ui/aura/client/aura_constants.h#newcode40 ui/aura/client/aura_constants.h:40: AURA_EXPORT extern const WindowProperty<bool>* const kActivateOnClickKey; I prefer the ...
3 years, 8 months ago (2017-04-12 19:49:17 UTC) #42
Qiang(Joe) Xu
Updated, PTAL, thanks https://codereview.chromium.org/2809073002/diff/1/ui/aura/client/aura_constants.h File ui/aura/client/aura_constants.h (right): https://codereview.chromium.org/2809073002/diff/1/ui/aura/client/aura_constants.h#newcode40 ui/aura/client/aura_constants.h:40: AURA_EXPORT extern const WindowProperty<bool>* const kActivateOnClickKey; ...
3 years, 8 months ago (2017-04-12 23:00:42 UTC) #46
sky
https://codereview.chromium.org/2809073002/diff/150001/ui/wm/core/focus_controller.h File ui/wm/core/focus_controller.h (right): https://codereview.chromium.org/2809073002/diff/150001/ui/wm/core/focus_controller.h#newcode119 ui/wm/core/focus_controller.h:119: void WindowFocusedFromInputEvent(aura::Window* window, ui::Event* event); On 2017/04/12 23:00:42, Qiang(Joe) ...
3 years, 8 months ago (2017-04-12 23:07:40 UTC) #48
Qiang(Joe) Xu
Return to ui::Event* now, PTAL, thanks! https://codereview.chromium.org/2809073002/diff/150001/ui/wm/core/focus_controller.h File ui/wm/core/focus_controller.h (right): https://codereview.chromium.org/2809073002/diff/150001/ui/wm/core/focus_controller.h#newcode119 ui/wm/core/focus_controller.h:119: void WindowFocusedFromInputEvent(aura::Window* window, ...
3 years, 8 months ago (2017-04-13 01:41:51 UTC) #49
sky
https://codereview.chromium.org/2809073002/diff/210001/ash/wm/ash_focus_rules.h File ash/wm/ash_focus_rules.h (right): https://codereview.chromium.org/2809073002/diff/210001/ash/wm/ash_focus_rules.h#newcode21 ash/wm/ash_focus_rules.h:21: // Set whether |window| should be activated on point ...
3 years, 8 months ago (2017-04-17 16:08:48 UTC) #50
Qiang(Joe) Xu
Updated based on comments, PTAL, thanks https://codereview.chromium.org/2809073002/diff/210001/ash/wm/ash_focus_rules.h File ash/wm/ash_focus_rules.h (right): https://codereview.chromium.org/2809073002/diff/210001/ash/wm/ash_focus_rules.h#newcode21 ash/wm/ash_focus_rules.h:21: // Set whether ...
3 years, 8 months ago (2017-04-17 17:40:32 UTC) #54
sky
https://codereview.chromium.org/2809073002/diff/270001/ui/wm/core/focus_controller.h File ui/wm/core/focus_controller.h (right): https://codereview.chromium.org/2809073002/diff/270001/ui/wm/core/focus_controller.h#newcode119 ui/wm/core/focus_controller.h:119: void WindowFocusedFromInputEvent(aura::Window* window, ui::Event* event); Sorry, one last question. ...
3 years, 8 months ago (2017-04-17 18:24:38 UTC) #55
Qiang(Joe) Xu
PTAL, thanks https://codereview.chromium.org/2809073002/diff/270001/ui/wm/core/focus_controller.h File ui/wm/core/focus_controller.h (right): https://codereview.chromium.org/2809073002/diff/270001/ui/wm/core/focus_controller.h#newcode119 ui/wm/core/focus_controller.h:119: void WindowFocusedFromInputEvent(aura::Window* window, ui::Event* event); On 2017/04/17 ...
3 years, 8 months ago (2017-04-17 18:33:16 UTC) #56
sky
LGTM - thanks
3 years, 8 months ago (2017-04-17 19:04:10 UTC) #57
Qiang(Joe) Xu
Hi oshima, would you also take a look?
3 years, 8 months ago (2017-04-19 00:04:14 UTC) #58
Qiang(Joe) Xu
On 2017/04/19 00:04:14, Qiang(Joe) Xu wrote: > Hi oshima, would you also take a look? ...
3 years, 7 months ago (2017-04-27 20:34:47 UTC) #59
oshima
https://codereview.chromium.org/2809073002/diff/290001/ash/wm/ash_focus_rules.cc File ash/wm/ash_focus_rules.cc (right): https://codereview.chromium.org/2809073002/diff/290001/ash/wm/ash_focus_rules.cc#newcode79 ash/wm/ash_focus_rules.cc:79: if (event && (event->IsMouseEvent() || event->IsGestureEvent()) && We don't ...
3 years, 7 months ago (2017-04-27 20:50:17 UTC) #60
Qiang(Joe) Xu
https://codereview.chromium.org/2809073002/diff/290001/ash/wm/ash_focus_rules.cc File ash/wm/ash_focus_rules.cc (right): https://codereview.chromium.org/2809073002/diff/290001/ash/wm/ash_focus_rules.cc#newcode79 ash/wm/ash_focus_rules.cc:79: if (event && (event->IsMouseEvent() || event->IsGestureEvent()) && On 2017/04/27 ...
3 years, 7 months ago (2017-04-27 21:32:24 UTC) #61
oshima
thank you for clarification. lgtm
3 years, 7 months ago (2017-04-27 22:08:10 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2809073002/290001
3 years, 7 months ago (2017-04-27 22:29:35 UTC) #64
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 02:20:27 UTC) #67
Message was sent while issue was closed.
Committed patchset #9 (id:290001) as
https://chromium.googlesource.com/chromium/src/+/e47fb498dce50d65d9c3b55fafdb...

Powered by Google App Engine
This is Rietveld 408576698