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

Issue 2644713002: cros: Use runtime stylus detection for ash palette. (Closed)

Created:
3 years, 11 months ago by jdufault
Modified:
3 years, 10 months ago
Reviewers:
stevenjb, James Cook
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, sadrul, michaelpg+watch-md-settings_chromium.org, oshima+watch_chromium.org, kalyank, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Use runtime stylus detection for ash palette. The same cros image can be used on devices both with and without stylus support. This means we have to use runtime detection for enabling the palette, as we cannot differentiate in the overlay as we do now (USE="stylus"). BUG=679451 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2644713002 Cr-Commit-Position: refs/heads/master@{#448858} Committed: https://chromium.googlesource.com/chromium/src/+/d08c50b08dfba28fea35212d604fa4619b663724

Patch Set 1 : Initial upload #

Total comments: 13

Patch Set 2 : Rebase #

Patch Set 3 : Address comments #

Patch Set 4 : Rebase #

Patch Set 5 : Add listeners to options and settings #

Total comments: 2

Patch Set 6 : Rebase #

Patch Set 7 : Explicitly initialize properties to false #

Total comments: 8

Patch Set 8 : Rebase #

Patch Set 9 : Address comments #

Patch Set 10 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -139 lines) Patch
M ash/common/ash_switches.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M ash/common/ash_switches.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M ash/common/palette_delegate.h View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M ash/common/system/chromeos/palette/palette_tray.h View 4 chunks +6 lines, -3 lines 0 comments Download
M ash/common/system/chromeos/palette/palette_tray.cc View 1 2 3 4 5 6 7 8 7 chunks +39 lines, -36 lines 0 comments Download
M ash/common/system/chromeos/palette/palette_utils.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -3 lines 0 comments Download
M ash/common/system/chromeos/palette/palette_utils.cc View 1 2 3 4 5 6 7 8 2 chunks +20 lines, -3 lines 0 comments Download
M ash/common/system/status_area_widget.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -4 lines 0 comments Download
M ash/common/test/test_palette_delegate.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M ash/common/test/test_palette_delegate.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ash/laser/laser_pointer_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ash/magnifier/partial_magnification_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/note_taking_helper.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -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 chrome/browser/resources/options/browser_options.js View 1 2 3 4 3 chunks +20 lines, -6 lines 0 comments Download
M chrome/browser/resources/settings/device_page/device_page.html View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/resources/settings/device_page/device_page.js View 1 2 3 4 5 6 2 chunks +16 lines, -9 lines 0 comments Download
M chrome/browser/resources/settings/device_page/device_page_browser_proxy.js View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/palette_delegate_chromeos.h View 1 2 3 4 chunks +1 line, -14 lines 0 comments Download
M chrome/browser/ui/ash/palette_delegate_chromeos.cc View 1 2 3 3 chunks +1 line, -21 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/options_stylus_handler.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/options_stylus_handler.cc View 1 2 3 4 5 6 7 8 4 chunks +25 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/device_stylus_handler.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/device_stylus_handler.cc View 1 2 3 4 5 6 7 8 5 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_ui.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/webui/settings/device_page_tests.js View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 63 (51 generated)
jdufault
stevenjb@, jamescook@, PTAL. Thanks!
3 years, 11 months ago (2017-01-20 23:02:30 UTC) #22
stevenjb
https://codereview.chromium.org/2644713002/diff/60001/ash/common/system/chromeos/palette/palette_tray.cc File ash/common/system/chromeos/palette/palette_tray.cc (right): https://codereview.chromium.org/2644713002/diff/60001/ash/common/system/chromeos/palette/palette_tray.cc#newcode422 ash/common/system/chromeos/palette/palette_tray.cc:422: if (delegate) { if (!delegate) return; https://codereview.chromium.org/2644713002/diff/60001/ash/common/system/chromeos/palette/palette_tray.h File ash/common/system/chromeos/palette/palette_tray.h ...
3 years, 11 months ago (2017-01-21 00:23:50 UTC) #23
James Cook
I'll let you sort things out with Steven first - ping me when you want ...
3 years, 11 months ago (2017-01-23 16:58:48 UTC) #24
jdufault
https://codereview.chromium.org/2644713002/diff/60001/ash/common/system/chromeos/palette/palette_tray.cc File ash/common/system/chromeos/palette/palette_tray.cc (right): https://codereview.chromium.org/2644713002/diff/60001/ash/common/system/chromeos/palette/palette_tray.cc#newcode422 ash/common/system/chromeos/palette/palette_tray.cc:422: if (delegate) { On 2017/01/21 00:23:50, stevenjb wrote: > ...
3 years, 11 months ago (2017-01-25 00:53:15 UTC) #29
stevenjb
https://codereview.chromium.org/2644713002/diff/60001/ash/common/system/chromeos/palette/palette_tray.h File ash/common/system/chromeos/palette/palette_tray.h (right): https://codereview.chromium.org/2644713002/diff/60001/ash/common/system/chromeos/palette/palette_tray.h#newcode85 ash/common/system/chromeos/palette/palette_tray.h:85: void OnStylusStateChanged(ui::StylusState stylus_state) override; On 2017/01/25 00:53:15, jdufault wrote: ...
3 years, 11 months ago (2017-01-25 01:12:13 UTC) #30
jdufault
https://codereview.chromium.org/2644713002/diff/60001/chrome/browser/ui/webui/options/chromeos/options_stylus_handler.cc File chrome/browser/ui/webui/options/chromeos/options_stylus_handler.cc (right): https://codereview.chromium.org/2644713002/diff/60001/chrome/browser/ui/webui/options/chromeos/options_stylus_handler.cc#newcode64 chrome/browser/ui/webui/options/chromeos/options_stylus_handler.cc:64: localized_strings->SetBoolean("showStylusSettings", ash::HasStylusInput()); On 2017/01/25 01:12:13, stevenjb wrote: > On ...
3 years, 10 months ago (2017-02-03 20:30:19 UTC) #41
stevenjb
lgtm https://codereview.chromium.org/2644713002/diff/160001/chrome/browser/resources/settings/device_page/device_page.js File chrome/browser/resources/settings/device_page/device_page.js (right): https://codereview.chromium.org/2644713002/diff/160001/chrome/browser/resources/settings/device_page/device_page.js#newcode35 chrome/browser/resources/settings/device_page/device_page.js:35: hasStylus_: Boolean, This should actually initialize to 'false', ...
3 years, 10 months ago (2017-02-03 23:11:26 UTC) #42
jdufault
https://codereview.chromium.org/2644713002/diff/160001/chrome/browser/resources/settings/device_page/device_page.js File chrome/browser/resources/settings/device_page/device_page.js (right): https://codereview.chromium.org/2644713002/diff/160001/chrome/browser/resources/settings/device_page/device_page.js#newcode35 chrome/browser/resources/settings/device_page/device_page.js:35: hasStylus_: Boolean, On 2017/02/03 23:11:26, stevenjb wrote: > This ...
3 years, 10 months ago (2017-02-06 21:44:42 UTC) #45
James Cook
ash LGTM with nits https://codereview.chromium.org/2644713002/diff/200001/ash/common/ash_switches.cc File ash/common/ash_switches.cc (right): https://codereview.chromium.org/2644713002/diff/200001/ash/common/ash_switches.cc#newcode55 ash/common/ash_switches.cc:55: const char kAshForceEnablePalette[] = "ash-force-enable-palette"; ...
3 years, 10 months ago (2017-02-06 23:06:39 UTC) #48
jdufault
https://codereview.chromium.org/2644713002/diff/200001/ash/common/ash_switches.cc File ash/common/ash_switches.cc (right): https://codereview.chromium.org/2644713002/diff/200001/ash/common/ash_switches.cc#newcode55 ash/common/ash_switches.cc:55: const char kAshForceEnablePalette[] = "ash-force-enable-palette"; On 2017/02/06 23:06:39, James ...
3 years, 10 months ago (2017-02-08 02:06:21 UTC) #57
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/2644713002/260001
3 years, 10 months ago (2017-02-08 02:07:12 UTC) #60
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 02:15:01 UTC) #63
Message was sent while issue was closed.
Committed patchset #10 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/d08c50b08dfba28fea35212d604f...

Powered by Google App Engine
This is Rietveld 408576698