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

Issue 120043008: Add a simple one shot and repeating timer API for Mojo.js. (Closed)

Created:
7 years ago by Aaron Boodman
Modified:
7 years ago
Reviewers:
abarth-chromium
CC:
chromium-reviews, darin (slow to review), viettrungluu+watch_chromium.org, ben+mojo_chromium.org
Visibility:
Public.

Description

Add a simple one shot and repeating timer API for Mojo.js. Various further rework of bindings stuff to facilitate. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242284

Patch Set 1 #

Total comments: 1

Patch Set 2 : cleanup #

Total comments: 9

Patch Set 3 : Addressed comments (patch tweaking by abarth) #

Patch Set 4 : Fix win build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -46 lines) Patch
M gin/function_template.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M gin/function_template.h.pump View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M gin/gin.gyp View 2 chunks +3 lines, -0 lines 0 comments Download
M gin/modules/console.h View 1 chunk +1 line, -1 line 0 comments Download
M gin/modules/console.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M gin/modules/module_registry.h View 1 chunk +2 lines, -3 lines 0 comments Download
M gin/modules/module_registry.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M gin/modules/module_runner_delegate.h View 2 chunks +3 lines, -9 lines 0 comments Download
M gin/modules/module_runner_delegate.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A gin/modules/timer.h View 1 1 chunk +63 lines, -0 lines 0 comments Download
A gin/modules/timer.cc View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
A gin/modules/timer_unittest.cc View 1 1 chunk +124 lines, -0 lines 0 comments Download
M gin/runner.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M gin/shell/gin_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M gin/test/file_runner.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gin/test/gtest.h View 1 chunk +1 line, -1 line 0 comments Download
M gin/test/gtest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/apps/js/bindings/core.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/apps/js/bindings/core.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/apps/js/bindings/gl/module.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/apps/js/bindings/gl/module.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/apps/js/bindings/support.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/apps/js/bindings/support.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/apps/js/bindings/threading.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/apps/js/bindings/threading.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/apps/js/mojo_runner_delegate.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M mojo/apps/js/test/run_js_tests.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
Aaron Boodman
https://codereview.chromium.org/120043008/diff/1/gin/runner.cc File gin/runner.cc (right): https://codereview.chromium.org/120043008/diff/1/gin/runner.cc#newcode40 gin/runner.cc:40: CHECK(false) << try_catch.GetStackTrace(); This seems like a better default ...
7 years ago (2013-12-21 01:44:29 UTC) #1
abarth-chromium
LGTM https://codereview.chromium.org/120043008/diff/20001/gin/modules/timer.cc File gin/modules/timer.cc (right): https://codereview.chromium.org/120043008/diff/20001/gin/modules/timer.cc#newcode16 gin/modules/timer.cc:16: return gin::StringToSymbol(isolate, "::mojo::js::Timer"); ::gin::Timer probably. We don't want ...
7 years ago (2013-12-21 03:37:06 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aa@chromium.org/120043008/90001
7 years ago (2013-12-21 05:39:35 UTC) #3
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=239504
7 years ago (2013-12-21 06:26:36 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aa@chromium.org/120043008/90001
7 years ago (2013-12-21 06:31:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aa@chromium.org/120043008/190002
7 years ago (2013-12-21 06:34:51 UTC) #6
commit-bot: I haz the power
Change committed as 242284
7 years ago (2013-12-21 17:54:47 UTC) #7
Aaron Boodman
I didn't hit the cq button. did you?
7 years ago (2013-12-21 17:59:11 UTC) #8
abarth-chromium
On 2013/12/21 17:59:11, Aaron Boodman wrote: > I didn't hit the cq button. did you? ...
7 years ago (2013-12-21 18:08:54 UTC) #9
Aaron Boodman
https://codereview.chromium.org/120043008/diff/20001/gin/modules/timer.cc File gin/modules/timer.cc (right): https://codereview.chromium.org/120043008/diff/20001/gin/modules/timer.cc#newcode17 gin/modules/timer.cc:17: } On 2013/12/21 03:37:06, abarth wrote: > I talked ...
7 years ago (2013-12-21 21:34:41 UTC) #10
Aaron Boodman
https://codereview.chromium.org/120043008/diff/20001/gin/modules/timer.cc File gin/modules/timer.cc (right): https://codereview.chromium.org/120043008/diff/20001/gin/modules/timer.cc#newcode17 gin/modules/timer.cc:17: } On 2013/12/21 21:34:41, Aaron Boodman wrote: > On ...
7 years ago (2013-12-21 22:02:17 UTC) #11
abarth-chromium
On 2013/12/21 22:02:17, Aaron Boodman wrote: > https://codereview.chromium.org/120043008/diff/20001/gin/modules/timer.cc > File gin/modules/timer.cc (right): > > https://codereview.chromium.org/120043008/diff/20001/gin/modules/timer.cc#newcode17 ...
7 years ago (2013-12-21 22:22:50 UTC) #12
Aaron Boodman
On Sat, Dec 21, 2013 at 2:22 PM, <abarth@chromium.org> wrote: > On 2013/12/21 22:02:17, Aaron ...
7 years ago (2013-12-21 22:32:58 UTC) #13
abarth-chromium
On 2013/12/21 22:32:58, Aaron Boodman wrote: > Hm. Does not seem like a huge win, ...
7 years ago (2013-12-21 22:36:30 UTC) #14
Aaron Boodman
7 years ago (2013-12-21 23:39:11 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/120043008/diff/20001/gin/modules/timer.cc
File gin/modules/timer.cc (right):

https://codereview.chromium.org/120043008/diff/20001/gin/modules/timer.cc#new...
gin/modules/timer.cc:56: Runner::Scope scope(runner_.get());
I made a test for this to prove I was right. You were right.

https://codereview.chromium.org/100143006/

Powered by Google App Engine
This is Rietveld 408576698