Commit ae021902 authored by aroben's avatar aroben

Add/initialize Settings::developerExtrasEnabled

WebCore:

        Add Settings::developerExtrasEnabled

        Reviewed by Tim.

        * WebCore.exp:
        * page/Settings.cpp:
        * page/Settings.h:

WebKit:

        Initialize Settings::developerExtrasEnabled

        Reviewed by Tim.

        * WebView/WebView.mm:
        (-[WebView _updateWebCoreSettingsFromPreferences:]):

WebKit/win:

        Initialize Settings::developerExtrasEnabled

        Reviewed by Tim.

        * WebView.cpp:
        (WebView::updateWebCoreSettingsFromPreferences):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24378 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d46da86c
2007-07-17 Adam Roben <aroben@apple.com>
Add Settings::developerExtrasEnabled
Reviewed by Tim.
* WebCore.exp:
* page/Settings.cpp:
* page/Settings.h:
2007-07-17 Justin Garcia <justin.garcia@apple.com>
Reviewed by Antti.
......@@ -447,6 +447,7 @@ __ZN7WebCore8Settings22setShowsURLsInToolTipsEb
__ZN7WebCore8Settings23setDefaultFixedFontSizeEi
__ZN7WebCore8Settings23setEditableLinkBehaviorENS_20EditableLinkBehaviorE
__ZN7WebCore8Settings24setTextAreasAreResizableEb
__ZN7WebCore8Settings25setDeveloperExtrasEnabledEb
__ZN7WebCore8Settings25setMinimumLogicalFontSizeEi
__ZN7WebCore8Settings25setPrivateBrowsingEnabledEb
__ZN7WebCore8Settings25setShouldPrintBackgroundsEb
......
......@@ -62,6 +62,7 @@ Settings::Settings(Page* page)
, m_usesPageCache(false)
, m_showsURLsInToolTips(false)
, m_forceFTPDirectoryListings(false)
, m_developerExtrasEnabled(false)
{
// A Frame may not have been created yet, so we initialize the AtomicString
// hash before trying to use it.
......@@ -272,4 +273,9 @@ void Settings::setForceFTPDirectoryListings(bool force)
m_forceFTPDirectoryListings = force;
}
void Settings::setDeveloperExtrasEnabled(bool developerExtrasEnabled)
{
m_developerExtrasEnabled = developerExtrasEnabled;
}
} // namespace WebCore
......@@ -127,13 +127,16 @@ namespace WebCore {
void setShowsURLsInToolTips(bool);
bool showsURLsInToolTips() const { return m_showsURLsInToolTips; }
void setFTPDirectoryTemplatePath(const String&);
const String& ftpDirectoryTemplatePath() const { return m_ftpDirectoryTemplatePath; }
void setForceFTPDirectoryListings(bool);
bool forceFTPDirectoryListings() const { return m_forceFTPDirectoryListings; }
void setDeveloperExtrasEnabled(bool);
bool developerExtrasEnabled() const { return m_developerExtrasEnabled; }
private:
Page* m_page;
......@@ -166,6 +169,7 @@ namespace WebCore {
bool m_usesPageCache: 1;
bool m_showsURLsInToolTips : 1;
bool m_forceFTPDirectoryListings : 1;
bool m_developerExtrasEnabled : 1;
};
} // namespace WebCore
......
2007-07-17 Adam Roben <aroben@apple.com>
Initialize Settings::developerExtrasEnabled
Reviewed by Tim.
* WebView/WebView.mm:
(-[WebView _updateWebCoreSettingsFromPreferences:]):
2007-07-17 Geoffrey Garen <ggaren@apple.com>
Build fix.
......
......@@ -881,6 +881,7 @@ static bool debugWidget = true;
settings->setDOMPasteAllowed([preferences isDOMPasteAllowed]);
settings->setUsesPageCache([self usesPageCache]);
settings->setShowsURLsInToolTips([preferences showsURLsInToolTips]);
settings->setDeveloperExtrasEnabled([WebView _developerExtrasEnabled]);
if ([preferences userStyleSheetEnabled]) {
NSString* location = [[preferences userStyleSheetLocation] _web_originalDataAsString];
settings->setUserStyleSheetLocation([NSURL URLWithString:(location ? location : @"")]);
......
2007-07-17 Adam Roben <aroben@apple.com>
Initialize Settings::developerExtrasEnabled
Reviewed by Tim.
* WebView.cpp:
(WebView::updateWebCoreSettingsFromPreferences):
2007-07-17 Geoffrey Garen <ggaren@apple.com>
Build fix.
......
......@@ -1509,6 +1509,10 @@ HRESULT WebView::updateWebCoreSettingsFromPreferences(IWebPreferences* preferenc
settings->setForceFTPDirectoryListings(true);
// FIXME: make this read a preference like the Mac's WebKitDeveloperExtras
// or when Safari's IncludeDebugMenu is set
settings->setDeveloperExtrasEnabled(true);
m_mainFrame->invalidate(); // FIXME
return S_OK;
......
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