Home | History | Annotate | Download | only in ewk

Lines Matching refs:Settings

76     WebCore::Settings* page_settings;
137 } settings;
529 flc->setCustomUserAgent(String::fromUTF8(priv->settings.user_agent));
559 priv->page_settings = priv->page->settings();
561 CRITICAL("Could not get page settings.");
580 priv->settings.user_stylesheet = eina_stringshare_add(url.prettyURL().utf8().data());
582 priv->settings.encoding_default = eina_stringshare_add
584 priv->settings.encoding_custom = 0;
587 priv->settings.local_storage_database_path = eina_stringshare_add(s.string().utf8().data());
589 priv->settings.font_minimum_size = priv->page_settings->minimumFontSize();
590 priv->settings.font_minimum_logical_size = priv->page_settings->minimumLogicalFontSize();
591 priv->settings.font_default_size = priv->page_settings->defaultFontSize();
592 priv->settings.font_monospace_size = priv->page_settings->defaultFixedFontSize();
595 priv->settings.font_standard = eina_stringshare_add(s.string().utf8().data());
597 priv->settings.font_cursive = eina_stringshare_add(s.string().utf8().data());
599 priv->settings.font_monospace = eina_stringshare_add(s.string().utf8().data());
601 priv->settings.font_fantasy = eina_stringshare_add(s.string().utf8().data());
603 priv->settings.font_serif = eina_stringshare_add(s.string().utf8().data());
605 priv->settings.font_sans_serif = eina_stringshare_add(s.string().utf8().data());
607 priv->settings.auto_load_images = priv->page_settings->loadsImagesAutomatically();
608 priv->settings.auto_shrink_images = priv->page_settings->shrinksStandaloneImagesToFit();
609 priv->settings.enable_auto_resize_window = EINA_TRUE;
610 priv->settings.enable_scripts = priv->page_settings->isJavaScriptEnabled();
611 priv->settings.enable_plugins = priv->page_settings->arePluginsEnabled();
612 priv->settings.enable_frame_flattening = priv->page_settings->frameFlatteningEnabled();
613 priv->settings.scripts_window_open = priv->page_settings->allowScriptsToCloseWindows();
614 priv->settings.resizable_textareas = priv->page_settings->textAreasAreResizable();
615 priv->settings.private_browsing = priv->page_settings->privateBrowsingEnabled();
616 priv->settings.caret_browsing = priv->page_settings->caretBrowsingEnabled();
617 priv->settings.spatial_navigation = priv->page_settings->isSpatialNavigationEnabled();
618 priv->settings.local_storage = priv->page_settings->localStorageEnabled();
619 priv->settings.offline_app_cache = true; // XXX no function to read setting; this keeps the original setting
620 priv->settings.page_cache = priv->page_settings->usesPageCache();
621 priv->settings.encoding_detector = priv->page_settings->usesEncodingDetector();
623 priv->settings.user_agent = ewk_settings_default_user_agent_get();
628 priv->settings.zoom_range.min_scale = ZOOM_MIN;
629 priv->settings.zoom_range.max_scale = ZOOM_MAX;
630 priv->settings.zoom_range.user_scalable = EINA_TRUE;
631 priv->settings.device_pixel_ratio = DEVICE_PIXEL_RATIO;
667 eina_stringshare_del(priv->settings.user_agent);
668 eina_stringshare_del(priv->settings.user_stylesheet);
669 eina_stringshare_del(priv->settings.encoding_default);
670 eina_stringshare_del(priv->settings.encoding_custom);
671 eina_stringshare_del(priv->settings.font_standard);
672 eina_stringshare_del(priv->settings.font_cursive);
673 eina_stringshare_del(priv->settings.font_monospace);
674 eina_stringshare_del(priv->settings.font_fantasy);
675 eina_stringshare_del(priv->settings.font_serif);
676 eina_stringshare_del(priv->settings.font_sans_serif);
677 eina_stringshare_del(priv->settings.local_storage_database_path);
1193 if (!eina_stringshare_replace(&priv->settings.theme, path))
1211 return priv->settings.theme;
1898 if (!priv->settings.zoom_range.user_scalable) {
1903 if (zoom < priv->settings.zoom_range.min_scale) {
1904 WRN("zoom level is < %f : %f", (double)priv->settings.zoom_range.min_scale, (double)zoom);
1907 if (zoom > priv->settings.zoom_range.max_scale) {
1908 WRN("zoom level is > %f : %f", (double)priv->settings.zoom_range.max_scale, (double)zoom);
1976 if (!priv->settings.zoom_range.user_scalable) {
1981 if (zoom < priv->settings.zoom_range.min_scale) {
1982 WRN("zoom level is < %f : %f", (double)priv->settings.zoom_range.min_scale, (double)zoom);
1985 if (zoom > priv->settings.zoom_range.max_scale) {
1986 WRN("zoom level is > %f : %f", (double)priv->settings.zoom_range.max_scale, (double)zoom);
2129 if (!priv->settings.zoom_range.user_scalable) {
2134 if (zoom < priv->settings.zoom_range.min_scale) {
2135 WRN("zoom level is < %f : %f", (double)priv->settings.zoom_range.min_scale, (double)zoom);
2138 if (zoom > priv->settings.zoom_range.max_scale) {
2139 WRN("zoom level is > %f : %f", (double)priv->settings.zoom_range.max_scale, (double)zoom);
2357 return priv->settings.user_agent;
2364 if (eina_stringshare_replace(&priv->settings.user_agent, user_agent)) {
2375 return priv->settings.user_stylesheet;
2382 if (eina_stringshare_replace(&priv->settings.user_stylesheet, uri)) {
2393 return priv->settings.auto_load_images;
2401 if (priv->settings.auto_load_images != automatic) {
2403 priv->settings.auto_load_images = automatic;
2412 return priv->settings.auto_shrink_images;
2420 if (priv->settings.auto_shrink_images != automatic) {
2422 priv->settings.auto_shrink_images = automatic;
2439 return priv->settings.enable_auto_resize_window;
2456 priv->settings.enable_auto_resize_window = resizable;
2464 return priv->settings.enable_scripts;
2472 if (priv->settings.enable_scripts != enable) {
2474 priv->settings.enable_scripts = enable;
2483 return priv->settings.enable_plugins;
2491 if (priv->settings.enable_plugins != enable) {
2493 priv->settings.enable_plugins = enable;
2510 return priv->settings.enable_frame_flattening;
2526 if (priv->settings.enable_frame_flattening != enable) {
2528 priv->settings.enable_frame_flattening = enable;
2537 return priv->settings.scripts_window_open;
2545 if (priv->settings.scripts_window_open != allow) {
2547 priv->settings.scripts_window_open = allow;
2556 return priv->settings.resizable_textareas;
2564 if (priv->settings.resizable_textareas != enable) {
2566 priv->settings.resizable_textareas = enable;
2575 return priv->settings.private_browsing;
2583 if (priv->settings.private_browsing != enable) {
2585 priv->settings.private_browsing = enable;
2594 return priv->settings.offline_app_cache;
2602 if (priv->settings.offline_app_cache != enable) {
2604 priv->settings.offline_app_cache = enable;
2614 return priv->settings.caret_browsing;
2622 if (priv->settings.caret_browsing != enable) {
2624 priv->settings.caret_browsing = enable;
2649 eina_stringshare_replace(&priv->settings.encoding_custom, overrideEncoding.utf8().data());
2650 return priv->settings.encoding_custom;
2668 eina_stringshare_replace(&priv->settings.encoding_custom, encoding);
2678 return priv->settings.encoding_default;
2685 if (eina_stringshare_replace(&priv->settings.encoding_default, encoding))
2701 if (priv->settings.encoding_detector != enable) {
2703 priv->settings.encoding_detector = enable;
2718 return priv->settings.encoding_detector;
2725 return priv->settings.font_minimum_size;
2732 if (priv->settings.font_minimum_size != size) {
2734 priv->settings.font_minimum_size = size;
2743 return priv->settings.font_minimum_logical_size;
2750 if (priv->settings.font_minimum_logical_size != size) {
2752 priv->settings.font_minimum_logical_size = size;
2761 return priv->settings.font_default_size;
2768 if (priv->settings.font_default_size != size) {
2770 priv->settings.font_default_size = size;
2779 return priv->settings.font_monospace_size;
2786 if (priv->settings.font_monospace_size != size) {
2788 priv->settings.font_monospace_size = size;
2797 return priv->settings.font_standard;
2804 if (eina_stringshare_replace(&priv->settings.font_standard, family))
2813 return priv->settings.font_cursive;
2820 if (eina_stringshare_replace(&priv->settings.font_cursive, family))
2829 return priv->settings.font_fantasy;
2836 if (eina_stringshare_replace(&priv->settings.font_fantasy, family))
2845 return priv->settings.font_monospace;
2852 if (eina_stringshare_replace(&priv->settings.font_monospace, family))
2861 return priv->settings.font_serif;
2868 if (eina_stringshare_replace(&priv->settings.font_serif, family))
2877 return priv->settings.font_sans_serif;
2884 if (eina_stringshare_replace(&priv->settings.font_sans_serif, family))
2899 return priv->settings.spatial_navigation;
2913 if (priv->settings.spatial_navigation != enable) {
2915 priv->settings.spatial_navigation = enable;
2930 return priv->settings.local_storage;
2944 if (priv->settings.local_storage != enable) {
2946 priv->settings.local_storage = enable;
2961 return priv->settings.page_cache;
2975 if (priv->settings.page_cache != enable) {
2977 priv->settings.page_cache = enable;
2992 return priv->settings.local_storage_database_path;
3005 if (eina_stringshare_replace(&priv->settings.local_storage_database_path, path))
4309 priv->settings.zoom_range.min_scale = min_scale;
4310 priv->settings.zoom_range.max_scale = max_scale;
4327 return priv->settings.zoom_range.min_scale;
4342 return priv->settings.zoom_range.max_scale;
4357 priv->settings.zoom_range.user_scalable = user_scalable;
4373 return priv->settings.zoom_range.user_scalable;
4389 return priv->settings.device_pixel_ratio;