本文整理汇总了C++中EwkView::pageClient方法的典型用法代码示例。如果您正苦于以下问题:C++ EwkView::pageClient方法的具体用法?C++ EwkView::pageClient怎么用?C++ EwkView::pageClient使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EwkView
的用法示例。
在下文中一共展示了EwkView::pageClient方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: handleEvasObjectCalculate
void EwkView::handleEvasObjectCalculate(Evas_Object* evasObject)
{
Ewk_View_Smart_Data* smartData = toSmartData(evasObject);
ASSERT(smartData);
EwkView* view = toEwkView(smartData);
ASSERT(view);
smartData->changed.any = false;
Evas_Coord x, y, width, height;
evas_object_geometry_get(evasObject, &x, &y, &width, &height);
if (smartData->changed.position) {
smartData->changed.position = false;
smartData->view.x = x;
smartData->view.y = y;
evas_object_move(smartData->image, x, y);
}
if (smartData->changed.size) {
smartData->changed.size = false;
smartData->view.w = width;
smartData->view.h = height;
if (view->page()->drawingArea())
view->page()->drawingArea()->setSize(IntSize(width, height), IntSize());
view->setNeedsSurfaceResize();
view->pageClient()->updateViewportSize();
}
}
示例2: didCommitLoadForFrame
void PageLoadClientEfl::didCommitLoadForFrame(WKPageRef, WKFrameRef frame, WKTypeRef, const void* clientInfo)
{
if (!WKFrameIsMainFrame(frame))
return;
EwkView* view = toPageLoadClientEfl(clientInfo)->view();
view->pageClient()->didCommitLoad();
}