vibration_stop_callback,
NULL);
- auto download_callback = [](const char* downloadUrl, void* data) {
+ auto download_callback = [](const char* downloadUrl, void* /*data*/) {
SendDownloadRequest(downloadUrl);
};
ewk_context_did_start_download_callback_set(ewk_context_,
}
void WebApplication::OnReceivedWrtMessage(
- WebView* view,
+ WebView* /*view*/,
Ewk_IPC_Wrt_Message_Data* msg) {
Eina_Stringshare* msg_id = ewk_ipc_wrt_message_data_id_get(msg);
Ewk_IPC_Wrt_Message_Data* ans = ewk_ipc_wrt_message_data_new();
ewk_ipc_wrt_message_data_type_set(ans, msg_type);
ewk_ipc_wrt_message_data_reference_id_set(ans, msg_id);
- if(ret)
+ if (ret)
ewk_ipc_wrt_message_data_value_set(ans, "success");
else
ewk_ipc_wrt_message_data_value_set(ans, "failed");
// TODO(sngn.lee): set CSP
}
-bool WebApplication::OnDidNavigation(WebView* view, const std::string& url) {
+bool WebApplication::OnDidNavigation(WebView* /*view*/,
+ const std::string& /*url*/) {
// TODO(sngn.lee): scheme handling
// except(file , http, https, app) pass to appcontrol and return false
return true;
popup->SetBody(popup_string::kPopupBodyWebNotification);
popup->SetCheckBox(popup_string::kPopupCheckRememberPreference);
popup->SetResultHandler(
- [db, result_handler, url](Popup* popup, void* user_data) {
+ [db, result_handler, url](Popup* popup, void* /*user_data*/) {
bool result = popup->GetButtonResult();
bool remember = popup->GetCheckBoxResult();
if (remember) {
popup->SetBody(popup_string::kPopupBodyGeoLocation);
popup->SetCheckBox(popup_string::kPopupCheckRememberPreference);
popup->SetResultHandler(
- [db, result_handler, url](Popup* popup, void* user_data) {
+ [db, result_handler, url](Popup* popup, void* /*user_data*/) {
bool result = popup->GetButtonResult();
bool remember = popup->GetCheckBoxResult();
if (remember) {
popup->SetBody(popup_string::kPopupBodyWebStorage);
popup->SetCheckBox(popup_string::kPopupCheckRememberPreference);
popup->SetResultHandler(
- [db, result_handler, url](Popup* popup, void* user_data) {
+ [db, result_handler, url](Popup* popup, void* /*user_data*/) {
bool result = popup->GetButtonResult();
bool remember = popup->GetCheckBoxResult();
if (remember) {
void WebApplication::OnAuthenticationRequest(
WebView*,
- const std::string& url,
- const std::string& message,
+ const std::string& /*url*/,
+ const std::string& /*message*/,
std::function<void(bool submit,
const std::string& id,
const std::string& password)
popup->SetTitle(popup_string::kPopupTitleAuthRequest);
popup->SetBody(popup_string::kPopupBodyAuthRequest);
popup->SetResultHandler(
- [result_handler](Popup* popup, void* user_data) {
+ [result_handler](Popup* popup, void* /*user_data*/) {
bool result = popup->GetButtonResult();
std::string id = popup->GetFirstEntryResult();
std::string passwd = popup->GetSecondEntryResult();
void WebApplication::OnCertificateAllowRequest(
WebView*,
- const std::string& url,
+ const std::string& /*url*/,
const std::string& pem,
std::function<void(bool allow)> result_handler) {
auto db = AppDB::GetInstance();
popup->SetBody(popup_string::kPopupBodyCert);
popup->SetCheckBox(popup_string::kPopupCheckRememberPreference);
popup->SetResultHandler(
- [db, result_handler, pem](Popup* popup, void* user_data) {
+ [db, result_handler, pem](Popup* popup, void* /*user_data*/) {
bool result = popup->GetButtonResult();
bool remember = popup->GetCheckBoxResult();
if (remember) {
#include <Elementary.h>
#include <string>
+#include <iostream>
#include "popup/popup.h"
#include "popup/popup_string.h"
-#include <iostream>
int main(int argc, char **argv) {
const char* kLocaleKorean = "ko_KR";
popup->SetCheckBox(check_label);
popup->SetButtonType(wrt::Popup::ButtonType::AllowDenyButton);
popup-> SetResultHandler([](wrt::Popup* popup, void* user_data) {
- std::cout<< popup->GetFirstEntryResult() << std::endl;
- std::cout<< popup->GetSecondEntryResult() << std::endl;
- std::cout<< popup->GetCheckBoxResult() << std::endl;
- std::cout<< popup->GetButtonResult() << std::endl;
+ std::cout<< popup->GetFirstEntryResult() << std::endl;
+ std::cout<< popup->GetSecondEntryResult() << std::endl;
+ std::cout<< popup->GetCheckBoxResult() << std::endl;
+ std::cout<< popup->GetButtonResult() << std::endl;
}, NULL);
popup->Show();