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

Issue 11361189: Initial skeleton for System Indicator API (Closed)

Created:
8 years, 1 month ago by dewittj
Modified:
5 years, 5 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, Dmitry Titov
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Initial skeleton for System Indicator API Setting up the IDL and the appropriate boilerplate. Integrates with the existing extension action framework. The new API is currently restricted to dev channel. BUG=142450 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170090

Patch Set 1 : Up similarity requirement #

Total comments: 18

Patch Set 2 : Change including review style fixes #

Patch Set 3 : IDL Capitalization Nit fixed #

Total comments: 6

Patch Set 4 : Fix test failure and style nit #

Total comments: 2

Patch Set 5 : Removed binary png to allow try servers to pass #

Total comments: 6

Patch Set 6 : Add menu handling stubs, address formatting issues #

Total comments: 23

Patch Set 7 : Changes to reflect browserAction API, use chrome.contextMenus for menu. #

Patch Set 8 : Same as before but exempted systemIndicator from permission message, TODO. #

Total comments: 6

Patch Set 9 : Rebase; Make system_indicator manifest entry grant systemIndicator permission. #

Total comments: 10

Patch Set 10 : Add manifest parsing and integrate with extension action api handlers. #

Total comments: 27

Patch Set 11 : Clean up extension action arguments, style, smaller tests. #

Total comments: 14

Patch Set 12 : Final style fixes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -69 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/extension_actions_api.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/extension_actions_api.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +75 lines, -53 lines 2 comments Download
A chrome/browser/extensions/api/system_indicator/system_indicator_api.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +39 lines, -0 lines 0 comments Download
A + chrome/browser/extensions/api/system_indicator/system_indicator_apitest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/browser_event_router.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/event_names.h View 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/event_names.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_action.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_action_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_action_manager.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_manifest_features.json View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/system_indicator.idl View 1 2 3 4 5 6 7 8 9 10 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 9 5 chunks +9 lines, -1 line 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +34 lines, -3 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_message.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -2 lines 0 comments Download
A + chrome/renderer/resources/extensions/system_indicator_custom_bindings.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/renderer/resources/renderer_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/system_indicator/basics/manifest.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/system_indicator/basics/test.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (1 generated)
dewittj
Would you guys give this a once-over? There's no real meat to it yet, that ...
8 years, 1 month ago (2012-11-10 01:36:04 UTC) #1
jianli
Don't forget to run try job. https://codereview.chromium.org/11361189/diff/10002/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc File chrome/browser/extensions/api/system_indicator/system_indicator_api.cc (right): https://codereview.chromium.org/11361189/diff/10002/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc#newcode8 chrome/browser/extensions/api/system_indicator/system_indicator_api.cc:8: nit: extra empty ...
8 years, 1 month ago (2012-11-12 23:00:55 UTC) #2
dcheng
Drive by. https://codereview.chromium.org/11361189/diff/12003/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc File chrome/browser/extensions/api/system_indicator/system_indicator_api.cc (right): https://codereview.chromium.org/11361189/diff/12003/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc#newcode9 chrome/browser/extensions/api/system_indicator/system_indicator_api.cc:9: class ExtensionService; This is probably unneeded. https://codereview.chromium.org/11361189/diff/12003/chrome/test/data/extensions/api_test/system_indicator/test.js ...
8 years, 1 month ago (2012-11-13 00:52:19 UTC) #3
dewittj
Trying to get API skeleton into experimental section. Includes just the IDL and boilerplate plus ...
8 years, 1 month ago (2012-11-13 06:58:53 UTC) #4
Pete Williamson
http://codereview.chromium.org/11361189/diff/5005/chrome/common/extensions/api/experimental_system_indicator.idl File chrome/common/extensions/api/experimental_system_indicator.idl (right): http://codereview.chromium.org/11361189/diff/5005/chrome/common/extensions/api/experimental_system_indicator.idl#newcode25 chrome/common/extensions/api/experimental_system_indicator.idl:25: }; I don't see any faults with the code ...
8 years, 1 month ago (2012-11-13 18:01:40 UTC) #5
Ben Goodger (Google)
gyp lgtm, but you can tbr that kind of thing to me.
8 years, 1 month ago (2012-11-13 18:03:26 UTC) #6
dewittj
Addressed all reveiwers' notes. http://codereview.chromium.org/11361189/diff/5005/chrome/common/extensions/api/experimental_system_indicator.idl File chrome/common/extensions/api/experimental_system_indicator.idl (right): http://codereview.chromium.org/11361189/diff/5005/chrome/common/extensions/api/experimental_system_indicator.idl#newcode25 chrome/common/extensions/api/experimental_system_indicator.idl:25: }; On 2012/11/13 18:01:41, Pete ...
8 years, 1 month ago (2012-11-14 00:25:07 UTC) #7
jianli
lgtm https://codereview.chromium.org/11361189/diff/26/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc File chrome/browser/extensions/api/system_indicator/system_indicator_api.cc (right): https://codereview.chromium.org/11361189/diff/26/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc#newcode27 chrome/browser/extensions/api/system_indicator/system_indicator_api.cc:27: /* Validation is tricky since instanceOf can't be ...
8 years, 1 month ago (2012-11-14 19:27:41 UTC) #8
dewittj
Just need an OWNERS review for the extensions directory.
8 years, 1 month ago (2012-11-14 19:51:09 UTC) #9
not at google - send to devlin
https://codereview.chromium.org/11361189/diff/26/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc File chrome/browser/extensions/api/system_indicator/system_indicator_api.cc (right): https://codereview.chromium.org/11361189/diff/26/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc#newcode40 chrome/browser/extensions/api/system_indicator/system_indicator_api.cc:40: nit: remove blank line https://codereview.chromium.org/11361189/diff/26/chrome/common/extensions/api/experimental_system_indicator.idl File chrome/common/extensions/api/experimental_system_indicator.idl (right): https://codereview.chromium.org/11361189/diff/26/chrome/common/extensions/api/experimental_system_indicator.idl#newcode7 ...
8 years, 1 month ago (2012-11-14 19:53:20 UTC) #10
not at google - send to devlin
P.S. why "system indicator" rather than "system tray"?
8 years, 1 month ago (2012-11-14 19:55:22 UTC) #11
dewittj
On 2012/11/14 19:55:22, kalman wrote: > P.S. why "system indicator" rather than "system tray"? Just ...
8 years, 1 month ago (2012-11-14 23:29:37 UTC) #12
dewittj
PTAL I revamped the API based on all the suggestions from kalman's review and from ...
8 years, 1 month ago (2012-11-16 00:56:28 UTC) #13
not at google - send to devlin
Sorry to keep bouncing you around like this. https://codereview.chromium.org/11361189/diff/26/chrome/common/extensions/api/experimental_system_indicator.idl File chrome/common/extensions/api/experimental_system_indicator.idl (right): https://codereview.chromium.org/11361189/diff/26/chrome/common/extensions/api/experimental_system_indicator.idl#newcode47 chrome/common/extensions/api/experimental_system_indicator.idl:47: // ...
8 years, 1 month ago (2012-11-16 17:42:04 UTC) #14
dewittj
reply to kalman's comments http://codereview.chromium.org/11361189/diff/22002/chrome/browser/extensions/api/system_indicator/system_indicator_api.h File chrome/browser/extensions/api/system_indicator/system_indicator_api.h (right): http://codereview.chromium.org/11361189/diff/22002/chrome/browser/extensions/api/system_indicator/system_indicator_api.h#newcode11 chrome/browser/extensions/api/system_indicator/system_indicator_api.h:11: On 2012/11/16 17:42:04, kalman wrote: ...
8 years, 1 month ago (2012-11-16 19:13:57 UTC) #15
not at google - send to devlin
https://codereview.chromium.org/11361189/diff/22002/chrome/browser/extensions/api/system_indicator/system_indicator_api.h File chrome/browser/extensions/api/system_indicator/system_indicator_api.h (right): https://codereview.chromium.org/11361189/diff/22002/chrome/browser/extensions/api/system_indicator/system_indicator_api.h#newcode11 chrome/browser/extensions/api/system_indicator/system_indicator_api.h:11: On 2012/11/16 19:13:57, dewittj wrote: > On 2012/11/16 17:42:04, ...
8 years, 1 month ago (2012-11-16 19:21:09 UTC) #16
dewittj
On 2012/11/16 19:21:09, kalman wrote: > https://codereview.chromium.org/11361189/diff/22002/chrome/browser/extensions/api/system_indicator/system_indicator_api.h > File chrome/browser/extensions/api/system_indicator/system_indicator_api.h > (right): > > https://codereview.chromium.org/11361189/diff/22002/chrome/browser/extensions/api/system_indicator/system_indicator_api.h#newcode11 ...
8 years, 1 month ago (2012-11-20 16:48:00 UTC) #17
not at google - send to devlin
> > So in light of all this I'm a little unsure of the correct ...
8 years, 1 month ago (2012-11-20 16:56:09 UTC) #18
dewittj
On 2012/11/20 16:56:09, kalman wrote: > > > > So in light of all this ...
8 years, 1 month ago (2012-11-20 18:37:04 UTC) #19
not at google - send to devlin
On 2012/11/20 18:37:04, dewittj wrote: > On 2012/11/20 16:56:09, kalman wrote: > > > > ...
8 years, 1 month ago (2012-11-20 18:49:54 UTC) #20
dewittj
I've written a patch that adds the systemIndicator permission when a system_indicator manifest section is ...
8 years, 1 month ago (2012-11-20 23:16:02 UTC) #21
not at google - send to devlin
Thanks. I think we should just wire this up now. It's not that much more ...
8 years, 1 month ago (2012-11-20 23:58:08 UTC) #22
not at google - send to devlin
By "wire this up" I mean to a system_indicator_info property on Extension and GetSystemIndicator on ...
8 years, 1 month ago (2012-11-21 00:00:07 UTC) #23
dewittj
Main changes revolve around integrating with extension action. https://codereview.chromium.org/11361189/diff/24007/chrome/browser/extensions/api/system_indicator/system_indicator_api.h File chrome/browser/extensions/api/system_indicator/system_indicator_api.h (right): https://codereview.chromium.org/11361189/diff/24007/chrome/browser/extensions/api/system_indicator/system_indicator_api.h#newcode12 chrome/browser/extensions/api/system_indicator/system_indicator_api.h:12: class ...
8 years, 1 month ago (2012-11-21 22:09:41 UTC) #24
not at google - send to devlin
https://codereview.chromium.org/11361189/diff/24007/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): https://codereview.chromium.org/11361189/diff/24007/chrome/common/extensions/extension.cc#newcode2461 chrome/common/extensions/extension.cc:2461: api_permissions.insert(APIPermission::kSystemIndicator); On 2012/11/21 22:09:41, dewittj wrote: > On 2012/11/20 ...
8 years, 1 month ago (2012-11-21 23:39:23 UTC) #25
not at google - send to devlin
https://codereview.chromium.org/11361189/diff/20064/chrome/renderer/resources/extensions/system_indicator_custom_bindings.js File chrome/renderer/resources/extensions/system_indicator_custom_bindings.js (right): https://codereview.chromium.org/11361189/diff/20064/chrome/renderer/resources/extensions/system_indicator_custom_bindings.js#newcode10 chrome/renderer/resources/extensions/system_indicator_custom_bindings.js:10: chromeHidden.registerCustomHook('systemIndicator', function(bindingsAPI) { On 2012/11/21 23:39:23, kalman wrote: > ...
8 years, 1 month ago (2012-11-21 23:43:35 UTC) #26
dewittj
Thanks for the feedback. PTAL https://codereview.chromium.org/11361189/diff/20064/chrome/browser/extensions/api/extension_action/extension_actions_api.cc File chrome/browser/extensions/api/extension_action/extension_actions_api.cc (right): https://codereview.chromium.org/11361189/diff/20064/chrome/browser/extensions/api/extension_action/extension_actions_api.cc#newcode303 chrome/browser/extensions/api/extension_action/extension_actions_api.cc:303: // part of the ...
8 years ago (2012-11-26 18:32:58 UTC) #27
not at google - send to devlin
lgtm, and you might also want to update the patch description https://codereview.chromium.org/11361189/diff/19012/chrome/browser/extensions/api/extension_action/extension_actions_api.cc File chrome/browser/extensions/api/extension_action/extension_actions_api.cc (right): ...
8 years ago (2012-11-26 19:44:54 UTC) #28
dewittj
Fixed testing issues and the style problems. https://codereview.chromium.org/11361189/diff/19012/chrome/browser/extensions/api/extension_action/extension_actions_api.cc File chrome/browser/extensions/api/extension_action/extension_actions_api.cc (right): https://codereview.chromium.org/11361189/diff/19012/chrome/browser/extensions/api/extension_action/extension_actions_api.cc#newcode289 chrome/browser/extensions/api/extension_action/extension_actions_api.cc:289: base::StringPiece functionName(name()); ...
8 years ago (2012-11-27 01:53:55 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/11361189/30010
8 years ago (2012-11-27 21:55:20 UTC) #30
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-11-27 22:45:22 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/11361189/30010
8 years ago (2012-11-28 01:08:04 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/11361189/30010
8 years ago (2012-11-28 15:07:55 UTC) #33
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-11-28 15:16:16 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/11361189/30010
8 years ago (2012-11-28 23:19:34 UTC) #35
commit-bot: I haz the power
Change committed as 170090
8 years ago (2012-11-28 23:21:18 UTC) #36
Nico
https://chromiumcodereview.appspot.com/11361189/diff/30010/chrome/browser/extensions/api/extension_action/extension_actions_api.cc File chrome/browser/extensions/api/extension_action/extension_actions_api.cc (right): https://chromiumcodereview.appspot.com/11361189/diff/30010/chrome/browser/extensions/api/extension_action/extension_actions_api.cc#newcode291 chrome/browser/extensions/api/extension_action/extension_actions_api.cc:291: } else if (StartsWithASCII(name(), "systemIndicator.", false)) { Isn't javascript ...
5 years, 5 months ago (2015-07-06 17:39:21 UTC) #38
dewittj
https://chromiumcodereview.appspot.com/11361189/diff/30010/chrome/browser/extensions/api/extension_action/extension_actions_api.cc File chrome/browser/extensions/api/extension_action/extension_actions_api.cc (right): https://chromiumcodereview.appspot.com/11361189/diff/30010/chrome/browser/extensions/api/extension_action/extension_actions_api.cc#newcode291 chrome/browser/extensions/api/extension_action/extension_actions_api.cc:291: } else if (StartsWithASCII(name(), "systemIndicator.", false)) { On 2015/07/06 ...
5 years, 5 months ago (2015-07-06 17:44:52 UTC) #39
dewittj
5 years, 5 months ago (2015-07-06 18:13:26 UTC) #40
Message was sent while issue was closed.
sorry for spam, please don't review this

Powered by Google App Engine
This is Rietveld 408576698