2010-12-29 Juha Savolainen <juha.savolainen@weego.fi>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] [WK2] Added more webattributes to the qwkpreferences
        https://bugs.webkit.org/show_bug.cgi?id=51697

        Added PrivateBrowsingEnabled, DeveloperExtrasEnabled, DnsPrefetchEnabled attributes

        * UIProcess/API/qt/qwkpreferences.cpp:
        (QWKPreferences::testAttribute):
        (QWKPreferences::setAttribute):
        * UIProcess/API/qt/qwkpreferences.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5dc6a5db
2010-12-29 Juha Savolainen <juha.savolainen@weego.fi>
Reviewed by Kenneth Rohde Christiansen.
[Qt] [WK2] Added more webattributes to the qwkpreferences
https://bugs.webkit.org/show_bug.cgi?id=51697
Added PrivateBrowsingEnabled, DeveloperExtrasEnabled, DnsPrefetchEnabled attributes
* UIProcess/API/qt/qwkpreferences.cpp:
(QWKPreferences::testAttribute):
(QWKPreferences::setAttribute):
* UIProcess/API/qt/qwkpreferences.h:
2010-12-27 Sam Weinig <sam@webkit.org>
Reviewed by Anders Carlsson.
......@@ -134,6 +134,12 @@ bool QWKPreferences::testAttribute(WebAttribute attr) const
return WKPreferencesGetXSSAuditorEnabled(d->ref);
case FrameFlatteningEnabled:
return WKPreferencesGetFrameFlatteningEnabled(d->ref);
case PrivateBrowsingEnabled:
return WKPreferencesGetPrivateBrowsingEnabled(d->ref);
case DeveloperExtrasEnabled:
return WKPreferencesGetDeveloperExtrasEnabled(d->ref);
case DnsPrefetchEnabled:
return WKPreferencesGetDNSPrefetchingEnabled(d->ref);
default:
ASSERT_NOT_REACHED();
return false;
......@@ -164,6 +170,15 @@ void QWKPreferences::setAttribute(WebAttribute attr, bool on)
case FrameFlatteningEnabled:
WKPreferencesSetFrameFlatteningEnabled(d->ref, on);
break;
case PrivateBrowsingEnabled:
WKPreferencesSetPrivateBrowsingEnabled(d->ref, on);
break;
case DeveloperExtrasEnabled:
WKPreferencesSetDeveloperExtrasEnabled(d->ref, on);
break;
case DnsPrefetchEnabled:
WKPreferencesSetDNSPrefetchingEnabled(d->ref, on);
break;
default:
ASSERT_NOT_REACHED();
}
......
......@@ -43,7 +43,10 @@ public:
OfflineWebApplicationCacheEnabled,
LocalStorageEnabled,
XSSAuditingEnabled,
FrameFlatteningEnabled
FrameFlatteningEnabled,
PrivateBrowsingEnabled,
DeveloperExtrasEnabled,
DnsPrefetchEnabled
};
static QWKPreferences* sharedPreferences();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment