| 44 | type Screen = frontend.Screen |
| 45 | |
| 46 | type Frontend struct { |
| 47 | |
| 48 | // Context |
| 49 | ctx context.Context |
| 50 | |
| 51 | frontendOptions *options.App |
| 52 | logger *logger.Logger |
| 53 | chromium *edge.Chromium |
| 54 | debug bool |
| 55 | devtoolsEnabled bool |
| 56 | |
| 57 | // Assets |
| 58 | assets *assetserver.AssetServer |
| 59 | startURL *url.URL |
| 60 | |
| 61 | // main window handle |
| 62 | mainWindow *Window |
| 63 | bindings *binding.Bindings |
| 64 | dispatcher frontend.Dispatcher |
| 65 | |
| 66 | hasStarted bool |
| 67 | |
| 68 | originValidator *originvalidator.OriginValidator |
| 69 | |
| 70 | // Windows build number |
| 71 | versionInfo *operatingsystem.WindowsVersionInfo |
| 72 | resizeDebouncer func(f func()) |
| 73 | } |
| 74 | |
| 75 | func NewFrontend(ctx context.Context, appoptions *options.App, myLogger *logger.Logger, appBindings *binding.Bindings, dispatcher frontend.Dispatcher) *Frontend { |
| 76 |
nothing calls this directly
no outgoing calls
no test coverage detected