Introduce kPerIsolateDataIndex and tidy JS_Define.h
authorTom Sepez <tsepez@chromium.org>
Mon, 28 Sep 2015 16:44:56 +0000 (09:44 -0700)
committerTom Sepez <tsepez@chromium.org>
Mon, 28 Sep 2015 16:44:56 +0000 (09:44 -0700)
commitcfff2f65aaec70247d020188bc68a0dc4fb34c3e
tree2f51d26107008e7b604261974242697effcfce0e
parent6c5afa68ed4e21f9d0bfd1ecc01e824d946c5485
Introduce kPerIsolateDataIndex and tidy JS_Define.h

Follow-up from https://codereview.chromium.org/1366053003/

- use kPerIsolateDataIndex rather than magic constant 1.
- make a helper function for common code in JS_Define.h
- remove dead prototypes missed in earlier CL.
- fxjs_v8 can't include generic fpdfsdk includes (layering).

R=jochen@chromium.org

Review URL: https://codereview.chromium.org/1367813003 .
fpdfsdk/include/javascript/JS_Define.h
fpdfsdk/include/jsapi/fxjs_v8.h
fpdfsdk/src/jsapi/fxjs_v8.cpp