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

Issue 928163002: Initial implementation of WebUI generator (WUG) toolkit. (Closed)

Created:
5 years, 10 months ago by dzhioev (left Google)
Modified:
5 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WUG (Web UI generator) is an utility toolkit which facilitates WebUI creation. All parts of WUG are implemented: * Base classes for view (View) and view-model (ViewModel) * WebUIView -- specialization of View for use in WebUI. * View's CC, HTML and JS code generator * Templates for GYP and GN which help to generate code and produce components from generated code. Tests to follow. TEST=none TBR=avi@chromium.org,mark@chromium.org BUG=459230 Committed: https://crrev.com/c1c2a503cdd7a68e7c25d36213a15c97e62a9ba7 Cr-Commit-Position: refs/heads/master@{#318884}

Patch Set 1 #

Patch Set 2 : No find copies. #

Patch Set 3 : #

Patch Set 4 : Comments and style. #

Patch Set 5 : Owners updated. #

Total comments: 74

Patch Set 6 : Fixed problems with component build. #

Total comments: 24

Patch Set 7 : Comments addressed. #

Total comments: 10

Patch Set 8 : "Comments addressed." #

Patch Set 9 : s/wug/webui_generator/ #

Patch Set 10 : Fixed order in BUILD.gn and components.gyp #

Total comments: 4

Patch Set 11 : -iOS #

Patch Set 12 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2456 lines, -5 lines) Patch
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
M components/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M components/components_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/login.gypi View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M components/login/BUILD.gn View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M components/resources/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M components/resources/components_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A components/resources/webui_generator_resources.grdp View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
A components/webui_generator.gypi View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
A components/webui_generator/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +36 lines, -0 lines 0 comments Download
A components/webui_generator/DEPS View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
A components/webui_generator/OWNERS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A components/webui_generator/data_source_util.h View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -0 lines 0 comments Download
A components/webui_generator/data_source_util.cc View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -0 lines 0 comments Download
A components/webui_generator/export.h View 1 2 3 4 5 6 7 8 1 chunk +34 lines, -0 lines 0 comments Download
A components/webui_generator/generator/build_helper.py View 1 2 3 4 5 6 7 8 1 chunk +69 lines, -0 lines 0 comments Download
A components/webui_generator/generator/declaration.py View 1 2 3 4 5 6 7 8 1 chunk +312 lines, -0 lines 0 comments Download
A components/webui_generator/generator/export_h.py View 1 2 3 4 5 6 7 8 1 chunk +66 lines, -0 lines 0 comments Download
A components/webui_generator/generator/gen_sources.py View 1 2 3 4 5 6 7 8 1 chunk +27 lines, -0 lines 0 comments Download
A components/webui_generator/generator/html_view.py View 1 2 3 4 5 6 7 8 1 chunk +111 lines, -0 lines 0 comments Download
A components/webui_generator/generator/util.py View 1 2 3 4 5 6 7 8 1 chunk +30 lines, -0 lines 0 comments Download
A components/webui_generator/generator/view_model.py View 1 2 3 4 5 6 7 8 1 chunk +329 lines, -0 lines 0 comments Download
A components/webui_generator/generator/web_ui_view.py View 1 2 3 4 5 6 7 8 1 chunk +205 lines, -0 lines 0 comments Download
A components/webui_generator/generator/wug.gni View 1 2 3 4 5 6 7 8 1 chunk +112 lines, -0 lines 0 comments Download
A components/webui_generator/generator/wug.gypi View 1 2 3 4 5 6 7 8 1 chunk +118 lines, -0 lines 0 comments Download
A components/webui_generator/resources/context.html View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
A components/webui_generator/resources/context.js View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -0 lines 0 comments Download
A components/webui_generator/resources/webui-view.html View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download
A components/webui_generator/resources/webui-view.js View 1 2 3 4 5 6 7 8 1 chunk +189 lines, -0 lines 0 comments Download
A components/webui_generator/view.h View 1 2 3 4 5 6 7 8 1 chunk +116 lines, -0 lines 0 comments Download
A components/webui_generator/view.cc View 1 2 3 4 5 6 7 8 1 chunk +102 lines, -0 lines 0 comments Download
A components/webui_generator/view_model.h View 1 2 3 4 5 6 7 8 1 chunk +108 lines, -0 lines 0 comments Download
A components/webui_generator/view_model.cc View 1 2 3 4 5 6 7 8 1 chunk +106 lines, -0 lines 0 comments Download
A components/webui_generator/web_ui_view.h View 1 2 3 4 5 6 7 8 1 chunk +116 lines, -0 lines 0 comments Download
A components/webui_generator/web_ui_view.cc View 1 2 3 4 5 6 7 8 1 chunk +111 lines, -0 lines 0 comments Download
A components/webui_generator_strings.grdp View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (7 generated)
dzhioev (left Google)
Hello, please review. blundell@: components/ owner's review nkostylev@: components/wug review.
5 years, 10 months ago (2015-02-19 19:44:34 UTC) #2
blundell
This is a large amount of code to drop in, especially with such a minimal ...
5 years, 10 months ago (2015-02-20 07:09:00 UTC) #3
blundell
Also, webui_generator would be a more clear name for the component than wug.
5 years, 10 months ago (2015-02-20 07:09:38 UTC) #4
blundell
On 2015/02/20 07:09:00, blundell wrote: > This is a large amount of code to drop ...
5 years, 10 months ago (2015-02-20 07:11:51 UTC) #5
Nikita (slow)
On 2015/02/20 07:09:38, blundell wrote: > Also, webui_generator would be a more clear name for ...
5 years, 10 months ago (2015-02-24 13:21:09 UTC) #6
blundell
On 2015/02/24 13:21:09, Nikita wrote: > On 2015/02/20 07:09:38, blundell wrote: > > Also, webui_generator ...
5 years, 10 months ago (2015-02-24 13:31:27 UTC) #7
Nikita (slow)
mostly nits Please update CL description and include link to the document even though it ...
5 years, 10 months ago (2015-02-24 15:22:44 UTC) #8
Nikita (slow)
FYI I didn't look over Python files - please find another reviewer. I'll go over ...
5 years, 10 months ago (2015-02-24 15:23:49 UTC) #9
dzhioev (left Google)
Hello Colin, sorry for a poor description, I didn't expect that you are going to ...
5 years, 10 months ago (2015-02-25 15:40:16 UTC) #10
blundell
Well, it's up to Nikita to judge on the scope of the CL :). I ...
5 years, 10 months ago (2015-02-25 15:48:01 UTC) #11
Nikita (slow)
https://codereview.chromium.org/928163002/diff/100001/components/wug/generator/declaration.py File components/wug/generator/declaration.py (right): https://codereview.chromium.org/928163002/diff/100001/components/wug/generator/declaration.py#newcode19 components/wug/generator/declaration.py:19: DECLARATION_SCHEMA = (dict, { As discussed, add optional comment ...
5 years, 10 months ago (2015-02-25 18:21:59 UTC) #12
dzhioev (left Google)
https://codereview.chromium.org/928163002/diff/80001/components/wug/resources/context.html File components/wug/resources/context.html (right): https://codereview.chromium.org/928163002/diff/80001/components/wug/resources/context.html#newcode7 components/wug/resources/context.html:7: <script src="context.js"></script> On 2015/02/24 15:22:41, Nikita wrote: > nit: ...
5 years, 10 months ago (2015-02-26 14:01:40 UTC) #13
Nikita (slow)
https://codereview.chromium.org/928163002/diff/80001/components/wug/resources/webui-view.js File components/wug/resources/webui-view.js (right): https://codereview.chromium.org/928163002/diff/80001/components/wug/resources/webui-view.js#newcode33 components/wug/resources/webui-view.js:33: * Internal storage of |this.context|. Short name has been ...
5 years, 10 months ago (2015-02-26 14:18:21 UTC) #14
Nikita (slow)
lgtm https://codereview.chromium.org/928163002/diff/120001/components/wug/view.h File components/wug/view.h (right): https://codereview.chromium.org/928163002/diff/120001/components/wug/view.h#newcode22 components/wug/view.h:22: * Base block of the UI. Every View ...
5 years, 10 months ago (2015-02-26 14:28:58 UTC) #15
Denis Kuznetsov (DE-MUC)
https://codereview.chromium.org/928163002/diff/120001/components/wug/view.h File components/wug/view.h (right): https://codereview.chromium.org/928163002/diff/120001/components/wug/view.h#newcode31 components/wug/view.h:31: virtual void Init(); It is not obvious that OnReady ...
5 years, 10 months ago (2015-02-26 14:35:23 UTC) #17
dzhioev (left Google)
https://codereview.chromium.org/928163002/diff/80001/components/wug/resources/webui-view.js File components/wug/resources/webui-view.js (right): https://codereview.chromium.org/928163002/diff/80001/components/wug/resources/webui-view.js#newcode33 components/wug/resources/webui-view.js:33: * Internal storage of |this.context|. Short name has been ...
5 years, 9 months ago (2015-03-02 11:02:34 UTC) #18
dzhioev (left Google)
On 2015/02/25 15:48:01, blundell wrote: > Well, it's up to Nikita to judge on the ...
5 years, 9 months ago (2015-03-02 11:23:35 UTC) #19
blundell
On 2015/03/02 11:23:35, dzhioev wrote: > On 2015/02/25 15:48:01, blundell wrote: > > Well, it's ...
5 years, 9 months ago (2015-03-02 12:27:37 UTC) #20
dzhioev (left Google)
On 2015/03/02 12:27:37, blundell wrote: > On 2015/03/02 11:23:35, dzhioev wrote: > > On 2015/02/25 ...
5 years, 9 months ago (2015-03-02 12:44:49 UTC) #21
blundell
On 2015/03/02 12:44:49, dzhioev wrote: > On 2015/03/02 12:27:37, blundell wrote: > > On 2015/03/02 ...
5 years, 9 months ago (2015-03-02 14:26:12 UTC) #22
dzhioev (left Google)
On 2015/03/02 14:26:12, blundell wrote: > On 2015/03/02 12:44:49, dzhioev wrote: > > On 2015/03/02 ...
5 years, 9 months ago (2015-03-02 17:19:50 UTC) #23
blundell
//components LGTM https://codereview.chromium.org/928163002/diff/180001/components/BUILD.gn File components/BUILD.gn (right): https://codereview.chromium.org/928163002/diff/180001/components/BUILD.gn#newcode113 components/BUILD.gn:113: "//components/webui_generator", This component shouldn't be built on ...
5 years, 9 months ago (2015-03-03 08:36:26 UTC) #24
blundell
https://codereview.chromium.org/928163002/diff/180001/components/webui_generator_strings.grdp File components/webui_generator_strings.grdp (right): https://codereview.chromium.org/928163002/diff/180001/components/webui_generator_strings.grdp#newcode9 components/webui_generator_strings.grdp:9: </grit-part> Hmm, why this empty file?
5 years, 9 months ago (2015-03-03 08:37:06 UTC) #25
blundell
5 years, 9 months ago (2015-03-03 08:37:10 UTC) #26
dzhioev (left Google)
https://codereview.chromium.org/928163002/diff/180001/components/BUILD.gn File components/BUILD.gn (right): https://codereview.chromium.org/928163002/diff/180001/components/BUILD.gn#newcode113 components/BUILD.gn:113: "//components/webui_generator", On 2015/03/03 08:36:25, blundell wrote: > This component ...
5 years, 9 months ago (2015-03-03 09:23:50 UTC) #27
blundell
Still LGTM
5 years, 9 months ago (2015-03-03 09:34:01 UTC) #28
Denis Kuznetsov (DE-MUC)
lgtm
5 years, 9 months ago (2015-03-03 11:07:23 UTC) #29
Denis Kuznetsov (DE-MUC)
lgtm
5 years, 9 months ago (2015-03-03 11:07:26 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/928163002/200001
5 years, 9 months ago (2015-03-03 11:23:14 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/1548)
5 years, 9 months ago (2015-03-03 11:28:25 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/928163002/220001
5 years, 9 months ago (2015-03-03 13:31:27 UTC) #38
dzhioev (left Google)
On 2015/03/03 13:31:27, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
5 years, 9 months ago (2015-03-03 13:44:06 UTC) #39
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 9 months ago (2015-03-03 16:31:56 UTC) #40
commit-bot: I haz the power
5 years, 9 months ago (2015-03-03 16:32:48 UTC) #41
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/c1c2a503cdd7a68e7c25d36213a15c97e62a9ba7
Cr-Commit-Position: refs/heads/master@{#318884}

Powered by Google App Engine
This is Rietveld 408576698