Skip to content

Commit

Permalink
[webview_flutter_lwe] Update lwe(1.2.6)
Browse files Browse the repository at this point in the history
Signed-off-by: Byun MuHong <[email protected]>
  • Loading branch information
bwikbs committed Aug 15, 2024
1 parent d9a0ddc commit be4e33e
Show file tree
Hide file tree
Showing 11 changed files with 1,213 additions and 1,211 deletions.
1,821 changes: 914 additions & 907 deletions packages/webview_flutter_lwe/tizen/inc/lwe/LWEWebView.h

Large diffs are not rendered by default.

96 changes: 48 additions & 48 deletions packages/webview_flutter_lwe/tizen/inc/lwe/LWEWorker.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,74 +28,74 @@
#endif
#endif

#include <functional>
#include <string>
#include <functional>

namespace LWE {

class LWE_EXPORT WorkerClient {
public:
/*
* Register worker data directory path.
*
* Be sure to set the same data path as the shared or service worker server.
* If you do not register data directory, the data directory path is
* set to '${HOME}/starfish-worker-data' or /tmp/starfish-worker-data.
*
* This method must be invoked after LWE::Initialize() is invoked.
*/
static void RegisterDataDirectoryPath(const std::string &dataDirectoryPath);
public:
/*
* Register worker data directory path.
*
* Be sure to set the same data path as the shared or service worker server.
* If you do not register data directory, the data directory path is
* set to '${HOME}/starfish-worker-data' or /tmp/starfish-worker-data.
*
* This method must be invoked after LWE::Initialize() is invoked.
*/
static void RegisterDataDirectoryPath(const std::string &dataDirectoryPath);

/*
* Register service worker server process executor callback function.
* The callback function should return the success or failure of the
* processor execution.
*
* This method must be invoked after LWE::Initialize() is invoked.
*/
static void RegisterServiceWorkerProcessExecutor(
const std::function<bool()> &fn);
/*
* Register service worker server process executor callback function.
* The callback function should return the success or failure of the
* processor execution.
*
* This method must be invoked after LWE::Initialize() is invoked.
*/
static void RegisterServiceWorkerProcessExecutor(
const std::function<bool()> &fn);
};

enum class LWE_EXPORT WorkerProcessState {
None,
Terminated,
None,
Terminated,
};

class LWE_EXPORT ServiceWorker {
public:
/*
* Initialize service worker server.
*
* Be sure to set the same data path as the worker client.
* If you set data directory path to an empty path, it is set to
* '${HOME}/starfish-worker-data' or /tmp/starfish-worker-data.
*/
static void Initialize(const std::string &dataDirectoryPath);
public:
/*
* Initialize service worker server.
*
* Be sure to set the same data path as the worker client.
* If you set data directory path to an empty path, it is set to
* '${HOME}/starfish-worker-data' or /tmp/starfish-worker-data.
*/
static void Initialize(const std::string &dataDirectoryPath);

static void RegisterOnStatusChangedHandler(
const std::function<void(WorkerProcessState)> &cb);
static void RegisterOnStatusChangedHandler(
const std::function<void(WorkerProcessState)> &cb);

static void Finalize();
static void Finalize();
};

class LWE_EXPORT SharedWorker {
public:
/*
* Initialize shared worker server.
*
* Be sure to set the same data path as the worker client.
* If you set data directory path to an empty path, it is set to
* '${HOME}/starfish-worker-data' or /tmp/starfish-worker-data.
*/
static void Initialize(const std::string &dataDirectoryPath);
public:
/*
* Initialize shared worker server.
*
* Be sure to set the same data path as the worker client.
* If you set data directory path to an empty path, it is set to
* '${HOME}/starfish-worker-data' or /tmp/starfish-worker-data.
*/
static void Initialize(const std::string &dataDirectoryPath);

static void RegisterOnStatusChangedHandler(
const std::function<void(WorkerProcessState)> &cb);
static void RegisterOnStatusChangedHandler(
const std::function<void(WorkerProcessState)> &cb);

static void Finalize();
static void Finalize();
};

} // namespace LWE
} // namespace LWE

#endif
Loading

0 comments on commit be4e33e

Please sign in to comment.