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

Issue 2577573002: Removes mouse listeners from UserInputMonitor. (Closed)

Created:
4 years ago by CJ
Modified:
3 years, 11 months ago
Reviewers:
xhwang, Wez
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Removes mouse listeners from UserInputMonitor. MouseEventListener was found to be unused, and thus removed. BUG=673494 Review-Url: https://codereview.chromium.org/2577573002 Cr-Commit-Position: refs/heads/master@{#445270} Committed: https://chromium.googlesource.com/chromium/src/+/fdd566ad2d6598b104ea75b4ae2395a96083ca20

Patch Set 1 #

Total comments: 14

Patch Set 2 : Addresses Wez's #7 comments. #

Total comments: 23

Patch Set 3 : Addresses Wez's #13 comments. #

Patch Set 4 : Updates win's Start/Stop Monitor. #

Total comments: 4

Patch Set 5 : Addresses Wez's #15 comments. #

Total comments: 4

Patch Set 6 : Addresses Wez's #17,18 comments. #

Total comments: 4

Patch Set 7 : Addresses Wez's #20 comments. #

Patch Set 8 : Updates test. #

Patch Set 9 : Udpate test inclusion. #

Patch Set 10 : Fix typo. #

Patch Set 11 : Lint. #

Total comments: 13

Patch Set 12 : Addresses comment #45/46's concern about inlining the constructor. #

Patch Set 13 : Addresses Wez's #48 comment. #

Total comments: 4

Patch Set 14 : Addresses Wez's #50 comment. #

Patch Set 15 : Updates test. #

Patch Set 16 : Typos in _win. #

Patch Set 17 : Merge branch 'real_master' into UserInputMonitor #

Patch Set 18 : Syntax error. #

Patch Set 19 : Removes reset function. #

Patch Set 20 : Updates win to not use reset. #

Patch Set 21 : Merge branch 'real_master' into UserInputMonitor #

Total comments: 1

Patch Set 22 : format. #

Patch Set 23 : Fixes GetRawDevice. #

Total comments: 4

Patch Set 24 : Format. #

Patch Set 25 : Fix win by removing std::move. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -341 lines) Patch
M media/base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M media/base/keyboard_event_counter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -4 lines 0 comments Download
M media/base/keyboard_event_counter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -6 lines 0 comments Download
A media/base/keyboard_event_counter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +40 lines, -0 lines 0 comments Download
M media/base/user_input_monitor.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -33 lines 0 comments Download
M media/base/user_input_monitor.cc View 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -30 lines 0 comments Download
M media/base/user_input_monitor_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 12 chunks +53 lines, -118 lines 0 comments Download
M media/base/user_input_monitor_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -9 lines 0 comments Download
M media/base/user_input_monitor_unittest.cc View 1 2 3 4 5 6 2 chunks +0 lines, -35 lines 0 comments Download
M media/base/user_input_monitor_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 10 chunks +39 lines, -105 lines 0 comments Download

Messages

Total messages: 130 (72 generated)
CJ
PTAL
4 years ago (2016-12-14 01:01:09 UTC) #2
Wez
CL description nits: - user_input_monitor -> UserInputMonitor (i.e. refer to the class name rather than ...
4 years ago (2016-12-14 01:24:45 UTC) #3
CJ
On 2016/12/14 01:24:45, Wez wrote: > CL description nits: > - user_input_monitor -> UserInputMonitor (i.e. ...
4 years ago (2016-12-14 23:48:34 UTC) #5
Wez
On 2016/12/14 23:48:34, CJ wrote: > On 2016/12/14 01:24:45, Wez wrote: > > CL description ...
4 years ago (2016-12-16 02:00:44 UTC) #6
Wez
https://codereview.chromium.org/2577573002/diff/1/media/base/user_input_monitor.cc File media/base/user_input_monitor.cc (right): https://codereview.chromium.org/2577573002/diff/1/media/base/user_input_monitor.cc#newcode19 media/base/user_input_monitor.cc:19: UserInputMonitor::UserInputMonitor() : key_press_counter_references_(0) {} nit: You could move this ...
4 years ago (2016-12-16 02:06:43 UTC) #7
CJ
https://codereview.chromium.org/2577573002/diff/1/media/base/user_input_monitor.cc File media/base/user_input_monitor.cc (right): https://codereview.chromium.org/2577573002/diff/1/media/base/user_input_monitor.cc#newcode19 media/base/user_input_monitor.cc:19: UserInputMonitor::UserInputMonitor() : key_press_counter_references_(0) {} On 2016/12/16 02:06:43, Wez wrote: ...
4 years ago (2016-12-22 22:42:58 UTC) #8
Wez
https://codereview.chromium.org/2577573002/diff/20001/media/base/user_input_monitor.h File media/base/user_input_monitor.h (right): https://codereview.chromium.org/2577573002/diff/20001/media/base/user_input_monitor.h#newcode25 media/base/user_input_monitor.h:25: // added. nit: Remove the comment about listeners, since ...
3 years, 11 months ago (2017-01-03 23:59:40 UTC) #13
CJ
https://codereview.chromium.org/2577573002/diff/20001/media/base/user_input_monitor.h File media/base/user_input_monitor.h (right): https://codereview.chromium.org/2577573002/diff/20001/media/base/user_input_monitor.h#newcode25 media/base/user_input_monitor.h:25: // added. On 2017/01/03 23:59:40, Wez wrote: > nit: ...
3 years, 11 months ago (2017-01-07 00:12:36 UTC) #14
Wez
https://codereview.chromium.org/2577573002/diff/20001/media/base/user_input_monitor.h File media/base/user_input_monitor.h (right): https://codereview.chromium.org/2577573002/diff/20001/media/base/user_input_monitor.h#newcode25 media/base/user_input_monitor.h:25: // added. On 2017/01/07 00:12:35, CJ wrote: > On ...
3 years, 11 months ago (2017-01-09 22:38:44 UTC) #15
CJ
https://codereview.chromium.org/2577573002/diff/20001/media/base/user_input_monitor.h File media/base/user_input_monitor.h (right): https://codereview.chromium.org/2577573002/diff/20001/media/base/user_input_monitor.h#newcode25 media/base/user_input_monitor.h:25: // added. On 2017/01/09 22:38:43, Wez wrote: > On ...
3 years, 11 months ago (2017-01-09 23:35:49 UTC) #16
Wez
lgtm https://codereview.chromium.org/2577573002/diff/80001/media/base/user_input_monitor_win.cc File media/base/user_input_monitor_win.cc (right): https://codereview.chromium.org/2577573002/diff/80001/media/base/user_input_monitor_win.cc#newcode118 media/base/user_input_monitor_win.cc:118: window_.reset(new base::win::MessageWindow()); nit: This should become window_ = ...
3 years, 11 months ago (2017-01-10 01:59:05 UTC) #17
Wez
Ooops, not LGTM re test. https://codereview.chromium.org/2577573002/diff/60001/media/base/user_input_monitor_unittest.cc File media/base/user_input_monitor_unittest.cc (left): https://codereview.chromium.org/2577573002/diff/60001/media/base/user_input_monitor_unittest.cc#oldcode54 media/base/user_input_monitor_unittest.cc:54: TEST(UserInputMonitorTest, CreatePlatformSpecific) { Did ...
3 years, 11 months ago (2017-01-10 02:00:27 UTC) #18
CJ
https://codereview.chromium.org/2577573002/diff/60001/media/base/user_input_monitor_unittest.cc File media/base/user_input_monitor_unittest.cc (left): https://codereview.chromium.org/2577573002/diff/60001/media/base/user_input_monitor_unittest.cc#oldcode54 media/base/user_input_monitor_unittest.cc:54: TEST(UserInputMonitorTest, CreatePlatformSpecific) { On 2017/01/10 02:00:27, Wez wrote: > ...
3 years, 11 months ago (2017-01-10 02:35:35 UTC) #19
Wez
LGTM once the mouse stuff is removed from the create test, and the window_ syntax ...
3 years, 11 months ago (2017-01-10 02:45:10 UTC) #20
CJ
https://codereview.chromium.org/2577573002/diff/100001/media/base/user_input_monitor_unittest.cc File media/base/user_input_monitor_unittest.cc (right): https://codereview.chromium.org/2577573002/diff/100001/media/base/user_input_monitor_unittest.cc#newcode24 media/base/user_input_monitor_unittest.cc:24: class MockMouseListener : public UserInputMonitor::MouseEventListener { On 2017/01/10 02:45:10, ...
3 years, 11 months ago (2017-01-10 02:55:02 UTC) #21
CJ
https://codereview.chromium.org/2577573002/diff/100001/media/base/user_input_monitor_unittest.cc File media/base/user_input_monitor_unittest.cc (right): https://codereview.chromium.org/2577573002/diff/100001/media/base/user_input_monitor_unittest.cc#newcode24 media/base/user_input_monitor_unittest.cc:24: class MockMouseListener : public UserInputMonitor::MouseEventListener { On 2017/01/10 02:45:10, ...
3 years, 11 months ago (2017-01-10 02:55:02 UTC) #22
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/2577573002/120001
3 years, 11 months ago (2017-01-10 02:55:52 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/365490)
3 years, 11 months ago (2017-01-10 03:17:29 UTC) #27
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/2577573002/140001
3 years, 11 months ago (2017-01-10 03:23:24 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/191147) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 11 months ago (2017-01-10 03:43:32 UTC) #32
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/2577573002/160001
3 years, 11 months ago (2017-01-10 03:56:52 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/345031)
3 years, 11 months ago (2017-01-10 04:37:02 UTC) #37
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/2577573002/180001
3 years, 11 months ago (2017-01-10 19:09:29 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/338616)
3 years, 11 months ago (2017-01-10 19:17:22 UTC) #42
CJ
+xhwang, OWNERS
3 years, 11 months ago (2017-01-10 19:48:15 UTC) #44
xhwang
lgtm with nits https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.cc File media/base/keyboard_event_counter.cc (right): https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.cc#newcode22 media/base/keyboard_event_counter.cc:22: void KeyboardEventCounter::OnKeyboardEvent(bool down, personally I found ...
3 years, 11 months ago (2017-01-10 20:13:16 UTC) #45
Wez
https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.cc File media/base/keyboard_event_counter.cc (right): https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.cc#newcode22 media/base/keyboard_event_counter.cc:22: void KeyboardEventCounter::OnKeyboardEvent(bool down, On 2017/01/10 20:13:15, xhwang wrote: > ...
3 years, 11 months ago (2017-01-10 23:19:24 UTC) #46
CJ
https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.cc File media/base/keyboard_event_counter.cc (right): https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.cc#newcode22 media/base/keyboard_event_counter.cc:22: void KeyboardEventCounter::OnKeyboardEvent(bool down, On 2017/01/10 23:19:24, Wez wrote: > ...
3 years, 11 months ago (2017-01-11 21:40:27 UTC) #47
Wez
https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.cc File media/base/keyboard_event_counter.cc (right): https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.cc#newcode22 media/base/keyboard_event_counter.cc:22: void KeyboardEventCounter::OnKeyboardEvent(bool down, On 2017/01/11 21:40:27, CJ wrote: > ...
3 years, 11 months ago (2017-01-11 21:54:22 UTC) #48
CJ
https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.cc File media/base/keyboard_event_counter.cc (right): https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.cc#newcode22 media/base/keyboard_event_counter.cc:22: void KeyboardEventCounter::OnKeyboardEvent(bool down, On 2017/01/11 21:54:22, Wez wrote: > ...
3 years, 11 months ago (2017-01-11 23:08:09 UTC) #49
Wez
LGTM https://codereview.chromium.org/2577573002/diff/240001/media/base/user_input_monitor_linux.cc File media/base/user_input_monitor_linux.cc (right): https://codereview.chromium.org/2577573002/diff/240001/media/base/user_input_monitor_linux.cc#newcode304 media/base/user_input_monitor_linux.cc:304: return base::WrapUnique(new UserInputMonitorLinux(io_task_runner)); nit: Consider migrating these WrapUnique ...
3 years, 11 months ago (2017-01-11 23:19:19 UTC) #50
CJ
https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.h File media/base/keyboard_event_counter.h (right): https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.h#newcode30 media/base/keyboard_event_counter.h:30: // OnKeyboardEvent. On 2017/01/10 23:19:24, Wez wrote: > On ...
3 years, 11 months ago (2017-01-11 23:41:55 UTC) #51
CJ
https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.h File media/base/keyboard_event_counter.h (right): https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.h#newcode30 media/base/keyboard_event_counter.h:30: // OnKeyboardEvent. On 2017/01/11 23:41:55, CJ wrote: > On ...
3 years, 11 months ago (2017-01-12 23:59:37 UTC) #75
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/2577573002/360001
3 years, 11 months ago (2017-01-13 00:00:56 UTC) #78
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/212482)
3 years, 11 months ago (2017-01-13 00:50:44 UTC) #80
Wez
https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.h File media/base/keyboard_event_counter.h (right): https://codereview.chromium.org/2577573002/diff/200001/media/base/keyboard_event_counter.h#newcode30 media/base/keyboard_event_counter.h:30: // OnKeyboardEvent. On 2017/01/12 23:59:37, CJ wrote: > On ...
3 years, 11 months ago (2017-01-13 01:26:17 UTC) #81
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/2577573002/360001
3 years, 11 months ago (2017-01-13 19:53:59 UTC) #83
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/329194)
3 years, 11 months ago (2017-01-13 20:39:47 UTC) #85
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/2577573002/360001
3 years, 11 months ago (2017-01-13 21:38:18 UTC) #87
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/2577573002/380001
3 years, 11 months ago (2017-01-13 21:45:03 UTC) #90
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/348387)
3 years, 11 months ago (2017-01-14 00:00:41 UTC) #92
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/2577573002/380001
3 years, 11 months ago (2017-01-14 00:05:34 UTC) #94
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/348500)
3 years, 11 months ago (2017-01-14 02:57:41 UTC) #96
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/2577573002/400001
3 years, 11 months ago (2017-01-17 19:39:01 UTC) #99
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/349538)
3 years, 11 months ago (2017-01-17 22:33:02 UTC) #101
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/2577573002/400001
3 years, 11 months ago (2017-01-17 23:34:19 UTC) #103
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/365380)
3 years, 11 months ago (2017-01-18 02:06:45 UTC) #105
Wez
https://codereview.chromium.org/2577573002/diff/400001/media/base/user_input_monitor_win.cc File media/base/user_input_monitor_win.cc (right): https://codereview.chromium.org/2577573002/diff/400001/media/base/user_input_monitor_win.cc#newcode125 media/base/user_input_monitor_win.cc:125: std::unique_ptr<RAWINPUTDEVICE> device(GetRawInputDevices(RIDEV_INPUTSINK)); OK, the issue breaking the tests is ...
3 years, 11 months ago (2017-01-18 20:41:12 UTC) #106
CJ
On 2017/01/18 20:41:12, Wez wrote: > https://codereview.chromium.org/2577573002/diff/400001/media/base/user_input_monitor_win.cc > File media/base/user_input_monitor_win.cc (right): > > https://codereview.chromium.org/2577573002/diff/400001/media/base/user_input_monitor_win.cc#newcode125 > ...
3 years, 11 months ago (2017-01-19 00:15:42 UTC) #108
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/2577573002/440001
3 years, 11 months ago (2017-01-19 01:14:32 UTC) #114
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/366584)
3 years, 11 months ago (2017-01-19 01:51:57 UTC) #116
Wez
This looks good to me - left comments on the build breakers. FWIW you can ...
3 years, 11 months ago (2017-01-19 01:59:56 UTC) #117
CJ
https://codereview.chromium.org/2577573002/diff/440001/media/base/user_input_monitor_win.cc File media/base/user_input_monitor_win.cc (right): https://codereview.chromium.org/2577573002/diff/440001/media/base/user_input_monitor_win.cc#newcode32 media/base/user_input_monitor_win.cc:32: DCHECK(ui_task_runner_->BelongsToCurrentThread()); On 2017/01/19 01:59:56, Wez wrote: > Remove this ...
3 years, 11 months ago (2017-01-20 23:34:46 UTC) #118
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/2577573002/460001
3 years, 11 months ago (2017-01-20 23:35:26 UTC) #121
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/156217)
3 years, 11 months ago (2017-01-21 00:52:59 UTC) #123
Wez
On 2017/01/21 00:52:59, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 11 months ago (2017-01-21 01:30:37 UTC) #124
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/2577573002/480001
3 years, 11 months ago (2017-01-21 02:28:32 UTC) #127
commit-bot: I haz the power
3 years, 11 months ago (2017-01-21 04:20:55 UTC) #130
Message was sent while issue was closed.
Committed patchset #25 (id:480001) as
https://chromium.googlesource.com/chromium/src/+/fdd566ad2d6598b104ea75b4ae23...

Powered by Google App Engine
This is Rietveld 408576698