diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-11 00:36:16 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-11 00:36:16 +0000 |
commit | a6aae4a0266149529cdb28b9db4ad8cb19741b80 (patch) | |
tree | 3aa520dcac0b75a501df9e44116139b810cdc7ae /webkit/tools/test_shell/test_webview_delegate.cc | |
parent | 4e0f0aeb701d1920df37216a6bdf4f851074e41e (diff) | |
download | chromium_src-a6aae4a0266149529cdb28b9db4ad8cb19741b80.zip chromium_src-a6aae4a0266149529cdb28b9db4ad8cb19741b80.tar.gz chromium_src-a6aae4a0266149529cdb28b9db4ad8cb19741b80.tar.bz2 |
Second attempt at adding setSmartInsertDeleteEnabled and
setSelectTrailingWhitespaceEnabled.
Now we allow both to be true because that's what we do on Windows.
Review URL: http://codereview.chromium.org/13213
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6761 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_webview_delegate.cc')
-rw-r--r-- | webkit/tools/test_shell/test_webview_delegate.cc | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc index 061cc9b..19354f6 100644 --- a/webkit/tools/test_shell/test_webview_delegate.cc +++ b/webkit/tools/test_shell/test_webview_delegate.cc @@ -548,7 +548,25 @@ bool TestWebViewDelegate::ShouldApplyStyle(WebView* webview, } bool TestWebViewDelegate::SmartInsertDeleteEnabled() { - return true; + return smart_insert_delete_enabled_; +} + +void TestWebViewDelegate::SetSmartInsertDeleteEnabled(bool enabled) { + smart_insert_delete_enabled_ = enabled; + // In upstream WebKit, smart insert/delete is mutually exclusive with select + // trailing whitespace, however, we allow both because Chromium on Windows + // allows both. +} + +bool TestWebViewDelegate::IsSelectTrailingWhitespaceEnabled() { + return select_trailing_whitespace_enabled_; +} + +void TestWebViewDelegate::SetSelectTrailingWhitespaceEnabled(bool enabled) { + select_trailing_whitespace_enabled_ = enabled; + // In upstream WebKit, smart insert/delete is mutually exclusive with select + // trailing whitespace, however, we allow both because Chromium on Windows + // allows both. } void TestWebViewDelegate::DidBeginEditing() { |