Title: [146917] trunk/Source/WebKit/chromium
Revision
146917
Author
t...@chromium.org
Date
2013-03-26 12:12:37 -0700 (Tue, 26 Mar 2013)

Log Message

[chromium] Expose setSelectionIncludesAltImageText in WebSettings
https://bugs.webkit.org/show_bug.cgi?id=113316

Reviewed by Dimitri Glazkov.

Enabling this setting allows plain text clipboard content to include alt
text like on Firefox and IE10.

* public/WebSettings.h:
(WebSettings):
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setSelectionIncludesAltImageText):
* src/WebSettingsImpl.h:
(WebSettingsImpl):

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (146916 => 146917)


--- trunk/Source/WebKit/chromium/ChangeLog	2013-03-26 19:04:24 UTC (rev 146916)
+++ trunk/Source/WebKit/chromium/ChangeLog	2013-03-26 19:12:37 UTC (rev 146917)
@@ -1,3 +1,20 @@
+2013-03-26  Tony Chang  <t...@chromium.org>
+
+        [chromium] Expose setSelectionIncludesAltImageText in WebSettings
+        https://bugs.webkit.org/show_bug.cgi?id=113316
+
+        Reviewed by Dimitri Glazkov.
+
+        Enabling this setting allows plain text clipboard content to include alt
+        text like on Firefox and IE10.
+
+        * public/WebSettings.h:
+        (WebSettings):
+        * src/WebSettingsImpl.cpp:
+        (WebKit::WebSettingsImpl::setSelectionIncludesAltImageText):
+        * src/WebSettingsImpl.h:
+        (WebSettingsImpl):
+
 2013-03-26  Christophe Dumez  <ch.du...@sisa.samsung.com>
 
         Code duplication between HTTPParsers and HTTPValidation

Modified: trunk/Source/WebKit/chromium/public/WebSettings.h (146916 => 146917)


--- trunk/Source/WebKit/chromium/public/WebSettings.h	2013-03-26 19:04:24 UTC (rev 146916)
+++ trunk/Source/WebKit/chromium/public/WebSettings.h	2013-03-26 19:12:37 UTC (rev 146917)
@@ -143,6 +143,7 @@
     virtual void setRenderVSyncNotificationEnabled(bool) = 0;
     virtual void setSansSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) = 0;
     virtual void setSelectTrailingWhitespaceEnabled(bool) = 0;
+    virtual void setSelectionIncludesAltImageText(bool) = 0;
     virtual void setSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) = 0;
     virtual void setShouldPrintBackgrounds(bool) = 0;
     virtual void setShouldRespectImageOrientation(bool) = 0;

Modified: trunk/Source/WebKit/chromium/src/WebSettingsImpl.cpp (146916 => 146917)


--- trunk/Source/WebKit/chromium/src/WebSettingsImpl.cpp	2013-03-26 19:04:24 UTC (rev 146916)
+++ trunk/Source/WebKit/chromium/src/WebSettingsImpl.cpp	2013-03-26 19:12:37 UTC (rev 146917)
@@ -731,6 +731,11 @@
     m_settings->setSelectTrailingWhitespaceEnabled(enabled);
 }
 
+void WebSettingsImpl::setSelectionIncludesAltImageText(bool enabled)
+{
+    m_settings->setSelectionIncludesAltImageText(enabled);
+}
+
 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled)
 {
     m_settings->setSmartInsertDeleteEnabled(enabled);

Modified: trunk/Source/WebKit/chromium/src/WebSettingsImpl.h (146916 => 146917)


--- trunk/Source/WebKit/chromium/src/WebSettingsImpl.h	2013-03-26 19:04:24 UTC (rev 146916)
+++ trunk/Source/WebKit/chromium/src/WebSettingsImpl.h	2013-03-26 19:12:37 UTC (rev 146917)
@@ -136,6 +136,7 @@
     virtual void setRenderVSyncNotificationEnabled(bool);
     virtual void setSansSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON);
     virtual void setSelectTrailingWhitespaceEnabled(bool);
+    virtual void setSelectionIncludesAltImageText(bool);
     virtual void setSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON);
     virtual void setShouldDisplayCaptions(bool);
     virtual void setShouldDisplaySubtitles(bool);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to