Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for chrome.* extension APIs #1802

Closed
DartBot opened this issue Feb 22, 2012 · 8 comments
Closed

Support for chrome.* extension APIs #1802

DartBot opened this issue Feb 22, 2012 · 8 comments
Labels
closed-as-intended Closed as the reported issue is expected behavior type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Feb 22, 2012

This issue was originally filed by imja...@gmail.com


With the release of Dartium, I'd love to be able to write a Chrome extension in Dart. And I currently can, as long as I don't want to take advantage of any of the Chrome-extension-specific APIs as listed on http://code.google.com/chrome/extensions/docs.html

For example, the JS chrome.browserAction.setBadgeText({text:"abc"}); would update the extension's Browser Action badge's text to "abc" -- there is no corresponding Dart code to do this.

This should be possible by wrapping the native JS, but a native Dart solution would probably be better.

@iposva-google
Copy link
Contributor

Added Area-Dartium, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Feb 26, 2012

This comment was originally written by jeffbailey@google.com


I think triage label on this is wrong. Chrome Extension APIs are available as JavaScript APIs and are targetable by minfrog. I'd guess that these should either be a separate module, or possible be part of dart:dom.

@DartBot
Copy link
Author

DartBot commented Apr 28, 2012

This comment was originally written by antonm@google.com


Removed Type-Defect label.
Added Type-Enhancement label.

@DartBot
Copy link
Author

DartBot commented May 14, 2012

This comment was originally written by alexander.orlov@loxal.net


Actually the issue should be renamed to "Support for chrome.* extension APIs" as Chromium already supports Dart within an extension context but Dart can't access the chrome.* API yet.

@DartBot
Copy link
Author

DartBot commented Jun 1, 2012

This comment was originally written by antonm@google.com


Added this to the Later milestone.

@sethladd
Copy link
Contributor

sethladd commented Jun 7, 2012

Changed the title to: "Support for chrome. extension APIs".*

@vsmenon
Copy link
Member

vsmenon commented Sep 13, 2013

For now, my understanding is that we will focus on improving the existing package, which should provide all chrome APIs via JS:

http://pub.dartlang.org/packages/chrome


cc @dgrove.
Added AsDesigned label.

@DartBot
Copy link
Author

DartBot commented Sep 16, 2013

This comment was originally written by benwells@chromium.org


I think it is more subtle than that. You can think of it as initially two parallel streams:
A. keep working on the chrome package manually using js interop
B. keep working on dart:_chrome (currently dart:chrome) autogenerated using JS

When B. is complete, cross the streams:
C. port chrome package to use dart:_chrome and expand it to cover more APIs.

I'll continue working on B.

For Dartium, the dart:_chrome wrapper would be built into Dartium itself.

@DartBot DartBot added Type-Enhancement closed-as-intended Closed as the reported issue is expected behavior labels Sep 16, 2013
@DartBot DartBot added this to the Later milestone Sep 16, 2013
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
copybara-service bot pushed a commit that referenced this issue Dec 2, 2022
…, webdev

Revisions updated by `dart tools/rev_sdk_deps.dart`.

collection (https://github.com/dart-lang/collection/compare/efd709f..caf6802):
  caf6802  2022-11-28  Nate Bosch  Tweak docs for split extensions (#256)

fixnum (https://github.com/dart-lang/fixnum/compare/bca3816..62916f2):
  62916f2  2022-11-24  Lasse R.H. Nielsen  Split into separate libraries instead of using parts. (#97)
  14d4827  2022-11-23  Lasse R.H. Nielsen  Add `tryParse` methods. (#96)

http (https://github.com/dart-lang/http/compare/047d6ed..976bd56):
  976bd56  2022-11-28  Kevin Moore  Use latest mono_repo (#832)

protobuf (https://github.com/dart-lang/protobuf/compare/c181573..4f3e328):
  4f3e328  2022-11-30  Devon Carew  Emit imports in sorted order (#778)
  3cc088e  2022-11-28  Kevin Moore  Latest mono_repo (#779)

sse (https://github.com/dart-lang/sse/compare/8d018dd..d396145):
  d396145  2022-11-29  Elliott Brooks (she/her)  Fix Fetch credentials (#69)

stack_trace (https://github.com/dart-lang/stack_trace/compare/dce0013..cf3562e):
  cf3562e  2022-12-01  Devon Carew  blast_repo fixes (#123)

test (https://github.com/dart-lang/test/compare/b25dac9..f3d80a6):
  f3d80a68  2022-11-29  Nate Bosch  Fix missing label and reason after isNotNull (#1797)
  5b1f0075  2022-11-29  Nate Bosch  Use double quotes for test names on windows (#1802)
  986045c4  2022-11-29  Nate Bosch  Temporarily pin to ubuntu 20.04 (#1800)

webdev (https://github.com/dart-lang/webdev/compare/637b406..91b8a19):
  91b8a19  2022-12-01  Elliott Brooks (she/her)  Fix global variable `isInternalBuild` in injected client (#1805)
  7d0810a  2022-11-30  Elliott Brooks (she/her)  Updates the `fixture` package `pubspecs` so it is clear what shouldn't be migrated to null-safety
(#1803)
  acd3f9f  2022-11-30  Elliott Brooks (she/her)  Can debug with the MV3 Dart Debug Extension (#1802)
  1258510  2022-11-29  Elliott Brooks (she/her)  Detect whether the Debug Extension was built for dev or release (#1800)
  b4a23c6  2022-11-29  Elliott Brooks (she/her)  Fix Fetch API implementation (#1801)
  67133df  2022-11-29  Elliott Brooks (she/her)  Pull out debug logging into one file (#1799)
  a395c68  2022-11-28  Elliott Brooks (she/her)  Handle detecting Dart app when tab changes (#1796)
  4fb4328  2022-11-28  Elliott Brooks (she/her)  Authenticate the user when they click on the Dart Debug Extension icon (#1795)

Change-Id: I7beeeb43de4ba514817836ffd4ff6a62b801f2dc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/273282
Commit-Queue: Devon Carew <devoncarew@google.com>
Auto-Submit: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-as-intended Closed as the reported issue is expected behavior type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

5 participants