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

Issue 2020553003: Hook up TABLET_MODE switch to maximize_mode_controller (Closed)

Created:
4 years, 6 months ago by jcliang
Modified:
4 years, 6 months ago
CC:
chromium-reviews, derat+watch_chromium.org, hashimoto+watch_chromium.org, kalyank, oshima+watch_chromium.org, sadrul, Mr4D (OOO till 08-26)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hook up TABLET_MODE switch to maximize_mode_controller This is part of the patch set that hooks up tablet mode switch to Chrome. If the tablet mode switch is on then Chrome can know for sure that it needs to enable maximize mode (tablet mode). The helps Chrome to decide whether to enable tablet mode in some corner cases where the accelerometer readings are not stable. BUG=chrome-os-partner:49114 TEST=unit tests TEST=Build power_manager and chrome and deploy to my DUT. Make sure that: - The device enters maximize mode when tablet mode switch is on. - The device leaves maximize mode when tablet mode switch is off and lid angle is less than kExitMaximizeModeAngle. Signed-off-by: Ricky Liang <jcliang@chromium.org>; Committed: https://crrev.com/3fb658ae4db44dfe1a1686ce0717070e11247d9c Cr-Commit-Position: refs/heads/master@{#400076}

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Total comments: 11

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Total comments: 3

Patch Set 7 : #

Patch Set 8 : Hook up TABLET_MODE switch to maximize_mode_controller #

Total comments: 4

Patch Set 9 : Hook up TABLET_MODE switch to maximize_mode_controller #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -10 lines) Patch
M DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -3 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 2 3 4 5 6 7 8 7 chunks +23 lines, -6 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 1 2 3 4 5 6 7 3 chunks +37 lines, -0 lines 0 comments Download
M chromeos/dbus/power_manager_client.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/dbus/power_manager_client.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 79 (29 generated)
jcliang
On 2016/05/27 14:10:56, jcliang wrote: > mailto:jcliang@chromium.org changed reviewers: > + mailto:afakhry@chromium.org, mailto:derat@chromium.org, mailto:jonross@chromium.org, > ...
4 years, 6 months ago (2016-06-03 02:08:18 UTC) #3
jonross
On 2016/06/03 02:08:18, jcliang wrote: > On 2016/05/27 14:10:56, jcliang wrote: > > mailto:jcliang@chromium.org changed ...
4 years, 6 months ago (2016-06-03 02:18:28 UTC) #4
jcliang
On 2016/06/03 02:18:28, jonross wrote: > On 2016/06/03 02:08:18, jcliang wrote: > > On 2016/05/27 ...
4 years, 6 months ago (2016-06-03 02:31:50 UTC) #5
jonross
On 2016/06/03 02:31:50, jcliang wrote: > On 2016/06/03 02:18:28, jonross wrote: > > On 2016/06/03 ...
4 years, 6 months ago (2016-06-03 03:14:28 UTC) #6
jonross
https://codereview.chromium.org/2020553003/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/2020553003/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode240 ash/wm/maximize_mode/maximize_mode_controller.cc:240: lid_open_past_180_ = true; I think that this should be ...
4 years, 6 months ago (2016-06-03 03:27:19 UTC) #7
jcliang
https://codereview.chromium.org/2020553003/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/2020553003/diff/1/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode240 ash/wm/maximize_mode/maximize_mode_controller.cc:240: lid_open_past_180_ = true; On 2016/06/03 03:27:19, jonross wrote: > ...
4 years, 6 months ago (2016-06-03 05:28:49 UTC) #8
Daniel Erat
please be sure to add unit tests for the new behavior. https://codereview.chromium.org/2020553003/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): ...
4 years, 6 months ago (2016-06-03 15:00:19 UTC) #9
jonross
https://codereview.chromium.org/2020553003/diff/1/ash/wm/maximize_mode/maximize_mode_controller.h File ash/wm/maximize_mode/maximize_mode_controller.h (right): https://codereview.chromium.org/2020553003/diff/1/ash/wm/maximize_mode/maximize_mode_controller.h#newcode177 ash/wm/maximize_mode/maximize_mode_controller.h:177: bool force_maximize_mode_; On 2016/06/03 05:28:49, jcliang wrote: > On ...
4 years, 6 months ago (2016-06-03 16:27:24 UTC) #10
Daniel Erat
https://codereview.chromium.org/2020553003/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/2020553003/diff/20001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode344 ash/wm/maximize_mode/maximize_mode_controller.cc:344: if (tablet_mode_) On 2016/06/03 16:27:24, jonross wrote: > On ...
4 years, 6 months ago (2016-06-03 16:59:51 UTC) #11
jcliang
What's the best way to run the unit tests? Is there a way to run ...
4 years, 6 months ago (2016-06-06 04:39:22 UTC) #12
Daniel Erat
in the past, i built ash_unittests and then ran e.g. "out/Debug/ash_unittests --gtest_filter=PowerStatus\*" to run individual ...
4 years, 6 months ago (2016-06-06 15:24:56 UTC) #13
jcliang
In ash/BUILD.gn maximize_mode_controller_unittest is not built if !is_chromeose, so building against the host doesn't give ...
4 years, 6 months ago (2016-06-06 16:48:37 UTC) #14
oshima
On 2016/06/06 16:48:37, jcliang wrote: > In ash/BUILD.gn maximize_mode_controller_unittest is not built if !is_chromeose, > ...
4 years, 6 months ago (2016-06-06 16:52:44 UTC) #15
jcliang
On Tue, Jun 7, 2016 at 12:52 AM, <oshima@chromium.org> wrote: > On 2016/06/06 16:48:37, jcliang ...
4 years, 6 months ago (2016-06-06 17:21:20 UTC) #16
Daniel Erat
https://codereview.chromium.org/2020553003/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/2020553003/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode214 ash/wm/maximize_mode/maximize_mode_controller.cc:214: return; i'm wondering if this early return can cause ...
4 years, 6 months ago (2016-06-06 17:23:08 UTC) #17
oshima
On Mon, Jun 6, 2016 at 10:21 AM, Ricky Liang <jcliang@chromium.org> wrote: > On Tue, ...
4 years, 6 months ago (2016-06-06 17:31:11 UTC) #18
jcliang
https://codereview.chromium.org/2020553003/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/2020553003/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode214 ash/wm/maximize_mode/maximize_mode_controller.cc:214: return; On 2016/06/06 17:23:07, Daniel Erat wrote: > i'm ...
4 years, 6 months ago (2016-06-06 18:19:25 UTC) #19
Daniel Erat
(no more comments from me beyond these, but i'll let jon approve it since i ...
4 years, 6 months ago (2016-06-06 18:57:14 UTC) #20
jcliang
https://codereview.chromium.org/2020553003/diff/80001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/2020553003/diff/80001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode234 ash/wm/maximize_mode/maximize_mode_controller.cc:234: if (on) { On 2016/06/06 18:57:14, Daniel Erat wrote: ...
4 years, 6 months ago (2016-06-07 07:27:30 UTC) #21
jonross
https://codereview.chromium.org/2020553003/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/2020553003/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode214 ash/wm/maximize_mode/maximize_mode_controller.cc:214: return; On 2016/06/06 18:19:25, jcliang wrote: > On 2016/06/06 ...
4 years, 6 months ago (2016-06-07 15:27:15 UTC) #22
jcliang
https://codereview.chromium.org/2020553003/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/2020553003/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode214 ash/wm/maximize_mode/maximize_mode_controller.cc:214: return; On 2016/06/07 15:27:15, jonross wrote: > On 2016/06/06 ...
4 years, 6 months ago (2016-06-07 16:57:23 UTC) #23
jonross
https://codereview.chromium.org/2020553003/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/2020553003/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode214 ash/wm/maximize_mode/maximize_mode_controller.cc:214: return; On 2016/06/07 16:57:23, jcliang wrote: > On 2016/06/07 ...
4 years, 6 months ago (2016-06-07 22:04:42 UTC) #24
jcliang
https://codereview.chromium.org/2020553003/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/2020553003/diff/60001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode214 ash/wm/maximize_mode/maximize_mode_controller.cc:214: return; On 2016/06/07 22:04:42, jonross wrote: > On 2016/06/07 ...
4 years, 6 months ago (2016-06-08 04:12:38 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020553003/120001
4 years, 6 months ago (2016-06-08 04:13:19 UTC) #28
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. CQ run can only be started ...
4 years, 6 months ago (2016-06-08 04:13:22 UTC) #30
jonross
On 2016/06/08 04:13:22, commit-bot: I haz the power wrote: > Dry run: No L-G-T-M from ...
4 years, 6 months ago (2016-06-08 15:31:13 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020553003/120001
4 years, 6 months ago (2016-06-08 15:33:23 UTC) #33
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/149847)
4 years, 6 months ago (2016-06-08 15:47:37 UTC) #35
jcliang
On 2016/06/08 15:47:37, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 6 months ago (2016-06-08 15:55:44 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020553003/140001
4 years, 6 months ago (2016-06-13 16:59:08 UTC) #41
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/238101)
4 years, 6 months ago (2016-06-13 19:12:38 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020553003/140001
4 years, 6 months ago (2016-06-14 00:27:33 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/200077)
4 years, 6 months ago (2016-06-14 00:37:21 UTC) #50
jcliang
Looks like the presubmit check requires LGTM from owners of all the modified files: ** ...
4 years, 6 months ago (2016-06-14 02:00:10 UTC) #53
Daniel Erat
lgtm
4 years, 6 months ago (2016-06-14 02:05:25 UTC) #54
Mr4D (OOO till 08-26)
ash/wm/maximize_mode/* lgtm, but please wait for flackr to have a look about the beyond180 case
4 years, 6 months ago (2016-06-15 04:59:43 UTC) #56
Mr4D (OOO till 08-26)
ash/wm/maximize_mode/* lgtm, but please wait for flackr to have a look about the beyond180 case
4 years, 6 months ago (2016-06-15 04:59:49 UTC) #57
flackr
https://codereview.chromium.org/2020553003/diff/140001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/2020553003/diff/140001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode272 ash/wm/maximize_mode/maximize_mode_controller.cc:272: std::abs(base_reading.x()) <= kHingeVerticalSmoothingMaximum; This should check largest_hinge_acceleration instead to ...
4 years, 6 months ago (2016-06-15 07:53:24 UTC) #58
jcliang
https://codereview.chromium.org/2020553003/diff/140001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/2020553003/diff/140001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode272 ash/wm/maximize_mode/maximize_mode_controller.cc:272: std::abs(base_reading.x()) <= kHingeVerticalSmoothingMaximum; On 2016/06/15 07:53:24, flackr wrote: > ...
4 years, 6 months ago (2016-06-15 08:14:10 UTC) #59
flackr
On 2016/06/15 at 08:14:10, jcliang wrote: > https://codereview.chromium.org/2020553003/diff/140001/ash/wm/maximize_mode/maximize_mode_controller.cc > File ash/wm/maximize_mode/maximize_mode_controller.cc (right): > > https://codereview.chromium.org/2020553003/diff/140001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode272 ...
4 years, 6 months ago (2016-06-15 08:23:41 UTC) #60
jcliang
On 2016/06/15 08:23:41, flackr wrote: > On 2016/06/15 at 08:14:10, jcliang wrote: > > > ...
4 years, 6 months ago (2016-06-15 08:53:29 UTC) #61
flackr
On 2016/06/15 at 08:53:29, jcliang wrote: > On 2016/06/15 08:23:41, flackr wrote: > > On ...
4 years, 6 months ago (2016-06-15 08:59:10 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020553003/160001
4 years, 6 months ago (2016-06-15 09:00:07 UTC) #65
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/81615)
4 years, 6 months ago (2016-06-15 09:09:01 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020553003/160001
4 years, 6 months ago (2016-06-15 12:51:42 UTC) #69
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/87978)
4 years, 6 months ago (2016-06-15 13:54:57 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020553003/160001
4 years, 6 months ago (2016-06-16 01:46:02 UTC) #74
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 6 months ago (2016-06-16 02:53:59 UTC) #76
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-16 02:54:06 UTC) #77
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 02:55:08 UTC) #79
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/3fb658ae4db44dfe1a1686ce0717070e11247d9c
Cr-Commit-Position: refs/heads/master@{#400076}

Powered by Google App Engine
This is Rietveld 408576698