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

Issue 10689150: Add registerPort / lookupPort to generated interfaces with documentation (Closed)

Created:
8 years, 5 months ago by vsm
Modified:
8 years, 5 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add registerPort / lookupPort to generated interfaces with documentation Note, the implementations are already there in Dartium and Dart2JS. This will make the APIs show up in the Editor and dartdoc. Committed: https://code.google.com/p/dart/source/detail?r=9537

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M lib/dom/templates/html/interface/interface_Window.darttemplate View 1 chunk +13 lines, -0 lines 2 comments Download
M lib/html/dartium/html_dartium.dart View 1 chunk +13 lines, -0 lines 0 comments Download
M lib/html/frog/html_frog.dart View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
vsm
8 years, 5 months ago (2012-07-10 23:47:59 UTC) #1
Siggi Cherem (dart-lang)
lgtm https://chromiumcodereview.appspot.com/10689150/diff/1/lib/dom/templates/html/interface/interface_Window.darttemplate File lib/dom/templates/html/interface/interface_Window.darttemplate (right): https://chromiumcodereview.appspot.com/10689150/diff/1/lib/dom/templates/html/interface/interface_Window.darttemplate#newcode15 lib/dom/templates/html/interface/interface_Window.darttemplate:15: void registerPort(String name, SendPortSync port); should this be ...
8 years, 5 months ago (2012-07-10 23:50:41 UTC) #2
vsm
8 years, 5 months ago (2012-07-10 23:53:24 UTC) #3
thanks!

https://chromiumcodereview.appspot.com/10689150/diff/1/lib/dom/templates/html...
File lib/dom/templates/html/interface/interface_Window.darttemplate (right):

https://chromiumcodereview.appspot.com/10689150/diff/1/lib/dom/templates/html...
lib/dom/templates/html/interface/interface_Window.darttemplate:15: void
registerPort(String name, SendPortSync port);
We do want to allow SendPort (i.e., the async one) at some point.  Not sure
whether to just have one register function (with a var or to be determined
common base type param) or to break it in two.

On 2012/07/10 23:50:41, sigmund wrote:
> should this be registerSyncPort? (do we expect to later have a
registerAsyncPort
> as well?)

Powered by Google App Engine
This is Rietveld 408576698