chrome_gen 0.3.4

deprecated-chrome_gen.dart

WARNING: This library is being deprecated.

Future versions of this library can be found at chrome.dart


chrome_gen.dart

An library for accessing the Chrome APIs in a packaged app or extension.

Build Status

Installing

Add this to your package's pubspec.yaml file:

dependencies:
  chrome_gen: any

Using the library

import 'package:chrome_gen/chrome_app.dart' as chrome_gen;

void main() {
  chrome_gen.runtime.getPlatformInfo().then((Map m) {
    print(m.toString());
  });
}

Also, see the FAQ.

Documentation

Documentation is available at:

Re-generating the library

From the project directory, run:

dart tool/gen_apis.dart

This will:

  • read meta/apis.json and meta/overrides.json
  • parse the cooresponding idl/*.json and idl/*.idl files
  • generate lib/chrome_app.dart, lib/chrome_ext.dart, and lib/gen/*.dart.

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  chrome_gen: "^0.3.4"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:chrome_gen/build/build.dart';
import 'package:chrome_gen/chrome_app.dart';
import 'package:chrome_gen/chrome_ext.dart';
import 'package:chrome_gen/gen/alarms.dart';
import 'package:chrome_gen/gen/app.dart';
import 'package:chrome_gen/gen/audio.dart';
import 'package:chrome_gen/gen/bluetooth.dart';
import 'package:chrome_gen/gen/bookmarks.dart';
import 'package:chrome_gen/gen/browser_action.dart';
import 'package:chrome_gen/gen/browsing_data.dart';
import 'package:chrome_gen/gen/commands.dart';
import 'package:chrome_gen/gen/content_settings.dart';
import 'package:chrome_gen/gen/context_menus.dart';
import 'package:chrome_gen/gen/cookies.dart';
import 'package:chrome_gen/gen/debugger.dart';
import 'package:chrome_gen/gen/declarative_content.dart';
import 'package:chrome_gen/gen/declarative_web_request.dart';
import 'package:chrome_gen/gen/desktop_capture.dart';
import 'package:chrome_gen/gen/devtools.dart';
import 'package:chrome_gen/gen/downloads.dart';
import 'package:chrome_gen/gen/events.dart';
import 'package:chrome_gen/gen/extension.dart';
import 'package:chrome_gen/gen/file_browser_handler.dart';
import 'package:chrome_gen/gen/file_system.dart';
import 'package:chrome_gen/gen/font_settings.dart';
import 'package:chrome_gen/gen/history.dart';
import 'package:chrome_gen/gen/i18n.dart';
import 'package:chrome_gen/gen/identity.dart';
import 'package:chrome_gen/gen/idle.dart';
import 'package:chrome_gen/gen/infobars.dart';
import 'package:chrome_gen/gen/input.dart';
import 'package:chrome_gen/gen/location.dart';
import 'package:chrome_gen/gen/management.dart';
import 'package:chrome_gen/gen/media_galleries.dart';
import 'package:chrome_gen/gen/notifications.dart';
import 'package:chrome_gen/gen/omnibox.dart';
import 'package:chrome_gen/gen/page_action.dart';
import 'package:chrome_gen/gen/page_capture.dart';
import 'package:chrome_gen/gen/permissions.dart';
import 'package:chrome_gen/gen/power.dart';
import 'package:chrome_gen/gen/privacy.dart';
import 'package:chrome_gen/gen/processes.dart';
import 'package:chrome_gen/gen/proxy.dart';
import 'package:chrome_gen/gen/push_messaging.dart';
import 'package:chrome_gen/gen/runtime.dart';
import 'package:chrome_gen/gen/script_badge.dart';
import 'package:chrome_gen/gen/serial.dart';
import 'package:chrome_gen/gen/sessions.dart';
import 'package:chrome_gen/gen/socket.dart';
import 'package:chrome_gen/gen/storage.dart';
import 'package:chrome_gen/gen/sync_file_system.dart';
import 'package:chrome_gen/gen/system.dart';
import 'package:chrome_gen/gen/tab_capture.dart';
import 'package:chrome_gen/gen/tabs.dart';
import 'package:chrome_gen/gen/top_sites.dart';
import 'package:chrome_gen/gen/tts.dart';
import 'package:chrome_gen/gen/tts_engine.dart';
import 'package:chrome_gen/gen/types.dart';
import 'package:chrome_gen/gen/usb.dart';
import 'package:chrome_gen/gen/web_navigation.dart';
import 'package:chrome_gen/gen/web_request.dart';
import 'package:chrome_gen/gen/windows.dart';

About

An library for accessing the Chrome APIs in a packaged app or extension.

Author

Email devoncarew@gmail.com Devon Carew
Email financeCoding@gmail.com Adam Singer
Email kevin@thinkpixellab.com Kevin Moore

Homepage

github.com/dart-gde/chrome_gen.dart

Documentation

www.dartdocs.org/documentation/chrome_gen/0.3.4/

Source code (hyperlinked)

www.crossdart.info/p/chrome_gen/0.3.4/

Uploader

devoncarew@google.com
kevin@thinkpixellab.com
financeCoding@gmail.com

Share