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

Issue 730833006: MacViews: Implement event monitoring for a specific window (Closed)

Created:
6 years, 1 month ago by Andre
Modified:
6 years ago
Reviewers:
tapted, jam, sky
CC:
chromium-reviews, mac-views-reviews_chromium.org, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

MacViews: Implement event monitoring for a specific window ManagePasswordBubbleView wants to monitor events on a specific window, currently using aura specific code that won't work for MacViews. views::EventMonitor is enhanced to support monitoring events on a window, with both Mac and Aura implementations. Also includes minor compile fixes in ZoomBubbleView and StatusBubbleView. BUG=425229 TEST=EventMonitorAuraTest, EventMonitorMacTest Committed: https://crrev.com/e393fdb1d25ea25693a905aa4af97ed569bb2223 Cr-Commit-Position: refs/heads/master@{#307960}

Patch Set 1 : #

Total comments: 15

Patch Set 2 : #

Total comments: 21

Patch Set 3 : Rebase, fixes for tapted. #

Total comments: 4

Patch Set 4 : Fixes for sky #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -138 lines) Patch
M chrome/browser/ui/views/location_bar/zoom_bubble_view.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 2 3 6 chunks +9 lines, -21 lines 0 comments Download
M chrome/browser/ui/views/status_bubble_views.cc View 4 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/test/event_generator_delegate_aura.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/test/event_generator.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M ui/events/test/event_generator.cc View 1 2 4 chunks +4 lines, -0 lines 0 comments Download
M ui/views/event_monitor.h View 1 2 3 2 chunks +17 lines, -3 lines 0 comments Download
M ui/views/event_monitor_aura.h View 1 1 chunk +7 lines, -1 line 0 comments Download
M ui/views/event_monitor_aura.cc View 1 2 chunks +20 lines, -6 lines 0 comments Download
M ui/views/event_monitor_mac.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M ui/views/event_monitor_mac.mm View 1 2 3 chunks +23 lines, -9 lines 0 comments Download
M ui/views/event_monitor_mac_unittest.mm View 1 2 1 chunk +0 lines, -67 lines 0 comments Download
A ui/views/event_monitor_unittest.cc View 1 2 1 chunk +77 lines, -0 lines 0 comments Download
M ui/views/mouse_watcher.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/test/event_generator_delegate_mac.mm View 1 2 4 chunks +24 lines, -21 lines 0 comments Download
M ui/views/views.gyp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (16 generated)
Andre
Trent, please take an early look and let me know what you think (this is ...
6 years, 1 month ago (2014-11-20 22:04:23 UTC) #6
tapted
https://codereview.chromium.org/730833006/diff/80001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc File chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc (right): https://codereview.chromium.org/730833006/diff/80001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc#newcode779 chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc:779: if (is_fullscreen) { nit: no curlies https://codereview.chromium.org/730833006/diff/80001/chrome/browser/ui/views/status_bubble_views.cc File chrome/browser/ui/views/status_bubble_views.cc ...
6 years, 1 month ago (2014-11-20 22:39:02 UTC) #7
tapted
On 2014/11/20 22:39:02, tapted wrote: > (Maybe this is something to plonk on BridgedNativeWidget, which ...
6 years, 1 month ago (2014-11-20 23:03:02 UTC) #8
tapted
On 2014/11/20 23:03:02, tapted wrote: > in this CL: http://crbug.com/731053002 uhh http://crrev.com/731053002
6 years, 1 month ago (2014-11-20 23:03:47 UTC) #9
Andre
WDYT about EventGeneratorDelegateMac::EmulateSendEvent vs -[NSApp sendEvent]? https://codereview.chromium.org/730833006/diff/80001/ui/views/event_monitor_aura.cc File ui/views/event_monitor_aura.cc (right): https://codereview.chromium.org/730833006/diff/80001/ui/views/event_monitor_aura.cc#newcode16 ui/views/event_monitor_aura.cc:16: return new EventMonitorAura(event_handler, ...
6 years, 1 month ago (2014-11-21 00:28:29 UTC) #10
tapted
On 2014/11/21 00:28:29, Andre wrote: > WDYT about EventGeneratorDelegateMac::EmulateSendEvent vs -[NSApp sendEvent]? When I tried ...
6 years, 1 month ago (2014-11-21 00:57:34 UTC) #11
Andre
Trent PTAL, this is ready for a more thorough review. It would be nice if ...
6 years ago (2014-12-10 00:18:13 UTC) #20
tapted
On 2014/12/10 00:18:13, Andre wrote: > It would be nice if the test code are ...
6 years ago (2014-12-10 02:58:27 UTC) #21
Andre
Thanks! I added a property to EventGenerator, PTAL. https://codereview.chromium.org/730833006/diff/260001/ui/views/event_monitor_aura_unittest.cc File ui/views/event_monitor_aura_unittest.cc (right): https://codereview.chromium.org/730833006/diff/260001/ui/views/event_monitor_aura_unittest.cc#newcode15 ui/views/event_monitor_aura_unittest.cc:15: void ...
6 years ago (2014-12-10 22:58:05 UTC) #23
Andre
Sadrul, PTAL for ui. See Trent's comment above regarding EventGeneratorDelegateAsh.
6 years ago (2014-12-10 22:59:14 UTC) #24
Andre
Oops Sadrul is OOO. sky@ can you take a look for OWNERS?
6 years ago (2014-12-10 23:00:40 UTC) #26
tapted
lgtm (yay cross-platform tests \o/)
6 years ago (2014-12-10 23:13:38 UTC) #27
sky
https://codereview.chromium.org/730833006/diff/300001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc File chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc (right): https://codereview.chromium.org/730833006/diff/300001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc#newcode845 chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc:845: if (web_contents) { Should this be a DCHECK? Without ...
6 years ago (2014-12-11 00:49:43 UTC) #28
Andre
https://codereview.chromium.org/730833006/diff/300001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc File chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc (right): https://codereview.chromium.org/730833006/diff/300001/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc#newcode845 chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc:845: if (web_contents) { On 2014/12/11 00:49:43, sky wrote: > ...
6 years ago (2014-12-11 18:09:12 UTC) #29
sky
LGTM
6 years ago (2014-12-11 19:02:24 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/730833006/320001
6 years ago (2014-12-11 19:08:07 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:320001)
6 years ago (2014-12-11 20:21:39 UTC) #33
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/e393fdb1d25ea25693a905aa4af97ed569bb2223 Cr-Commit-Position: refs/heads/master@{#307960}
6 years ago (2014-12-11 20:22:20 UTC) #34
jam
btw I reverted this manually because it was causing views_unittests failures. i.e. see http://build.chromium.org/p/chromium.win/builders/Win8%20Aura/builds/25083/steps/views_unittests/logs/stdio On ...
6 years ago (2014-12-11 22:45:20 UTC) #35
jam
6 years ago (2014-12-11 22:45:50 UTC) #36
Message was sent while issue was closed.
also other builders too, i.e.
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2...

On Thu, Dec 11, 2014 at 2:45 PM, John Abd-El-Malek <jam@chromium.org> wrote:

> btw I reverted this manually because it was causing views_unittests
> failures. i.e. see
>
>
http://build.chromium.org/p/chromium.win/builders/Win8%20Aura/builds/25083/st...
>
> On Thu, Dec 11, 2014 at 12:22 PM, <commit-bot@chromium.org> wrote:
>
>> Patchset 4 (id:??) landed as
>> https://crrev.com/e393fdb1d25ea25693a905aa4af97ed569bb2223
>> Cr-Commit-Position: refs/heads/master@{#307960}
>>
>> https://codereview.chromium.org/730833006/
>>
>
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698