Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
lfg 7e1977b2ea - Add support for references in different paths in apis.
- Move ImageDetails from chrome to extensions.

BUG=352290

Review URL: https://codereview.chromium.org/487533005

Cr-Original-Commit-Position: refs/heads/master@{#292567}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8a1bee36d9f609ab9a98ecf89bf1dfc0bb4762dc
2014-08-29 03:58:01 +00:00
yoz 61ae794a47 Reland 596ff54335b2a1b393af10657bc4945114f3beed - Split API bundle generation steps
* Fixed in this version: dependencies for *_api_registration on *_api.

Split bundle generation steps so that API registration is generated in browser, not common.

We now have schema generation, schema bundle generation, and schema bundle registration generation; the last of these is generated in a separate build target and output to browser rather than common.

Fix a couple of dangling gyp issues also.

BUG=405226
TBR=scottmg@chromium.org,sky@chromium.org

Review URL: https://codereview.chromium.org/513633002

Cr-Original-Commit-Position: refs/heads/master@{#292090}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 774dcda2d369584b2e964fa4971dda71cf819677
2014-08-27 03:33:52 +00:00
Albert J. Wong 0c4f9846c2 Revert "Split bundle generation steps so that API registration is generated in browser, not common."
Causing build failure in Android due to failed include for extensions/common/api/runtime.h.

This reverts commit 3b70ef14be986a3252428cc6d9553bf2c69deb70.

BUG=none
TBR=yoz

Review URL: https://codereview.chromium.org/506253003

Cr-Original-Commit-Position: refs/heads/master@{#292059}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8f65982274893958898690b22e1c0c9ed4968857
2014-08-27 01:14:22 +00:00
yoz 06e1e423c2 Split bundle generation steps so that API registration is generated in browser, not common.
We now have schema generation, schema bundle generation, and schema bundle registration generation; the last of these is generated in a separate build target and output to browser rather than common.

Fix a couple of dangling gyp issues also.

BUG=405226
TBR=sky@chromium.org

Review URL: https://codereview.chromium.org/489153003

Cr-Original-Commit-Position: refs/heads/master@{#292057}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3b70ef14be986a3252428cc6d9553bf2c69deb70
2014-08-27 00:52:34 +00:00
kalman@chromium.org 10936bb33d Make the root_namespace argument to json_schema_compiler.gypi a string
pattern rather than a prefix.

BUG=370952
R=yoz@chromium.org
TBR=dmazzoni@chromium.org

Review URL: https://codereview.chromium.org/437883002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@287488 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-05 08:02:06 +00:00
brettw@chromium.org 8157e29e58 Remove duplicate extensions API compiler template.
I accidentally wrote another version of this without remembering that it already existed in extensions/generated_extensions_api.gni.

R=rockot@chromium.org

Review URL: https://codereview.chromium.org/344443011

git-svn-id: http://src.chromium.org/svn/trunk/src/build@279206 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-06-23 22:34:50 +00:00
brettw@chromium.org 1c7fca9198 Make chrome/common compile in GN
Adds extensions common API target and extensions templates.

Adds a number of new targets: widevine, flash, sync proto, metrics proto, device serial.

Minor enhancements to protobuf and mojo templates.

TBR=jamesr

Review URL: https://codereview.chromium.org/343233002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@278828 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-06-20 21:40:01 +00:00
rockot@chromium.org ff3f243596 Add an implementation path option to json_schema_compiler
This replaces the hard-coded chrome/browser/extensions/api path with
a command-line option (impl_dir).

BUG=349019

Review URL: https://codereview.chromium.org/183763032

git-svn-id: http://src.chromium.org/svn/trunk/src/build@254995 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-05 10:11:19 +00:00
xiyuan@chromium.org 480370f483 non_compiled_schema_files should trigger genapi_bundle.
Changes in non_compiled_schema_files should trigger genapi_bundle action
as well.

BUG=
R=kalman@chromium.org, miket@chromium.org

Review URL: https://codereview.chromium.org/57503002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232781 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-04 20:31:29 +00:00
Hokein.Wu@gmail.com d5e7d11dc0 Allow to disable API schema(JSON and IDL) to generate model code.
BUG=294203
TEST=compiled

Review URL: https://codereview.chromium.org/24449006

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230478 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-23 18:40:12 +00:00
MHX348@motorola.com 35e2679e15 generated_api.h should have its body generated into generated_api.cc
BUG=172050


Review URL: https://chromiumcodereview.appspot.com/12181005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@181848 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-02-12 04:45:41 +00:00
sashab@chromium.org 61ebe5c536 Initial commit of the Dart Chrome Extension APIs generators
Modified json_schema_compiler to allow a -l option to specify the language.
Also allowed for a -H option to specify a hooks file, which is currently only
supported for Dart.


Review URL: https://chromiumcodereview.appspot.com/12041098

git-svn-id: http://src.chromium.org/svn/trunk/src/build@180845 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-02-06 01:29:31 +00:00
kalman@chromium.org 9e7bf40759 Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it
was only run on IDL files. Clean up all the code which that simplifies.

TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org
BUG=141318

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176015

Review URL: https://codereview.chromium.org/11747025

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176236 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-11 02:10:11 +00:00
ricow@chromium.org df54c3a32a Revert revision 176015
This is a manual revert, drover did not like the deleted files

> Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it
> was only run on IDL files. Clean up all the code which that simplifies.
>
> TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org
> BUG=141318
>
> Review URL: https://chromiumcodereview.appspot.com/11747025

TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org
Review URL: https://codereview.chromium.org/11778097

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176054 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-10 12:19:33 +00:00
ricow@chromium.org 3a7822b8a4 Revert 176047
> Revert 176015
> > Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it
> > was only run on IDL files. Clean up all the code which that simplifies.
> > 
> > TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org
> > BUG=141318
> > 
> > Review URL: https://chromiumcodereview.appspot.com/11747025
> 
> This seems to be causing complation failures on release win builders:
> http://chromegw/i/chromium.chrome/builders/Google%20Chrome%20Win/builds/15702
> 
> TBR=kalman@chromium.org
> Review URL: https://codereview.chromium.org/11826048

Drover messed up this revert, reverting it

TBR=ricow@chromium.org
Review URL: https://codereview.chromium.org/11778096

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176051 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-10 11:14:37 +00:00
ricow@chromium.org c1d02285aa Revert 176015
> Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it
> was only run on IDL files. Clean up all the code which that simplifies.
> 
> TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org
> BUG=141318
> 
> Review URL: https://chromiumcodereview.appspot.com/11747025

This seems to be causing complation failures on release win builders:
http://chromegw/i/chromium.chrome/builders/Google%20Chrome%20Win/builds/15702

TBR=kalman@chromium.org
Review URL: https://codereview.chromium.org/11826048

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176047 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-10 10:36:38 +00:00
kalman@chromium.org cdff61818b Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it
was only run on IDL files. Clean up all the code which that simplifies.

TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org
BUG=141318

Review URL: https://chromiumcodereview.appspot.com/11747025

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176015 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-10 04:05:55 +00:00
asargent@chromium.org fc794d97d2 Remove dependence on .json files for IDL-specified extensions/apps APIs
This is an incremental step towards fully IDL-specified API bindings. This
patch adds code which generates JSON based on IDL for the purpose of exposing
bindings to javascript.

BUG=119137
TEST=Code should compile and existing tests should pass.


Review URL: http://codereview.chromium.org/9774001

git-svn-id: http://src.chromium.org/svn/trunk/src/build@127908 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-03-21 05:40:14 +00:00
miket@chromium.org 24c7372066 Reapply 127159 (http://codereview.chromium.org/9666059) plus important fixes.
Refactor extension_function_dispatcher to extract ExtensionFunctionRegistry.
This allows us to generate an additional code block that takes an ExtensionFunctionRegistry
and asks it to register generated API functions.

Then switch DnsResolve over to get registered this way.

Along the way, notice that DNSResolve is capitalized using an untenable style. Fix that.

Fixes since original 127159:

  - change name of build rule to gen_bundle_api
  - actually add per-file dependencies to .gyp (this was why clean builds
    failed)
  - change 'outputs' to match the emitted filename, fixing a needless
    rebuild problem.
  - split the top-level build action that was a part of
    json_schema_compile.gypi, and include it only in api.gyp, thus fixing
    the problem where json_schema_compiler_tests.gyp was asking it to create
    outputs in the tools/json_schema_compiler_test directory, again causing
    needless work during the build process.

BUG=none (essential plumbing work)
TEST=same as before.

Review URL: https://chromiumcodereview.appspot.com/9716003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@127555 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-03-19 22:24:35 +00:00