SO3Engine
|
SO3EmbeddedWebNavigatorClient.cpp
Go to the documentation of this file.
36 WebNavigatorClient::WebNavigatorClient(WebNavigator* parentWebNavigatorInstance, const ScolWindowHandle& scolMainWindow, bool offscreen) :
40 displayHandler = new WebNavigatorDisplayHandler(CefRefPtr<WebNavigatorClient>(const_cast <WebNavigatorClient*> (this)), scolMainWindowHandle);
41 keyboardHandler = new WebNavigatorKeyboardHandler(CefRefPtr<WebNavigatorClient>(const_cast <WebNavigatorClient*> (this)), scolMainWindowHandle);
42 loadHandler = new WebNavigatorLoadHandler(CefRefPtr<WebNavigatorClient>(const_cast <WebNavigatorClient*> (this)), scolMainWindowHandle);
43 renderHandler = new WebNavigatorRenderHandler(CefRefPtr<WebNavigatorClient>(const_cast <WebNavigatorClient*> (this)), scolMainWindowHandle, offscreen);
59 bool WebNavigatorClient::BlitOffscreenBitmap(unsigned char* dest, int destWidth, int destHeight, int destBytesPerPixel, int destBitsPerLine)
64 bool WebNavigatorClient::BlitOffscreenAlphaBitmap(unsigned char* destColor, unsigned char* destAlpha, int destWidth, int destHeight, int destColorBytesPerPixel, int destColorBitsPerLine)
112 bool WebNavigatorClient::OnBeforePopup(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, const CefString& target_url, const CefString& target_frame_name, CefLifeSpanHandler::WindowOpenDisposition target_disposition, bool user_gesture, const CefPopupFeatures& popupFeatures, CefWindowInfo& windowInfo, CefRefPtr<CefClient>& client, CefBrowserSettings& settings, bool* no_javascript_access)
114 std::unique_lock< std::shared_mutex > lock(WebNavigatorManager::GetSingletonPtr()->webMessageQueueCriticalSection);
115 WebNavigatorManager::GetSingletonPtr()->mainThreadWebMessageQueue.post(std::bind(&WebNavigatorManager::InvokeBeforePopup, WebNavigatorManager::GetSingletonPtr(), parentWebNavigator->GetUniqueId(), popupFeatures.x, popupFeatures.y, popupFeatures.width, popupFeatures.height, target_url));
159 bool WebNavigatorClient::OnProcessMessageReceived(CefRefPtr<CefBrowser> browser, CefProcessId source_process, CefRefPtr<CefProcessMessage> message)
189 std::unique_lock< std::shared_mutex > lock(WebNavigatorManager::GetSingletonPtr()->webMessageQueueCriticalSection);
190 WebNavigatorManager::GetSingletonPtr()->mainThreadWebMessageQueue.post(std::bind(&WebNavigatorManager::InvokeExternalCall, WebNavigatorManager::GetSingletonPtr(), parentWebNavigator->GetUniqueId(), functionCalled));
194 std::unique_lock< std::shared_mutex > lock(WebNavigatorManager::GetSingletonPtr()->webMessageQueueCriticalSection);
195 WebNavigatorManager::GetSingletonPtr()->mainThreadWebMessageQueue.post(std::bind(&WebNavigatorManager::InvokeExternalCallStr, WebNavigatorManager::GetSingletonPtr(), parentWebNavigator->GetUniqueId(), functionCalled));
202 void WebNavigatorClient::OnBeforeContextMenu(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, CefRefPtr<CefContextMenuParams> params, CefRefPtr<CefMenuModel> model)
208 bool WebNavigatorClient::OnContextMenuCommand(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, CefRefPtr<CefContextMenuParams> params, int command_id, CefContextMenuHandler::EventFlags event_flags)
Definition SO3ScriptFunction.h:33
Definition SO3DataScol.h:38
Generated by 1.9.8