mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-18 20:39:22 +02:00
* Namespaced Atom API
This commit is contained in:
parent
c1bd8440e4
commit
b760667787
packages/atom
3
packages/atom/namespaced/Api.Atom.pas
Normal file
3
packages/atom/namespaced/Api.Atom.pas
Normal file
@ -0,0 +1,3 @@
|
||||
{$DEFINE FPC_DOTTEDUNITS}
|
||||
unit Api.Atom;
|
||||
{$include ../src/libatom.pp}
|
3
packages/atom/namespaced/Fcl.App.Atom.pas
Normal file
3
packages/atom/namespaced/Fcl.App.Atom.pas
Normal file
@ -0,0 +1,3 @@
|
||||
{$DEFINE FPC_DOTTEDUNITS}
|
||||
unit Fcl.App.Atom;
|
||||
{$include ../src/atomapp.pp}
|
@ -10,15 +10,20 @@
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
**********************************************************************}
|
||||
|
||||
{$IFNDEF FPC_DOTTEDUNITS}
|
||||
unit atomapp;
|
||||
{$ENDIF}
|
||||
|
||||
{$mode objfpc}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
{$IFDEF FPC_DOTTEDUNITS}
|
||||
System.Classes, System.SysUtils, JSApi.JS, Api.Atom, Fcl.CustApp;
|
||||
{$ELSE}
|
||||
Classes, SysUtils, JS, libatom, custapp;
|
||||
{$ENDIF}
|
||||
|
||||
Type
|
||||
TAtomEnvironment = class (TJSObject)
|
@ -10,8 +10,9 @@
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
**********************************************************************}
|
||||
|
||||
{$IFNDEF FPC_DOTTEDUNITS}
|
||||
unit libatom;
|
||||
{$ENDIF}
|
||||
|
||||
{$mode objfpc}
|
||||
{$modeswitch externalclass}
|
||||
@ -19,7 +20,11 @@ unit libatom;
|
||||
interface
|
||||
|
||||
uses
|
||||
{$IFDEF FPC_DOTTEDUNITS}
|
||||
JSApi.JS, System.Types, BrowserApi.Web;
|
||||
{$ELSE}
|
||||
JS, types, web;
|
||||
{$ENDIF}
|
||||
|
||||
Type
|
||||
TAtomHandler = reference to procedure;
|
Loading…
Reference in New Issue
Block a user