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

Issue 2118223004: ash: Refactor touch hud drawing to ash/touch_hud as a separate component. (Closed)

Created:
4 years, 5 months ago by riajiang
Modified:
4 years, 5 months ago
Reviewers:
James Cook, sadrul, sky, Dan Beam
CC:
chromium-reviews, kalyank, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: Refactor touch hud drawing to ash/touch_hud as a separate component. BUG=588311 TEST=ash_unittests CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win8_chromium_gyp_dbg;master.tryserver.chromium.win:win8_chromium_gyp_rel Committed: https://crrev.com/98caac0fdcd637a95eb27e72c9a4c0a487e72d25 Committed: https://crrev.com/fd4123fd2d8efaa85d0b2f1550ca6e70ddc7cb55 Committed: https://crrev.com/791f5272dac166ce531ffc441ad721c57256c2cf Cr-Original-Original-Commit-Position: refs/heads/master@{#405296} Cr-Original-Commit-Position: refs/heads/master@{#405506} Cr-Commit-Position: refs/heads/master@{#405575}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Use unique_ptr; add descriptions #

Total comments: 4

Patch Set 3 : Move ui/views/controls/touch to ash/touch_hud. #

Patch Set 4 : Fix dependency issue. #

Patch Set 5 : Fix a comment. #

Total comments: 6

Patch Set 6 : Pass parent_widget in ctor; dependency #

Total comments: 24

Patch Set 7 : Remove extra dependency and includes; DCHECK; etc #

Total comments: 3

Patch Set 8 : Delete MakeUnique<>. #

Total comments: 2

Patch Set 9 : const-ref; try ASH_EXPORT #

Patch Set 10 : Add ASH_TOUCH_HUD_EXPORT #

Patch Set 11 : Add gyp file #

Total comments: 3

Patch Set 12 : GYP syntax #

Patch Set 13 : Add dependency #

Patch Set 14 : Add dependency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -187 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
A ash/ash_touch_hud.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +37 lines, -0 lines 0 comments Download
M ash/touch/touch_hud_projection.h View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M ash/touch/touch_hud_projection.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -141 lines 0 comments Download
M ash/touch/touch_observer_hud_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
A + ash/touch_hud/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -8 lines 0 comments Download
A ash/touch_hud/ash_touch_hud_export.h View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -0 lines 0 comments Download
A ash/touch_hud/touch_hud_renderer.h View 1 2 3 4 5 6 7 8 9 1 chunk +51 lines, -0 lines 0 comments Download
A + ash/touch_hud/touch_hud_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +40 lines, -35 lines 0 comments Download

Messages

Total messages: 70 (32 generated)
riajiang
4 years, 5 months ago (2016-07-05 18:05:56 UTC) #2
sky
https://codereview.chromium.org/2118223004/diff/1/ash/touch/touch_hud_projection.h File ash/touch/touch_hud_projection.h (right): https://codereview.chromium.org/2118223004/diff/1/ash/touch/touch_hud_projection.h#newcode38 ash/touch/touch_hud_projection.h:38: views::TouchHudDrawer* touch_hud_drawer_ = nullptr; unique_ptr https://codereview.chromium.org/2118223004/diff/1/ui/views/controls/touch/touch_hud_drawer.cc File ui/views/controls/touch/touch_hud_drawer.cc (right): ...
4 years, 5 months ago (2016-07-06 16:31:31 UTC) #3
riajiang
https://codereview.chromium.org/2118223004/diff/1/ash/touch/touch_hud_projection.h File ash/touch/touch_hud_projection.h (right): https://codereview.chromium.org/2118223004/diff/1/ash/touch/touch_hud_projection.h#newcode38 ash/touch/touch_hud_projection.h:38: views::TouchHudDrawer* touch_hud_drawer_ = nullptr; On 2016/07/06 16:31:30, sky wrote: ...
4 years, 5 months ago (2016-07-06 20:30:43 UTC) #4
sky
https://codereview.chromium.org/2118223004/diff/1/ui/views/controls/touch/touch_hud_drawer.h File ui/views/controls/touch/touch_hud_drawer.h (right): https://codereview.chromium.org/2118223004/diff/1/ui/views/controls/touch/touch_hud_drawer.h#newcode5 ui/views/controls/touch/touch_hud_drawer.h:5: #ifndef UI_VIEWS_CONTROLS_TOUCH_TOUCH_HUD_DRAWER_H_ On 2016/07/06 20:30:43, riajiang wrote: > On ...
4 years, 5 months ago (2016-07-07 00:00:42 UTC) #5
sky
https://codereview.chromium.org/2118223004/diff/20001/ui/views/controls/touch/touch_hud_drawer.h File ui/views/controls/touch/touch_hud_drawer.h (right): https://codereview.chromium.org/2118223004/diff/20001/ui/views/controls/touch/touch_hud_drawer.h#newcode27 ui/views/controls/touch/touch_hud_drawer.h:27: class VIEWS_EXPORT TouchHudDrawer { Can I also suggest naming ...
4 years, 5 months ago (2016-07-07 00:04:38 UTC) #6
sadrul
On 2016/07/07 00:00:42, sky wrote: > https://codereview.chromium.org/2118223004/diff/1/ui/views/controls/touch/touch_hud_drawer.h > File ui/views/controls/touch/touch_hud_drawer.h (right): > > https://codereview.chromium.org/2118223004/diff/1/ui/views/controls/touch/touch_hud_drawer.h#newcode5 > ...
4 years, 5 months ago (2016-07-08 15:54:05 UTC) #7
sky
SGTM too. Now that we're putting code under ash we should likely consider moving the ...
4 years, 5 months ago (2016-07-08 16:29:19 UTC) #8
riajiang
https://codereview.chromium.org/2118223004/diff/1/ui/views/controls/touch/touch_hud_drawer.h File ui/views/controls/touch/touch_hud_drawer.h (right): https://codereview.chromium.org/2118223004/diff/1/ui/views/controls/touch/touch_hud_drawer.h#newcode5 ui/views/controls/touch/touch_hud_drawer.h:5: #ifndef UI_VIEWS_CONTROLS_TOUCH_TOUCH_HUD_DRAWER_H_ On 2016/07/07 00:00:42, sky wrote: > On ...
4 years, 5 months ago (2016-07-11 16:26:04 UTC) #9
riajiang
+jamescook, since sky is OOO
4 years, 5 months ago (2016-07-11 18:38:39 UTC) #12
sadrul
https://codereview.chromium.org/2118223004/diff/80001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2118223004/diff/80001/ash/BUILD.gn#newcode27 ash/BUILD.gn:27: "//ash/touch_hud", This shouldn't need to be a public-dependency. https://codereview.chromium.org/2118223004/diff/80001/ash/touch/touch_hud_projection.cc ...
4 years, 5 months ago (2016-07-11 18:41:06 UTC) #13
riajiang
https://codereview.chromium.org/2118223004/diff/80001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2118223004/diff/80001/ash/BUILD.gn#newcode27 ash/BUILD.gn:27: "//ash/touch_hud", On 2016/07/11 18:41:05, sadrul wrote: > This shouldn't ...
4 years, 5 months ago (2016-07-11 20:39:34 UTC) #14
James Cook
Overall approach seems fine. Please update the CL description to have BUG= and TEST= lines. ...
4 years, 5 months ago (2016-07-12 17:22:07 UTC) #15
sadrul
https://codereview.chromium.org/2118223004/diff/100001/ash/touch_hud/touch_hud_renderer.cc File ash/touch_hud/touch_hud_renderer.cc (right): https://codereview.chromium.org/2118223004/diff/100001/ash/touch_hud/touch_hud_renderer.cc#newcode70 ash/touch_hud/touch_hud_renderer.cc:70: void Destroy() { delete this; } On 2016/07/12 17:22:07, ...
4 years, 5 months ago (2016-07-12 17:48:10 UTC) #16
riajiang
https://codereview.chromium.org/2118223004/diff/100001/ash/touch/touch_hud_projection.cc File ash/touch/touch_hud_projection.cc (right): https://codereview.chromium.org/2118223004/diff/100001/ash/touch/touch_hud_projection.cc#newcode1 ash/touch/touch_hud_projection.cc:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
4 years, 5 months ago (2016-07-12 20:08:26 UTC) #18
James Cook
LGTM https://codereview.chromium.org/2118223004/diff/120001/ash/touch/touch_hud_projection.cc File ash/touch/touch_hud_projection.cc (right): https://codereview.chromium.org/2118223004/diff/120001/ash/touch/touch_hud_projection.cc#newcode18 ash/touch/touch_hud_projection.cc:18: touch_hud_renderer_(base::MakeUnique<TouchHudRenderer>(widget())) {} nit: I don't think you need ...
4 years, 5 months ago (2016-07-12 22:46:02 UTC) #19
riajiang
https://codereview.chromium.org/2118223004/diff/120001/ash/touch/touch_hud_projection.cc File ash/touch/touch_hud_projection.cc (right): https://codereview.chromium.org/2118223004/diff/120001/ash/touch/touch_hud_projection.cc#newcode18 ash/touch/touch_hud_projection.cc:18: touch_hud_renderer_(base::MakeUnique<TouchHudRenderer>(widget())) {} On 2016/07/12 22:46:02, James Cook wrote: > ...
4 years, 5 months ago (2016-07-13 00:12:11 UTC) #20
sadrul
lgtm https://codereview.chromium.org/2118223004/diff/120001/ash/touch/touch_hud_projection.cc File ash/touch/touch_hud_projection.cc (right): https://codereview.chromium.org/2118223004/diff/120001/ash/touch/touch_hud_projection.cc#newcode18 ash/touch/touch_hud_projection.cc:18: touch_hud_renderer_(base::MakeUnique<TouchHudRenderer>(widget())) {} On 2016/07/13 00:12:11, riajiang wrote: > ...
4 years, 5 months ago (2016-07-13 00:31:48 UTC) #23
riajiang
Also added ASH_TOUCH_HUD_EXPORT and gyp for ash/touch_hud. PTAL. Thanks https://codereview.chromium.org/2118223004/diff/140001/ash/touch_hud/touch_hud_renderer.h File ash/touch_hud/touch_hud_renderer.h (right): https://codereview.chromium.org/2118223004/diff/140001/ash/touch_hud/touch_hud_renderer.h#newcode34 ash/touch_hud/touch_hud_renderer.h:34: ...
4 years, 5 months ago (2016-07-13 18:33:45 UTC) #26
James Cook
still lgtm
4 years, 5 months ago (2016-07-13 19:22:53 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/2118223004/200001
4 years, 5 months ago (2016-07-13 19:39:04 UTC) #30
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 5 months ago (2016-07-13 21:36:33 UTC) #32
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/98caac0fdcd637a95eb27e72c9a4c0a487e72d25 Cr-Commit-Position: refs/heads/master@{#405296}
4 years, 5 months ago (2016-07-13 21:39:14 UTC) #34
Dan Beam
reverting this https://codereview.chromium.org/2118223004/diff/200001/ash/ash_touch_hud.gyp File ash/ash_touch_hud.gyp (right): https://codereview.chromium.org/2118223004/diff/200001/ash/ash_touch_hud.gyp#newcode26 ash/ash_touch_hud.gyp:26: }, ], whoops
4 years, 5 months ago (2016-07-13 22:21:35 UTC) #36
Dan Beam
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/2145223002/ by dbeam@chromium.org. ...
4 years, 5 months ago (2016-07-13 22:22:07 UTC) #37
riajiang
https://codereview.chromium.org/2118223004/diff/200001/ash/ash_touch_hud.gyp File ash/ash_touch_hud.gyp (right): https://codereview.chromium.org/2118223004/diff/200001/ash/ash_touch_hud.gyp#newcode26 ash/ash_touch_hud.gyp:26: }, On 2016/07/13 22:21:35, Dan Beam wrote: > ], ...
4 years, 5 months ago (2016-07-13 22:28:44 UTC) #38
Dan Beam
https://codereview.chromium.org/2118223004/diff/200001/ash/ash_touch_hud.gyp File ash/ash_touch_hud.gyp (right): https://codereview.chromium.org/2118223004/diff/200001/ash/ash_touch_hud.gyp#newcode26 ash/ash_touch_hud.gyp:26: }, On 2016/07/13 22:28:44, riajiang wrote: > On 2016/07/13 ...
4 years, 5 months ago (2016-07-13 22:31:48 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/2118223004/220001
4 years, 5 months ago (2016-07-13 22:39:35 UTC) #43
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/2118223004/220001
4 years, 5 months ago (2016-07-13 23:11:46 UTC) #48
Dan Beam
from the extra try bots I added: FAILED: ash_touch_hud.dll ash_touch_hud.dll.lib ash_touch_hud.dll.pdb E:\b\depot_tools\python276_bin\python.exe gyp-win-tool link-with-manifests environment.x86 ...
4 years, 5 months ago (2016-07-13 23:46:45 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_gyp_dbg on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_gyp_dbg/builds/24)
4 years, 5 months ago (2016-07-14 00:43:31 UTC) #51
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/2118223004/240001
4 years, 5 months ago (2016-07-14 15:40:31 UTC) #54
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 5 months ago (2016-07-14 17:03:24 UTC) #56
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/fd4123fd2d8efaa85d0b2f1550ca6e70ddc7cb55 Cr-Commit-Position: refs/heads/master@{#405506}
4 years, 5 months ago (2016-07-14 17:05:08 UTC) #58
riajiang
A revert of this CL (patchset #13 id:240001) has been created in https://codereview.chromium.org/2153493002/ by riajiang@chromium.org. ...
4 years, 5 months ago (2016-07-14 18:40:37 UTC) #59
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/2118223004/260001
4 years, 5 months ago (2016-07-14 20:02:27 UTC) #64
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 5 months ago (2016-07-14 21:24:01 UTC) #66
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 21:24:19 UTC) #67
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 21:25:45 UTC) #69
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/791f5272dac166ce531ffc441ad721c57256c2cf
Cr-Commit-Position: refs/heads/master@{#405575}

Powered by Google App Engine
This is Rietveld 408576698