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

Issue 1874133002: Improve documentation of extension messaging (Closed)

Created:
4 years, 8 months ago by robwu
Modified:
4 years, 8 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve documentation of extension messaging - Document all methods and events of Port. - Document the fact that messages have to be JSON-ifiable. - Emphasize that "return true" have to be used (in the API docs, and in the messaging tutorial, because this question keeps popping up every week on Stack Overflow, so apparently the previous note was not sufficiently obvious). - Document the lifetime characteristics of ports. BUG=87758, 126486, 328459, 592478 Committed: https://crrev.com/2ee8e354ade9b0ad6c030c94420e61d2ca3f743f Cr-Commit-Position: refs/heads/master@{#387157}

Patch Set 1 #

Patch Set 2 : Add comma #

Patch Set 3 : Fix refs, clarify API parameters #

Total comments: 16

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -25 lines) Patch
M chrome/common/extensions/api/tabs.json View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/templates/articles/messaging.html View 1 2 3 4 2 chunks +47 lines, -6 lines 0 comments Download
M extensions/common/api/runtime.json View 1 2 3 8 chunks +37 lines, -18 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
robwu
Unfortunately the preview server is dead (https://crbug.com/371402), but locally I verified that the docs is ...
4 years, 8 months ago (2016-04-10 11:51:27 UTC) #2
Devlin
Nice! Thanks for filling in some of the gaps. :) https://codereview.chromium.org/1874133002/diff/40001/chrome/common/extensions/api/tabs.json File chrome/common/extensions/api/tabs.json (right): https://codereview.chromium.org/1874133002/diff/40001/chrome/common/extensions/api/tabs.json#newcode253 ...
4 years, 8 months ago (2016-04-13 20:15:33 UTC) #3
robwu
https://codereview.chromium.org/1874133002/diff/40001/chrome/common/extensions/api/tabs.json File chrome/common/extensions/api/tabs.json (right): https://codereview.chromium.org/1874133002/diff/40001/chrome/common/extensions/api/tabs.json#newcode253 chrome/common/extensions/api/tabs.json:253: "description": "The message to send. This message should be ...
4 years, 8 months ago (2016-04-13 21:03:05 UTC) #4
Devlin
https://codereview.chromium.org/1874133002/diff/40001/chrome/common/extensions/docs/templates/articles/messaging.html File chrome/common/extensions/docs/templates/articles/messaging.html (right): https://codereview.chromium.org/1874133002/diff/40001/chrome/common/extensions/docs/templates/articles/messaging.html#newcode86 chrome/common/extensions/docs/templates/articles/messaging.html:86: <b>Note:</b> If none of the handlers call <code>sendResponse</code>, then ...
4 years, 8 months ago (2016-04-13 21:41:40 UTC) #5
robwu
https://codereview.chromium.org/1874133002/diff/40001/chrome/common/extensions/docs/templates/articles/messaging.html File chrome/common/extensions/docs/templates/articles/messaging.html (right): https://codereview.chromium.org/1874133002/diff/40001/chrome/common/extensions/docs/templates/articles/messaging.html#newcode86 chrome/common/extensions/docs/templates/articles/messaging.html:86: <b>Note:</b> If none of the handlers call <code>sendResponse</code>, then ...
4 years, 8 months ago (2016-04-13 22:44:35 UTC) #6
Devlin
lgtm, thanks for doing this!
4 years, 8 months ago (2016-04-13 22:47:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1874133002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1874133002/80001
4 years, 8 months ago (2016-04-13 22:55:44 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-13 23:52:52 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-04-13 23:54:35 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2ee8e354ade9b0ad6c030c94420e61d2ca3f743f
Cr-Commit-Position: refs/heads/master@{#387157}

Powered by Google App Engine
This is Rietveld 408576698