return ewk_settings_form_profile_data_enabled_get(settings);
}
-bool Window::IsPrivateBrowsingEnabled() const {
- log_trace("%s", __PRETTY_FUNCTION__);
- Ewk_Settings* settings = GetEwkSettings();
- return ewk_settings_private_browsing_enabled_get(settings);
-}
-
double Window::GetScale() const {
log_trace("%s", __PRETTY_FUNCTION__);
return ewk_view_scale_get(web_view_);
bool IsRememberFormDataEnabled() const;
bool IsRememberPasswordEnabled() const;
bool IsFormProfileEnabled() const;
- bool IsPrivateBrowsingEnabled() const;
double GetScale() const;
void GetScaleRange(double* minScale, double* maxScale) const;
void SetScale(double);
&WindowUI::OnAutoFillDisabled, this);
}
- if (window_.IsPrivateBrowsingEnabled()) {
- elm_ctxpopup_item_append(menu_, "Disable Private Browsing", NULL,
- &WindowUI::OnPrivateBrowsingChange, this);
- } else {
- elm_ctxpopup_item_append(menu_, "Enable PrivateBrowsing", NULL,
- &WindowUI::OnPrivateBrowsingChange, this);
- }
-
elm_ctxpopup_item_append(menu_, "Change page zoom level", NULL,
&WindowUI::OnShowZoomPopup, this);
thiz->CloseMenu();
}
-void WindowUI::OnPrivateBrowsingChange(void* data, Evas_Object* obj, void*) {
- log_trace("%s", __PRETTY_FUNCTION__);
- WindowUI* thiz = static_cast<WindowUI*>(data);
- Ewk_Settings* settings = thiz->window_.GetEwkSettings();
- if (thiz->window_.IsPrivateBrowsingEnabled()) {
- ewk_settings_private_browsing_enabled_set(settings, false);
- thiz->ShowNotification("Private browsing disabled");
- } else {
- ewk_settings_private_browsing_enabled_set(settings, true);
- thiz->ShowNotification("Private browsing enabled");
- }
- thiz->CloseMenu();
-}
-
void WindowUI::Exit(void* data, Evas_Object*, void*) {
WindowUI* thiz = static_cast<WindowUI*>(data);
thiz->window_.Exit();
static void OnAutoFittingDisabled(void* data, Evas_Object*, void*);
static void OnAutoFillEnabled(void* data, Evas_Object*, void*);
static void OnAutoFillDisabled(void* data, Evas_Object*, void*);
- static void OnPrivateBrowsingChange(void* data, Evas_Object*, void*);
static void ClosePopup(void* data, Evas_Object*, void*);
static void OnShowZoomPopup(void* data, Evas_Object*, void*);