void Popup::SetTailUpImage(std::string image)
{
- mTailUpImage = image;
+ mTailUpImage = std::move(image);
mLayoutDirty = true;
LayoutTail();
}
void Popup::SetTailDownImage(std::string image)
{
- mTailDownImage = image;
+ mTailDownImage = std::move(image);
mLayoutDirty = true;
LayoutTail();
}
void Popup::SetTailLeftImage(std::string image)
{
- mTailLeftImage = image;
+ mTailLeftImage = std::move(image);
mLayoutDirty = true;
LayoutTail();
}
void Popup::SetTailRightImage(std::string image)
{
- mTailRightImage = image;
+ mTailRightImage = std::move(image);
mLayoutDirty = true;
LayoutTail();
}
std::string valueString;
if(value.Get(valueString))
{
- Toolkit::ImageView actor = Toolkit::ImageView::New(valueString);
+ Toolkit::ImageView actor = Toolkit::ImageView::New(std::move(valueString));
popupImpl.SetPopupBackgroundImage(actor);
}
break;
std::string valueString;
if(value.Get(valueString))
{
- popupImpl.SetTailUpImage(valueString);
+ popupImpl.SetTailUpImage(std::move(valueString));
}
break;
}
std::string valueString;
if(value.Get(valueString))
{
- popupImpl.SetTailDownImage(valueString);
+ popupImpl.SetTailDownImage(std::move(valueString));
}
break;
}
std::string valueString;
if(value.Get(valueString))
{
- popupImpl.SetTailLeftImage(valueString);
+ popupImpl.SetTailLeftImage(std::move(valueString));
}
break;
}
std::string valueString;
if(value.Get(valueString))
{
- popupImpl.SetTailRightImage(valueString);
+ popupImpl.SetTailRightImage(std::move(valueString));
}
break;
}
{
Property::Map map;
Scripting::CreatePropertyMap(popupImpl.GetTitle(), map);
- value = map;
+ value = std::move(map);
break;
}
case Toolkit::Popup::Property::CONTENT:
{
Property::Map map;
Scripting::CreatePropertyMap(popupImpl.GetContent(), map);
- value = map;
+ value = std::move(map);
break;
}
case Toolkit::Popup::Property::FOOTER:
{
Property::Map map;
Scripting::CreatePropertyMap(popupImpl.GetFooter(), map);
- value = map;
+ value = std::move(map);
break;
}
case Toolkit::Popup::Property::DISPLAY_STATE:
{
// Note: Cannot retrieve property map from animation.
Property::Map map;
- value = map;
+ value = std::move(map);
break;
}
case Toolkit::Popup::Property::EXIT_ANIMATION:
{
// Note: Cannot retrieve property map from animation.
Property::Map map;
- value = map;
+ value = std::move(map);
break;
}
case Toolkit::Popup::Property::AUTO_HIDE_DELAY:
if(popupTitle)
{
std::string titleText = popupTitle.GetProperty<std::string>(Toolkit::TextLabel::Property::TEXT);
- title = titleText;
+ title = std::move(titleText);
}
else
{
if(popupContent)
{
std::string contentText = popupContent.GetProperty<std::string>(Toolkit::TextLabel::Property::TEXT);
- title = contentText;
+ title = std::move(contentText);
}
}
return title;
{
if(mWebEngine)
{
- mWebEngine.EvaluateJavaScript(script, resultHandler);
+ mWebEngine.EvaluateJavaScript(script, std::move(resultHandler));
}
}
{
if(mWebEngine)
{
- mWebEngine.AddJavaScriptMessageHandler(exposedObjectName, handler);
+ mWebEngine.AddJavaScriptMessageHandler(exposedObjectName, std::move(handler));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterJavaScriptAlertCallback(callback);
+ mWebEngine.RegisterJavaScriptAlertCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterJavaScriptConfirmCallback(callback);
+ mWebEngine.RegisterJavaScriptConfirmCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterJavaScriptPromptCallback(callback);
+ mWebEngine.RegisterJavaScriptPromptCallback(std::move(callback));
}
}
bool result = false;
if(mWebEngine)
{
- result = mWebEngine.CreateHitTestAsynchronously(x, y, mode, callback);
+ result = mWebEngine.CreateHitTestAsynchronously(x, y, mode, std::move(callback));
}
return result;
}
bool WebView::GetScreenshotAsynchronously(Dali::Rect<int32_t> viewArea, float scaleFactor, Dali::Toolkit::WebView::WebViewScreenshotCapturedCallback callback)
{
- mScreenshotCapturedCallback = callback;
+ mScreenshotCapturedCallback = std::move(callback);
return mWebEngine ? mWebEngine.GetScreenshotAsynchronously(viewArea, scaleFactor, std::bind(&WebView::OnScreenshotCaptured, this, std::placeholders::_1)) : false;
}
bool WebView::CheckVideoPlayingAsynchronously(Dali::WebEnginePlugin::VideoPlayingCallback callback)
{
- return mWebEngine ? mWebEngine.CheckVideoPlayingAsynchronously(callback) : false;
+ return mWebEngine ? mWebEngine.CheckVideoPlayingAsynchronously(std::move(callback)) : false;
}
void WebView::RegisterGeolocationPermissionCallback(Dali::WebEnginePlugin::GeolocationPermissionCallback callback)
{
if(mWebEngine)
{
- mWebEngine.RegisterGeolocationPermissionCallback(callback);
+ mWebEngine.RegisterGeolocationPermissionCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterPageLoadStartedCallback(callback);
+ mWebEngine.RegisterPageLoadStartedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterPageLoadInProgressCallback(callback);
+ mWebEngine.RegisterPageLoadInProgressCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterPageLoadFinishedCallback(callback);
+ mWebEngine.RegisterPageLoadFinishedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterPageLoadErrorCallback(callback);
+ mWebEngine.RegisterPageLoadErrorCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterScrollEdgeReachedCallback(callback);
+ mWebEngine.RegisterScrollEdgeReachedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterUrlChangedCallback(callback);
+ mWebEngine.RegisterUrlChangedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterFormRepostDecidedCallback(callback);
+ mWebEngine.RegisterFormRepostDecidedCallback(std::move(callback));
}
}
void WebView::RegisterFrameRenderedCallback(Dali::WebEnginePlugin::WebEngineFrameRenderedCallback callback)
{
- mFrameRenderedCallback = callback;
+ mFrameRenderedCallback = std::move(callback);
}
void WebView::RegisterConsoleMessageReceivedCallback(Dali::WebEnginePlugin::WebEngineConsoleMessageReceivedCallback callback)
{
if(mWebEngine)
{
- mWebEngine.RegisterConsoleMessageReceivedCallback(callback);
+ mWebEngine.RegisterConsoleMessageReceivedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterResponsePolicyDecidedCallback(callback);
+ mWebEngine.RegisterResponsePolicyDecidedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterNavigationPolicyDecidedCallback(callback);
+ mWebEngine.RegisterNavigationPolicyDecidedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterNewWindowCreatedCallback(callback);
+ mWebEngine.RegisterNewWindowCreatedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterCertificateConfirmedCallback(callback);
+ mWebEngine.RegisterCertificateConfirmedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterSslCertificateChangedCallback(callback);
+ mWebEngine.RegisterSslCertificateChangedCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterHttpAuthHandlerCallback(callback);
+ mWebEngine.RegisterHttpAuthHandlerCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterContextMenuShownCallback(callback);
+ mWebEngine.RegisterContextMenuShownCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.RegisterContextMenuHiddenCallback(callback);
+ mWebEngine.RegisterContextMenuHiddenCallback(std::move(callback));
}
}
{
if(mWebEngine)
{
- mWebEngine.GetPlainTextAsynchronously(callback);
+ mWebEngine.GetPlainTextAsynchronously(std::move(callback));
}
}