24#ifndef _SCOL_EMBEDDED_WEB_NAVIGATOR_THREAD_
25#define _SCOL_EMBEDDED_WEB_NAVIGATOR_THREAD_
29#if SO3_WEB_NAVIGATOR_BUILD == 1
30#include "include/cef_cookie.h"
31#include "include/cef_scheme.h"
35 namespace EmbeddedWebNavigator
41 virtual void Visit(
const CefString&
string)
43 content.append(
string);
62 CefRefPtr<CefWaitableEvent> event_;
79 CefRefPtr<CefWaitableEvent> event_;
96 CefRefPtr<CefWaitableEvent> event_;
114 static void LoadURL(
unsigned long webNavigatorId,
const std::string url,
const std::string frameName =
"");
122 static void LoadFile(
unsigned long webNavigatorId,
const std::string file,
const std::string frameName =
"");
130 static void LoadHTML(
unsigned long webNavigatorId,
const std::string html,
const std::string frameName =
"");
136 static void GetURL(
unsigned long webNavigatorId, std::string* frameUrl, HANDLE synchro,
const std::string frameName =
"");
142 static void Undo(
unsigned long webNavigatorId,
const std::string frameName =
"");
148 static void Redo(
unsigned long webNavigatorId,
const std::string frameName =
"");
154 static void Cut(
unsigned long webNavigatorId,
const std::string frameName =
"");
160 static void Copy(
unsigned long webNavigatorId,
const std::string frameName =
"");
166 static void Paste(
unsigned long webNavigatorId,
const std::string frameName =
"");
172 static void Delete(
unsigned long webNavigatorId,
const std::string frameName =
"");
178 static void SelectAll(
unsigned long webNavigatorId,
const std::string frameName =
"");
184 static void Print(
unsigned long webNavigatorId,
const std::string frameName =
"");
190 static void ViewSource(
unsigned long webNavigatorId,
const std::string frameName =
"");
196 static void GetSource(
unsigned long webNavigatorId, std::string* frameSource, HANDLE synchro,
const std::string frameName =
"");
202 static void GetText(
unsigned long webNavigatorId, std::string* frameText, HANDLE synchro,
const std::string frameName =
"");
211 static void ExecuteJavaScript(
unsigned long webNavigatorId,
const std::string jsCode,
const std::string scriptUrl,
int startLine,
const std::string frameName =
"");
216 static void CanGoBack(
unsigned long webNavigatorId,
bool* canGoBack, HANDLE synchro);
221 static void GoBack(
unsigned long webNavigatorId);
226 static void CanGoForward(
unsigned long webNavigatorId,
bool* canGoForward, HANDLE synchro);
231 static void GoForward(
unsigned long webNavigatorId);
236 static void Reload(
unsigned long webNavigatorId);
246 static void StopLoad(
unsigned long webNavigatorId);
256 static void Find(
unsigned long webNavigatorId,
int identifier,
const CefString searchText,
bool forward,
bool matchCase,
bool findNext);
261 static void StopFinding(
unsigned long webNavigatorId,
bool clearSelection);
266 static void GetZoomLevel(
unsigned long webNavigatorId,
double* zoomFactor, HANDLE synchro);
271 static void SetZoomLevel(
unsigned long webNavigatorId,
double zoomLevel);
290 static void SetCookie(std::string url, CefCookie cookie,
bool* result, HANDLE synchro);
294 static void DeleteCookies(std::string url, std::string cookie_name,
bool* result, HANDLE synchro);
SCOL_EXPORT void SCOL_PTR_TYPE event
CompletionCallback(CefRefPtr< CefWaitableEvent > event)
void OnComplete() override
DeleteCookiesCallback(CefRefPtr< CefWaitableEvent > event)
void OnComplete(int num_deleted) override
SetCookieCallback(CefRefPtr< CefWaitableEvent > event)
void OnComplete(bool success) override
virtual void Visit(const CefString &string)
static void Delete(unsigned long webNavigatorId, const std::string frameName="")
static void ClearHistory(unsigned long webNavigatorId)
static void Find(unsigned long webNavigatorId, int identifier, const CefString searchText, bool forward, bool matchCase, bool findNext)
static void ReloadIgnoreCache(unsigned long webNavigatorId)
static void GetSource(unsigned long webNavigatorId, std::string *frameSource, HANDLE synchro, const std::string frameName="")
static void CanGoBack(unsigned long webNavigatorId, bool *canGoBack, HANDLE synchro)
static void Cut(unsigned long webNavigatorId, const std::string frameName="")
static void CloseDevTools(unsigned long webNavigatorId)
static void GoForward(unsigned long webNavigatorId)
static void LoadHTML(unsigned long webNavigatorId, const std::string html, const std::string frameName="")
static void LoadFile(unsigned long webNavigatorId, const std::string file, const std::string frameName="")
static void StopLoad(unsigned long webNavigatorId)
static void LoadURL(unsigned long webNavigatorId, const std::string url, const std::string frameName="")
static void DeleteCookies(std::string url, std::string cookie_name, bool *result, HANDLE synchro)
static void Reload(unsigned long webNavigatorId)
static void Print(unsigned long webNavigatorId, const std::string frameName="")
static void SelectAll(unsigned long webNavigatorId, const std::string frameName="")
static void GoBack(unsigned long webNavigatorId)
static void StopFinding(unsigned long webNavigatorId, bool clearSelection)
static void CanGoForward(unsigned long webNavigatorId, bool *canGoForward, HANDLE synchro)
static void Copy(unsigned long webNavigatorId, const std::string frameName="")
static void GetZoomLevel(unsigned long webNavigatorId, double *zoomFactor, HANDLE synchro)
static void GetURL(unsigned long webNavigatorId, std::string *frameUrl, HANDLE synchro, const std::string frameName="")
static void Undo(unsigned long webNavigatorId, const std::string frameName="")
static void GetText(unsigned long webNavigatorId, std::string *frameText, HANDLE synchro, const std::string frameName="")
static void ShowDevTools(unsigned long webNavigatorId)
static void SetCookie(std::string url, CefCookie cookie, bool *result, HANDLE synchro)
static void Redo(unsigned long webNavigatorId, const std::string frameName="")
static void ViewSource(unsigned long webNavigatorId, const std::string frameName="")
static void Paste(unsigned long webNavigatorId, const std::string frameName="")
static void ExecuteJavaScript(unsigned long webNavigatorId, const std::string jsCode, const std::string scriptUrl, int startLine, const std::string frameName="")
static void SetZoomLevel(unsigned long webNavigatorId, double zoomLevel)