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

Issue 2006083002: Use fake Input Device Settings with chrome://device-emulator (Closed)

Created:
4 years, 7 months ago by michaelpg
Modified:
4 years, 5 months ago
Reviewers:
stevenjb, sky
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@DevicePageTestsFixes
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use fake Input Device Settings with chrome://device-emulator Adds FakeInputDeviceSettings to chrome://device-emulator to simulate having attached mouse/touchpad. CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation;master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/a37d858bf932e28599be6bec9bd3f1dbbe9e9874 Cr-Commit-Position: refs/heads/master@{#406390}

Patch Set 1 #

Total comments: 3

Patch Set 2 : remove from gyp #

Total comments: 6

Patch Set 3 : simplify #

Patch Set 4 : cleanup #

Total comments: 11

Patch Set 5 : feedback #

Patch Set 6 : FakeInterface #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Patch Set 9 : make dependent on a11y fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -97 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences_chromeos_browsertest.cc View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/preferences_unittest.cc View 1 2 3 4 5 3 chunks +3 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/system/fake_input_device_settings.h View 1 2 3 4 5 2 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/system/fake_input_device_settings.cc View 1 2 3 4 5 3 chunks +24 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/system/input_device_settings.h View 1 2 3 4 5 4 chunks +17 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc View 1 2 3 4 5 5 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/system/input_device_settings_impl_x11.cc View 1 2 3 4 5 5 chunks +13 lines, -14 lines 0 comments Download
M chrome/browser/resources/chromeos/emulator/audio_settings.js View 1 chunk +1 line, -8 lines 0 comments Download
M chrome/browser/resources/chromeos/emulator/battery_settings.js View 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/resources/chromeos/emulator/bluetooth_settings.js View 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/resources/chromeos/emulator/device_emulator_pages.html View 1 2 3 5 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/emulator/device_emulator_pages.js View 2 3 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/resources/chromeos/emulator/icons.html View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/emulator/input_device_settings.html View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/emulator/input_device_settings.js View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h View 1 2 3 4 5 5 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc View 1 2 3 4 5 7 chunks +57 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 47 (17 generated)
michaelpg
stevenjb: could you help with this? I'm trying to add a test file to chromeos ...
4 years, 7 months ago (2016-05-23 23:08:38 UTC) #3
stevenjb
On 2016/05/23 23:08:38, michaelpg wrote: > stevenjb: could you help with this? I'm trying to ...
4 years, 7 months ago (2016-05-24 18:40:54 UTC) #4
stevenjb
https://codereview.chromium.org/2006083002/diff/1/chrome/chrome_browser_chromeos.gypi File chrome/chrome_browser_chromeos.gypi (right): https://codereview.chromium.org/2006083002/diff/1/chrome/chrome_browser_chromeos.gypi#newcode1341 chrome/chrome_browser_chromeos.gypi:1341: ['buildtype!="Official"', { Do we even support official Debug builds? ...
4 years, 7 months ago (2016-05-24 20:57:25 UTC) #5
michaelpg
https://codereview.chromium.org/2006083002/diff/1/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): https://codereview.chromium.org/2006083002/diff/1/chrome/chrome_tests_unit.gypi#newcode2006 chrome/chrome_tests_unit.gypi:2006: 'sources': [ With 'sources' inside a 'variables' dictionary, GYP ...
4 years, 6 months ago (2016-06-03 16:18:34 UTC) #6
stevenjb
https://codereview.chromium.org/2006083002/diff/20001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc File chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc (right): https://codereview.chromium.org/2006083002/diff/20001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc#newcode226 chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc:226: power_observer_.reset(new PowerObserver(this)); These are also set in OnJavascriptAllowed(), is ...
4 years, 6 months ago (2016-06-08 01:03:08 UTC) #7
michaelpg
PTAL thakis: just chrome/browser/BUILD.gn https://codereview.chromium.org/2006083002/diff/20001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc File chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc (right): https://codereview.chromium.org/2006083002/diff/20001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc#newcode226 chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc:226: power_observer_.reset(new PowerObserver(this)); On 2016/06/08 01:03:08, ...
4 years, 5 months ago (2016-06-29 15:45:07 UTC) #11
michaelpg
PTAL thakis: just chrome/browser/BUILD.gn
4 years, 5 months ago (2016-06-29 15:45:18 UTC) #13
stevenjb
https://codereview.chromium.org/2006083002/diff/80001/chrome/browser/chromeos/system/fake_input_device_settings.cc File chrome/browser/chromeos/system/fake_input_device_settings.cc (right): https://codereview.chromium.org/2006083002/diff/80001/chrome/browser/chromeos/system/fake_input_device_settings.cc#newcode11 chrome/browser/chromeos/system/fake_input_device_settings.cc:11: : mouse_exists_(true), touchpad_exists_(true) {} nit: initialize in header https://codereview.chromium.org/2006083002/diff/80001/chrome/browser/chromeos/system/fake_input_device_settings.h ...
4 years, 5 months ago (2016-06-30 00:17:30 UTC) #14
Nico
https://codereview.chromium.org/2006083002/diff/80001/chrome/chrome_browser_chromeos.gypi File chrome/chrome_browser_chromeos.gypi (right): https://codereview.chromium.org/2006083002/diff/80001/chrome/chrome_browser_chromeos.gypi#newcode1026 chrome/chrome_browser_chromeos.gypi:1026: 'browser/chromeos/system/fake_input_device_settings.h', we usually consider files called fake_foo to be ...
4 years, 5 months ago (2016-06-30 17:25:51 UTC) #15
stevenjb
https://codereview.chromium.org/2006083002/diff/80001/chrome/chrome_browser_chromeos.gypi File chrome/chrome_browser_chromeos.gypi (right): https://codereview.chromium.org/2006083002/diff/80001/chrome/chrome_browser_chromeos.gypi#newcode1026 chrome/chrome_browser_chromeos.gypi:1026: 'browser/chromeos/system/fake_input_device_settings.h', On 2016/06/30 17:25:51, Nico wrote: > we usually ...
4 years, 5 months ago (2016-07-01 18:53:49 UTC) #16
michaelpg
https://codereview.chromium.org/2006083002/diff/80001/chrome/browser/chromeos/system/fake_input_device_settings.cc File chrome/browser/chromeos/system/fake_input_device_settings.cc (right): https://codereview.chromium.org/2006083002/diff/80001/chrome/browser/chromeos/system/fake_input_device_settings.cc#newcode11 chrome/browser/chromeos/system/fake_input_device_settings.cc:11: : mouse_exists_(true), touchpad_exists_(true) {} On 2016/06/30 00:17:30, stevenjb wrote: ...
4 years, 5 months ago (2016-07-01 22:01:48 UTC) #17
stevenjb
https://codereview.chromium.org/2006083002/diff/80001/chrome/browser/chromeos/system/input_device_settings.h File chrome/browser/chromeos/system/input_device_settings.h (right): https://codereview.chromium.org/2006083002/diff/80001/chrome/browser/chromeos/system/input_device_settings.h#newcode165 chrome/browser/chromeos/system/input_device_settings.h:165: static FakeInputDeviceSettings* GetForTesting(); On 2016/07/01 22:01:48, michaelpg wrote: > ...
4 years, 5 months ago (2016-07-02 00:28:26 UTC) #18
michaelpg
PTAL; the important changes in the latest patchsets are in chrome/browser/chromeos/system. The rest of the ...
4 years, 5 months ago (2016-07-07 22:16:54 UTC) #19
stevenjb
lgtm
4 years, 5 months ago (2016-07-07 23:02:00 UTC) #20
michaelpg
Nico: ping.
4 years, 5 months ago (2016-07-11 22:50:35 UTC) #21
michaelpg
On 2016/07/01 18:53:49, stevenjb wrote: > https://codereview.chromium.org/2006083002/diff/80001/chrome/chrome_browser_chromeos.gypi > File chrome/chrome_browser_chromeos.gypi (right): > > https://codereview.chromium.org/2006083002/diff/80001/chrome/chrome_browser_chromeos.gypi#newcode1026 > ...
4 years, 5 months ago (2016-07-15 02:32:33 UTC) #22
michaelpg
+sky: PTAL at chrome/browser/BUILD.gn -thakis (vacation)
4 years, 5 months ago (2016-07-18 18:58:00 UTC) #24
michaelpg
+dpranke: are you a proper owner for chrome/BUILD.gn? -sky: nevermind, just realized "per-file BUILD.gn=file://build/OWNERS"
4 years, 5 months ago (2016-07-18 19:00:21 UTC) #26
michaelpg
+dpranke: are you a proper owner for chrome/browser/BUILD.gn? -sky: nevermind, just realized "per-file BUILD.gn=file://build/OWNERS"
4 years, 5 months ago (2016-07-18 19:00:28 UTC) #27
Dirk Pranke
I assume you're referring to the per-file directive in //OWNERS, and that only applies to ...
4 years, 5 months ago (2016-07-18 19:32:21 UTC) #30
michaelpg
+sky: chrome/browser/BUILD.gn (for reals this time) -dpranke
4 years, 5 months ago (2016-07-18 19:35:30 UTC) #32
sky
BUILD.gn LGTM
4 years, 5 months ago (2016-07-18 20:11:12 UTC) #33
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/2006083002/160001
4 years, 5 months ago (2016-07-18 20:33:52 UTC) #36
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-18 20:33:54 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/245891)
4 years, 5 months ago (2016-07-18 21:52:22 UTC) #39
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/2006083002/180001
4 years, 5 months ago (2016-07-19 20:33:22 UTC) #42
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-19 20:33:26 UTC) #43
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 5 months ago (2016-07-19 21:49:57 UTC) #44
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-19 21:50:07 UTC) #45
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 21:51:31 UTC) #47
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/a37d858bf932e28599be6bec9bd3f1dbbe9e9874
Cr-Commit-Position: refs/heads/master@{#406390}

Powered by Google App Engine
This is Rietveld 408576698