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

Issue 1074543002: Prevent menus from blocking user activity detection (Closed)

Created:
5 years, 8 months ago by afakhry
Modified:
5 years, 8 months ago
Reviewers:
James Cook, sadrul
CC:
chromium-reviews, ozone-reviews_chromium.org, kalyank, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent menus from blocking user activity detection This is a retry CL for https://codereview.chromium.org/1024583003/ with a slight change. UserActivityDetector used to be an EventHandler triggered when the pre- target event handlers are triggered. When a menu is present, the MenuEventDispatcher doesn't trigger pre-target handlers and hence user activity is not detected. With this change the UserActivityDetector is made a PlatformEventObserver to make sure it's always triggered. R=sadrul@chromium.org, jamescook@chromium.org BUG=462735 TEST=ui_base_unittests --gtest_filter=UserActivityDetectorTest.* Committed: https://crrev.com/107bd9254664ba3c854c0d4fb3d2f1d85855fb16 Cr-Commit-Position: refs/heads/master@{#324366}

Patch Set 1 : Original CL #

Patch Set 2 : The new slight change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -52 lines) Patch
M ash/shell.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_desktop_controller_aura.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M ui/base/user_activity/user_activity_detector.h View 1 2 chunks +11 lines, -8 lines 0 comments Download
M ui/base/user_activity/user_activity_detector.cc View 1 3 chunks +33 lines, -22 lines 0 comments Download
M ui/base/user_activity/user_activity_detector_unittest.cc View 14 chunks +31 lines, -13 lines 0 comments Download
M ui/ozone/platform/test/ozone_platform_test.cc View 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 7 (1 generated)
afakhry
@jamescook: Could you please review: ash/shell.cc extensions/shell/browser/shell_desktop_controller_aura.cc @sadrul: Could you please review the remaining files? ...
5 years, 8 months ago (2015-04-08 18:53:52 UTC) #1
James Cook
ash/shell.cc and extensions/shell LGTM
5 years, 8 months ago (2015-04-08 20:51:53 UTC) #2
sadrul
lgtm On 2015/04/08 18:53:52, afakhry wrote: > @jamescook: Could you please review: > ash/shell.cc > ...
5 years, 8 months ago (2015-04-09 01:13:08 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1074543002/20001
5 years, 8 months ago (2015-04-09 01:17:30 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-09 04:15:04 UTC) #6
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 04:16:50 UTC) #7
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/107bd9254664ba3c854c0d4fb3d2f1d85855fb16
Cr-Commit-Position: refs/heads/master@{#324366}

Powered by Google App Engine
This is Rietveld 408576698