Add/initialize Settings::showsURLsInToolTips
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jul 2007 03:00:41 +0000 (03:00 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jul 2007 03:00:41 +0000 (03:00 +0000)
WebCore:

        Add Settings::showsURLsInToolTips

        Reviewed by Sam.

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

WebKit:

        Initialize Settings::showsURLsInToolTips

        Reviewed by Sam.

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

WebKit/win:

        Initialize Settings::showsURLsInToolTips

        Reviewed by Sam.

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

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23999 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/WebCore.exp
WebCore/page/Settings.cpp
WebCore/page/Settings.h
WebKit/ChangeLog
WebKit/WebView/WebView.mm
WebKit/win/ChangeLog
WebKit/win/WebView.cpp

index 9a20584f17b23d28a5249ef4ae6838a07332fb94..c1dfff79cae901ca4d9bbc44e137c205d2ff5291 100644 (file)
@@ -1,3 +1,14 @@
+2007-07-04  Adam Roben  <aroben@apple.com>
+
+        Add Settings::showsURLsInToolTips
+
+        Reviewed by Sam.
+
+        * WebCore.exp:
+        * page/Settings.cpp:
+        (WebCore::Settings::Settings):
+        * page/Settings.h:
+
 2007-07-04  Adam Roben  <aroben@apple.com>
 
         Move logic for calling mouseDidMoveOverElement into WebCore
index e3e947005edb12abb15ee2ea6cee69a6c42f9368..71b4376188aa179788b9cea3006907f6b06d711f 100644 (file)
@@ -440,6 +440,7 @@ __ZN7WebCore8Settings20setFantasyFontFamilyERKNS_12AtomicStringE
 __ZN7WebCore8Settings20setJavaScriptEnabledEb
 __ZN7WebCore8Settings21setStandardFontFamilyERKNS_12AtomicStringE
 __ZN7WebCore8Settings22setSansSerifFontFamilyERKNS_12AtomicStringE
+__ZN7WebCore8Settings22setShowsURLsInToolTipsEb
 __ZN7WebCore8Settings23setDefaultFixedFontSizeEi
 __ZN7WebCore8Settings23setEditableLinkBehaviorENS_20EditableLinkBehaviorE
 __ZN7WebCore8Settings24setTextAreasAreResizableEb
index 9a18e389978d35521f566426238156af0a0ad573..d0d57ff7a59075278ea6785758a713eafe641096 100644 (file)
@@ -60,6 +60,7 @@ Settings::Settings(Page* page)
     , m_isDOMPasteAllowed(false)
     , m_shrinksStandaloneImagesToFit(true)
     , m_usesPageCache(false)
+    , m_showsURLsInToolTips(false)
 {
     // A Frame may not have been created yet, so we initialize the AtomicString 
     // hash before trying to use it.
@@ -255,4 +256,9 @@ void Settings::setShrinksStandaloneImagesToFit(bool shrinksStandaloneImagesToFit
     m_shrinksStandaloneImagesToFit = shrinksStandaloneImagesToFit;
 }
 
+void Settings::setShowsURLsInToolTips(bool showsURLsInToolTips)
+{
+    m_showsURLsInToolTips = showsURLsInToolTips;
+}
+
 } // namespace WebCore
index e4b8a12af2aa01a06b869f3d39cebef16f34ed4a..8689bbf32effed18bcfdcd54a907749a0654ae68 100644 (file)
@@ -124,6 +124,9 @@ namespace WebCore {
 
         void setShrinksStandaloneImagesToFit(bool);
         bool shrinksStandaloneImagesToFit() const { return m_shrinksStandaloneImagesToFit; }
+
+        void setShowsURLsInToolTips(bool);
+        bool showsURLsInToolTips() const { return m_showsURLsInToolTips; }
         
     private:
         Page* m_page;
@@ -154,6 +157,7 @@ namespace WebCore {
         bool m_isDOMPasteAllowed : 1;
         bool m_shrinksStandaloneImagesToFit : 1;
         bool m_usesPageCache: 1;
+        bool m_showsURLsInToolTips : 1;
     };
 
 } // namespace WebCore
index 8126de3b710a48e8ee39b70161f13162dc039356..26571b25c3f72077a33ecd9fe365eb7067881c8a 100644 (file)
@@ -1,3 +1,12 @@
+2007-07-04  Adam Roben  <aroben@apple.com>
+
+        Initialize Settings::showsURLsInToolTips
+
+        Reviewed by Sam.
+
+        * WebView/WebView.mm:
+        (-[WebView _updateWebCoreSettingsFromPreferences:]):
+
 2007-07-04  Adam Roben  <aroben@apple.com>
 
         Removed call to mouseDidMoveOverElement now that WebCore handles it
index a7a6c509af8d2d7633fb5ac707ae00b9bd0a2c86..9a573dd71766d34e130a4b2d4c26fe1fa825f6aa 100644 (file)
@@ -878,6 +878,7 @@ static bool debugWidget = true;
     settings->setEditableLinkBehavior(core([preferences editableLinkBehavior]));
     settings->setDOMPasteAllowed([preferences isDOMPasteAllowed]);
     settings->setUsesPageCache([self usesPageCache]);
+    settings->setShowsURLsInToolTips([preferences showsURLsInToolTips]);
     if ([preferences userStyleSheetEnabled]) {
         NSString* location = [[preferences userStyleSheetLocation] _web_originalDataAsString];
         settings->setUserStyleSheetLocation([NSURL URLWithString:(location ? location : @"")]);
index 14fd9289de676d538308302bea5c43b701dc381d..25f2fb62777fd397ca9454963b0de213a3cc77fc 100644 (file)
@@ -1,3 +1,12 @@
+2007-07-04  Adam Roben  <aroben@apple.com>
+
+        Initialize Settings::showsURLsInToolTips
+
+        Reviewed by Sam.
+
+        * WebView.cpp:
+        (WebView::updateWebCoreSettingsFromPreferences):
+
 2007-07-04  Adam Roben  <aroben@apple.com>
 
         Removed call to mouseDidMoveOverElement now that WebCore handles it
index a557233811d475d8bd8b11d01493b7a2487381df..79cad1dc760a7fedc711cb023708af74fa86099d 100644 (file)
@@ -1460,6 +1460,8 @@ HRESULT WebView::updateWebCoreSettingsFromPreferences(IWebPreferences* preferenc
 
     ResourceHandle::setCookieStorageAcceptPolicy(acceptPolicy);
 
+    settings->setShowsURLsInToolTips(false);
+
     m_mainFrame->invalidate(); // FIXME
 
     return S_OK;