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

Issue 261693003: Use CodeMirror for WebTry snippets. (Closed)

Created:
6 years, 7 months ago by f(malita)
Modified:
6 years, 7 months ago
Reviewers:
jcgregorio, mtklein
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Use CodeMirror for WebTry snippets. CodeMirror (http://codemirror.net) is a rich code editor. This CL adds the needed library and wires it with some minimal features, to update the editor appearance to something like this: http://codemirror.net/demo/theme.html?ambiance We can later add Skia-customized features (custom keyword highlighting, code completion, etc.). (only tested locally) R=jcgregorio@google.com, mtklein@google.com Committed: https://code.google.com/p/skia/source/detail?r=14499

Patch Set 1 #

Patch Set 2 : Rebased. #

Total comments: 8

Patch Set 3 : Updated per review. #

Patch Set 4 : design.md notes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8372 lines, -407 lines) Patch
M experimental/webtry/DESIGN.md View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
D experimental/webtry/css/webtry.css View 1 chunk +0 lines, -97 lines 0 comments Download
D experimental/webtry/js/webtry.js View 1 1 chunk +0 lines, -282 lines 0 comments Download
A experimental/webtry/res/css/cm/ambiance.css View 1 chunk +74 lines, -0 lines 0 comments Download
A experimental/webtry/res/css/cm/codemirror.css View 1 chunk +272 lines, -0 lines 0 comments Download
A + experimental/webtry/res/css/webtry.css View 0 chunks +-1 lines, --1 lines 0 comments Download
A experimental/webtry/res/js/cm/clike.js View 1 chunk +436 lines, -0 lines 0 comments Download
A experimental/webtry/res/js/cm/codemirror.js View 1 chunk +7526 lines, -0 lines 0 comments Download
A + experimental/webtry/res/js/webtry.js View 1 2 2 chunks +18 lines, -1 line 0 comments Download
M experimental/webtry/templates/content.html View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M experimental/webtry/templates/iframe.html View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M experimental/webtry/templates/index.html View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M experimental/webtry/templates/recent.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M experimental/webtry/templates/template.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M experimental/webtry/templates/workspace.html View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M experimental/webtry/webtry.go View 1 2 3 chunks +14 lines, -14 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
f(malita)
6 years, 7 months ago (2014-04-30 22:05:02 UTC) #1
jcgregorio
This is an awesome enhancement, thanks! https://codereview.chromium.org/261693003/diff/20001/experimental/webtry/res/js/webtry.js File experimental/webtry/res/js/webtry.js (right): https://codereview.chromium.org/261693003/diff/20001/experimental/webtry/res/js/webtry.js#newcode131 experimental/webtry/res/js/webtry.js:131: var editor = ...
6 years, 7 months ago (2014-05-01 13:27:30 UTC) #2
jcgregorio
https://codereview.chromium.org/261693003/diff/20001/experimental/webtry/templates/index.html File experimental/webtry/templates/index.html (right): https://codereview.chromium.org/261693003/diff/20001/experimental/webtry/templates/index.html#newcode9 experimental/webtry/templates/index.html:9: <script src="/res/js/cm/codemirror.js"></script> Also the js and css imports for ...
6 years, 7 months ago (2014-05-01 14:11:24 UTC) #3
f(malita)
https://codereview.chromium.org/261693003/diff/20001/experimental/webtry/res/js/webtry.js File experimental/webtry/res/js/webtry.js (right): https://codereview.chromium.org/261693003/diff/20001/experimental/webtry/res/js/webtry.js#newcode131 experimental/webtry/res/js/webtry.js:131: var editor = CodeMirror.fromTextArea(code, { On 2014/05/01 13:27:30, jcgregorio ...
6 years, 7 months ago (2014-05-01 14:24:39 UTC) #4
jcgregorio
On 2014/05/01 14:24:39, Florin Malita wrote: > https://codereview.chromium.org/261693003/diff/20001/experimental/webtry/res/js/webtry.js > File experimental/webtry/res/js/webtry.js (right): > > https://codereview.chromium.org/261693003/diff/20001/experimental/webtry/res/js/webtry.js#newcode131 ...
6 years, 7 months ago (2014-05-01 14:31:19 UTC) #5
f(malita)
On 2014/05/01 14:31:19, jcgregorio wrote: > LGTM, just add a new section to DESIGN.md describing ...
6 years, 7 months ago (2014-05-01 15:06:41 UTC) #6
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 7 months ago (2014-05-01 15:06:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/fmalita@chromium.org/261693003/60001
6 years, 7 months ago (2014-05-01 15:07:08 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-01 15:11:42 UTC) #9
commit-bot: I haz the power
Retried try job too often on Build-Ubuntu13.10-GCC4.8-x86_64-Release-Trybot for step(s) BuildBench, BuildEverything, BuildGm, BuildSkiaLib, BuildTests, BuildTools ...
6 years, 7 months ago (2014-05-01 15:11:43 UTC) #10
f(malita)
6 years, 7 months ago (2014-05-01 15:15:06 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 manually as r14499 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698