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

Issue 2825383003: Fix stylus tools palette. (Closed)

Created:
3 years, 8 months ago by wutao
Modified:
3 years, 7 months ago
CC:
chromium-reviews, alemate+watch_chromium.org, sadrul, oshima+watch_chromium.org, achuith+watch_chromium.org, asvitkine+watch_chromium.org, kalyank, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix stylus tools palette. HandleShowStylusTools crashes at desktop ChromeOS UI and shows stylus tools on device does not have stylus. Adding more checks when we should HandleShowStylusTools and when to AddPaletteTray. BUG=712887, 717674, 717422 TEST=Manual && AboutFlagsHistogramTest.CheckHistograms Review-Url: https://codereview.chromium.org/2825383003 Cr-Commit-Position: refs/heads/master@{#469418} Committed: https://chromium.googlesource.com/chromium/src/+/53e9c2e81bf4fe7d0f6bcaebca0c717b19430313

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix tests in mus. #

Patch Set 3 : Add StatusAreaWidget to observe InputDeviceManager. #

Patch Set 4 : Load palette_tray all the time. Only check when show it #

Total comments: 6

Patch Set 5 : Fix comments. #

Patch Set 6 : Fix loading palette in mus and add one more comment. #

Patch Set 7 : Rebase and update the enums.xml file. #

Total comments: 1

Patch Set 8 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -37 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 2 chunks +1 line, -9 lines 0 comments Download
M ash/ash_switches.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ash/ash_switches.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ash/system/palette/palette_tray.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ash/system/palette/palette_tray.cc View 1 2 3 4 5 3 chunks +12 lines, -1 line 0 comments Download
M ash/system/palette/palette_utils.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ash/system/palette/palette_utils.cc View 1 2 3 4 3 chunks +12 lines, -1 line 0 comments Download
M ash/system/status_area_widget.cc View 1 2 3 4 5 3 chunks +4 lines, -10 lines 0 comments Download
M ash/system/status_area_widget_unittest.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/note_taking_helper_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M ui/events/devices/input_device.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M ui/events/devices/touchscreen_device.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/devices/touchscreen_device.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 55 (33 generated)
wutao
Hi stevenjb@: Please review changes in ash/system/* and chrome/browser/* Hi oshima@: Please review changes in ...
3 years, 8 months ago (2017-04-19 22:26:43 UTC) #2
wutao
Hi holte@, Please review tools/metrics/histograms/histograms.xml. Thank you, Tao
3 years, 8 months ago (2017-04-19 22:28:22 UTC) #4
oshima
I think it's better for jdufault@ to review this first.
3 years, 8 months ago (2017-04-19 22:32:08 UTC) #8
jdufault
lgtm https://codereview.chromium.org/2825383003/diff/1/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/2825383003/diff/1/ash/accelerators/accelerator_controller.cc#newcode524 ash/accelerators/accelerator_controller.cc:524: palette_utils::ShouldCreatePalette(); Check this first https://codereview.chromium.org/2825383003/diff/1/ash/system/status_area_widget.cc File ash/system/status_area_widget.cc (right): ...
3 years, 8 months ago (2017-04-19 22:58:38 UTC) #9
Steven Holte
histograms lgtm
3 years, 8 months ago (2017-04-20 00:28:31 UTC) #12
wutao
jdufault@, ptal. Fixed some tests failed in Config::MUS/MASH. It seems every test try to AddPaletteTray(). ...
3 years, 8 months ago (2017-04-20 16:17:52 UTC) #13
jdufault
lgtm
3 years, 8 months ago (2017-04-20 17:41:39 UTC) #16
stevenjb
owner lgtm
3 years, 8 months ago (2017-04-20 18:25:47 UTC) #19
oshima
lgtm
3 years, 8 months ago (2017-04-20 19:53:58 UTC) #20
wutao
Hi jdufault@, StatusAreaWidget try to AddPaletteTray before InputDeviceManager has the full device list. So at ...
3 years, 8 months ago (2017-04-22 02:05:08 UTC) #21
jdufault
On 2017/04/22 02:05:08, wutao wrote: > Hi jdufault@, > > StatusAreaWidget try to AddPaletteTray before ...
3 years, 8 months ago (2017-04-24 20:10:06 UTC) #26
wutao
Hi jdufault@, ptal. InputDeviceManager has been wired up for mus/mash test, so do no need ...
3 years, 8 months ago (2017-04-24 22:53:03 UTC) #27
jdufault
https://codereview.chromium.org/2825383003/diff/60001/ash/system/palette/palette_utils.h File ash/system/palette/palette_utils.h (right): https://codereview.chromium.org/2825383003/diff/60001/ash/system/palette/palette_utils.h#newcode17 ash/system/palette/palette_utils.h:17: // Returns true if there is a stylus input ...
3 years, 8 months ago (2017-04-26 18:50:43 UTC) #28
wutao
Hi jdufault@, ptal. https://codereview.chromium.org/2825383003/diff/60001/ash/system/palette/palette_utils.h File ash/system/palette/palette_utils.h (right): https://codereview.chromium.org/2825383003/diff/60001/ash/system/palette/palette_utils.h#newcode17 ash/system/palette/palette_utils.h:17: // Returns true if there is ...
3 years, 8 months ago (2017-04-26 22:01:50 UTC) #29
jdufault
lgtm, can you also add a class-level comment to PaletteTray? // PaletteTray has one instance ...
3 years, 7 months ago (2017-05-02 22:11:40 UTC) #30
wutao
Hi James: Please review the fix for showing palette under mus: ui/events/devices/touchscreen_device.cc Hi sky@: Please ...
3 years, 7 months ago (2017-05-04 02:12:52 UTC) #33
sky
LGTM
3 years, 7 months ago (2017-05-04 02:16:23 UTC) #34
wutao
enums was split from histograms.xml. Rebased and updated.
3 years, 7 months ago (2017-05-04 03:56:20 UTC) #39
James Cook
LGTM with nit https://codereview.chromium.org/2825383003/diff/120001/ui/events/devices/touchscreen_device.cc File ui/events/devices/touchscreen_device.cc (right): https://codereview.chromium.org/2825383003/diff/120001/ui/events/devices/touchscreen_device.cc#newcode13 ui/events/devices/touchscreen_device.cc:13: TouchscreenDevice::TouchscreenDevice() : touch_points(0), is_stylus(false) {} nit: ...
3 years, 7 months ago (2017-05-04 14:10:01 UTC) #44
wutao
On 2017/05/04 14:10:01, James Cook wrote: > LGTM with nit > > https://codereview.chromium.org/2825383003/diff/120001/ui/events/devices/touchscreen_device.cc > File ...
3 years, 7 months ago (2017-05-04 18:03:58 UTC) #47
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/2825383003/140001
3 years, 7 months ago (2017-05-04 19:10:45 UTC) #52
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 19:19:51 UTC) #55
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/53e9c2e81bf4fe7d0f6bcaebca0c...

Powered by Google App Engine
This is Rietveld 408576698