void PlatformScrollbar::updateViewOnMouseHover() { EA::Raster::Surface* const pSurface = containingWindow(); EA::WebKit::View* pView = static_cast<EA::WebKit::View*>(pSurface->mpUserData); const EA::WebKit::ViewParameters& vPm = pView->GetParameters(); if(vPm.mbRedrawScrollbarOnCursorHover) { EA::WebKit::ViewNotification* pVN = EA::WebKit::GetViewNotification(); if(pVN != NULL) { GraphicsContext context(pSurface); IntRect dmgRect; switch ((int)m_hoveredPart) { case BackButtonPart: dmgRect = backButtonRect(); break; case ForwardButtonPart: dmgRect = forwardButtonRect(); break; case ThumbPart: dmgRect = thumbRect(); break; } paint(&context, dmgRect); EA::WebKit::ViewUpdateInfo vui = { pView, x(), y(), width(), height() }; pVN->ViewUpdate(vui); } } }
CD3D9WebView * CD3D9WebKit::CreateView(int width, int height, LPDIRECT3DDEVICE9 device) { EA::WebKit::View * view = webkit->CreateView(); EA::WebKit::ViewParameters params = view->GetParameters(); params.mWidth = width; params.mHeight = height; view->InitView(params); view->SetSize(width, height); view->CreateJavascriptBindings("IVMP"); CD3D9WebView * webView = new CD3D9WebView(width, height, view); views.push_back(webView); return webView; }