Commit 9d30d12c authored by tony@chromium.org's avatar tony@chromium.org

2010-09-23 Tony Chang <tony@chromium.org>

        Reviewed by David Levin.

        [chromium] add caretBrowsingEnabled to WebSettings and DRT
        https://bugs.webkit.org/show_bug.cgi?id=46388

        * public/WebSettings.h:
        * src/WebSettingsImpl.cpp:
        (WebKit::WebSettingsImpl::setCaretBrowsingEnabled):
        * src/WebSettingsImpl.h:
2010-09-23  Tony Chang  <tony@chromium.org>

        Reviewed by David Levin.

        [chromium] add caretBrowsingEnabled to WebSettings and DRT
        https://bugs.webkit.org/show_bug.cgi?id=46388

        * DumpRenderTree/chromium/LayoutTestController.cpp:
        (LayoutTestController::overridePreference):
        * DumpRenderTree/chromium/WebPreferences.cpp:
        (WebPreferences::reset):
        (WebPreferences::applyTo):
        * DumpRenderTree/chromium/WebPreferences.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b8155779
2010-09-23 Tony Chang <tony@chromium.org>
Reviewed by David Levin.
[chromium] add caretBrowsingEnabled to WebSettings and DRT
https://bugs.webkit.org/show_bug.cgi?id=46388
* public/WebSettings.h:
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setCaretBrowsingEnabled):
* src/WebSettingsImpl.h:
2010-09-23 Eric Uhrhane <ericu@chromium.org>
Reviewed by David Levin.
......
......@@ -94,6 +94,7 @@ public:
virtual void setAccelerated2dCanvasEnabled(bool) = 0;
virtual void setMemoryInfoEnabled(bool) = 0;
virtual void setHyperlinkAuditingEnabled(bool) = 0;
virtual void setCaretBrowsingEnabled(bool) = 0;
protected:
~WebSettings() { }
......
......@@ -294,4 +294,9 @@ void WebSettingsImpl::setHyperlinkAuditingEnabled(bool enabled)
m_settings->setHyperlinkAuditingEnabled(enabled);
}
void WebSettingsImpl::setCaretBrowsingEnabled(bool enabled)
{
m_settings->setCaretBrowsingEnabled(enabled);
}
} // namespace WebKit
......@@ -90,6 +90,7 @@ public:
virtual void setAccelerated2dCanvasEnabled(bool);
virtual void setMemoryInfoEnabled(bool);
virtual void setHyperlinkAuditingEnabled(bool);
virtual void setCaretBrowsingEnabled(bool);
private:
WebCore::Settings* m_settings;
......
2010-09-23 Tony Chang <tony@chromium.org>
Reviewed by David Levin.
[chromium] add caretBrowsingEnabled to WebSettings and DRT
https://bugs.webkit.org/show_bug.cgi?id=46388
* DumpRenderTree/chromium/LayoutTestController.cpp:
(LayoutTestController::overridePreference):
* DumpRenderTree/chromium/WebPreferences.cpp:
(WebPreferences::reset):
(WebPreferences::applyTo):
* DumpRenderTree/chromium/WebPreferences.h:
2010-09-23 Nate Chapin <japhet@chromium.org>
Reviewed by Darin Fisher.
......
......@@ -1253,6 +1253,8 @@ void LayoutTestController::overridePreference(const CppArgumentList& arguments,
prefs->experimentalWebGLEnabled = cppVariantToBool(value);
else if (key == "WebKitHyperlinkAuditingEnabled")
prefs->hyperlinkAuditingEnabled = cppVariantToBool(value);
else if (key == "WebKitEnableCaretBrowsing")
prefs->caretBrowsingEnabled = cppVariantToBool(value);
else {
string message("Invalid name for preference: ");
message.append(key);
......
......@@ -88,6 +88,7 @@ void WebPreferences::reset()
userStyleSheetLocation = WebURL();
usesPageCache = false;
webSecurityEnabled = true;
caretBrowsingEnabled = false;
// Allow those layout tests running as local files, i.e. under
// LayoutTests/http/tests/local, to access http server.
......@@ -145,6 +146,7 @@ void WebPreferences::applyTo(WebView* webView)
// LayoutTests were written with Safari Mac in mind which does not allow
// tabbing to links by default.
webView->setTabsToLinks(tabsToLinks);
settings->setCaretBrowsingEnabled(caretBrowsingEnabled);
// Fixed values.
settings->setShouldPaintCustomScrollbars(true);
......
......@@ -76,6 +76,7 @@ struct WebPreferences {
WebKit::WebSettings::EditingBehavior editingBehavior;
bool tabsToLinks;
bool hyperlinkAuditingEnabled;
bool caretBrowsingEnabled;
bool accelerated2dCanvasEnabled;
WebPreferences() { reset(); }
......
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