SO3Engine
|
SO3EmbeddedWebNavigatorDisplayHandler.cpp
Go to the documentation of this file.
35 WebNavigatorDisplayHandler::WebNavigatorDisplayHandler(CefRefPtr<WebNavigatorClient>& parentWebNavigatorClientInstance, const ScolWindowHandle& scolMainWindow) : WebNavigatorHandler(parentWebNavigatorClientInstance, scolMainWindow)
39 WebNavigatorDisplayHandler::WebNavigatorDisplayHandler() : WebNavigatorHandler(CefRefPtr<WebNavigatorClient>(), 0)
48 void WebNavigatorDisplayHandler::OnAddressChange(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, const CefString& url)
53 std::unique_lock< std::shared_mutex > lock(WebNavigatorManager::GetSingletonPtr()->webMessageQueueCriticalSection);
54 WebNavigatorManager::GetSingletonPtr()->mainThreadWebMessageQueue.post(std::bind(&WebNavigatorManager::InvokeAddressChange, WebNavigatorManager::GetSingletonPtr(), parentWebNavigator->GetUniqueId(), frame->GetName(), url));
58 void WebNavigatorDisplayHandler::OnTitleChange(CefRefPtr<CefBrowser> browser, const CefString& title)
63 std::unique_lock< std::shared_mutex > lock(WebNavigatorManager::GetSingletonPtr()->webMessageQueueCriticalSection);
64 WebNavigatorManager::GetSingletonPtr()->mainThreadWebMessageQueue.post(std::bind(&WebNavigatorManager::InvokeTitleChange, WebNavigatorManager::GetSingletonPtr(), parentWebNavigator->GetUniqueId(), title));
73 std::unique_lock< std::shared_mutex > lock(WebNavigatorManager::GetSingletonPtr()->webMessageQueueCriticalSection);
74 WebNavigatorManager::GetSingletonPtr()->mainThreadWebMessageQueue.post(std::bind(&WebNavigatorManager::InvokeTooltip, WebNavigatorManager::GetSingletonPtr(), parentWebNavigator->GetUniqueId(), std::string(text)));
81 void WebNavigatorDisplayHandler::OnStatusMessage(CefRefPtr<CefBrowser> browser, const CefString& value)
86 std::unique_lock< std::shared_mutex > lock(WebNavigatorManager::GetSingletonPtr()->webMessageQueueCriticalSection);
87 WebNavigatorManager::GetSingletonPtr()->mainThreadWebMessageQueue.post(std::bind(&WebNavigatorManager::InvokeStatusMessage, WebNavigatorManager::GetSingletonPtr(), parentWebNavigator->GetUniqueId(), std::string(value)));
91 bool WebNavigatorDisplayHandler::OnConsoleMessage(CefRefPtr<CefBrowser> browser, cef_log_severity_t level, const CefString& message, const CefString& source, int line)
96 std::unique_lock< std::shared_mutex > lock(WebNavigatorManager::GetSingletonPtr()->webMessageQueueCriticalSection);
97 WebNavigatorManager::GetSingletonPtr()->mainThreadWebMessageQueue.post(std::bind(&WebNavigatorManager::InvokeConsoleMessage, WebNavigatorManager::GetSingletonPtr(), parentWebNavigator->GetUniqueId(), std::string(message), std::string(source), line));
Definition SO3DataScol.h:38
Generated by 1.9.8