Title: [161342] trunk/Source/WebCore
Revision
161342
Author
[email protected]
Date
2014-01-06 06:27:54 -0800 (Mon, 06 Jan 2014)

Log Message

[Nix] Adding missing platform #ifs to WebCore files
https://bugs.webkit.org/show_bug.cgi?id=126227

Reviewed by Csaba Osztrogonác.

No new tests needed.

* loader/EmptyClients.h:
* page/ChromeClient.h:
* page/DragController.cpp:
(WebCore::DragController::startDrag):
* platform/LocalizedStrings.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (161341 => 161342)


--- trunk/Source/WebCore/ChangeLog	2014-01-06 14:07:00 UTC (rev 161341)
+++ trunk/Source/WebCore/ChangeLog	2014-01-06 14:27:54 UTC (rev 161342)
@@ -1,5 +1,20 @@
 2014-01-06  Thiago de Barros Lacerda  <[email protected]>
 
+        [Nix] Adding missing platform #ifs to WebCore files
+        https://bugs.webkit.org/show_bug.cgi?id=126227
+
+        Reviewed by Csaba Osztrogonác.
+
+        No new tests needed.
+
+        * loader/EmptyClients.h:
+        * page/ChromeClient.h:
+        * page/DragController.cpp:
+        (WebCore::DragController::startDrag):
+        * platform/LocalizedStrings.h:
+
+2014-01-06  Thiago de Barros Lacerda  <[email protected]>
+
         [Nix] Adding new strings to LocalizedStringsNix
         https://bugs.webkit.org/show_bug.cgi?id=126228
 

Modified: trunk/Source/WebCore/loader/EmptyClients.h (161341 => 161342)


--- trunk/Source/WebCore/loader/EmptyClients.h	2014-01-06 14:07:00 UTC (rev 161341)
+++ trunk/Source/WebCore/loader/EmptyClients.h	2014-01-06 14:27:54 UTC (rev 161342)
@@ -193,6 +193,10 @@
     virtual void AXFinishFrameLoad() OVERRIDE { }
 #endif
 
+#if PLATFORM(NIX)
+    virtual FloatRect screenRect() const OVERRIDE { return FloatRect(); }
+#endif
+
 #if PLATFORM(IOS)
 #if ENABLE(TOUCH_EVENTS)
     virtual void didPreventDefaultForEvent() OVERRIDE { }

Modified: trunk/Source/WebCore/page/ChromeClient.h (161341 => 161342)


--- trunk/Source/WebCore/page/ChromeClient.h	2014-01-06 14:07:00 UTC (rev 161341)
+++ trunk/Source/WebCore/page/ChromeClient.h	2014-01-06 14:27:54 UTC (rev 161342)
@@ -366,6 +366,10 @@
     virtual void AXFinishFrameLoad() = 0;
 #endif
 
+#if PLATFORM(NIX)
+    virtual FloatRect screenRect() const = 0;
+#endif
+
 #if ENABLE(TOUCH_EVENTS)
     virtual void needTouchEvents(bool) = 0;
 #endif

Modified: trunk/Source/WebCore/page/DragController.cpp (161341 => 161342)


--- trunk/Source/WebCore/page/DragController.cpp	2014-01-06 14:07:00 UTC (rev 161341)
+++ trunk/Source/WebCore/page/DragController.cpp	2014-01-06 14:27:54 UTC (rev 161342)
@@ -768,7 +768,7 @@
             if (enclosingTextFormControl(src.selection().start()))
                 clipboard.pasteboard().writePlainText(src.editor().selectedTextForClipboard(), Pasteboard::CannotSmartReplace);
             else {
-#if PLATFORM(MAC) || PLATFORM(EFL)
+#if PLATFORM(MAC) || PLATFORM(EFL) || PLATFORM(NIX)
                 src.editor().writeSelectionToPasteboard(clipboard.pasteboard());
 #else
                 // FIXME: Convert all other platforms to match Mac and delete this.

Modified: trunk/Source/WebCore/platform/LocalizedStrings.h (161341 => 161342)


--- trunk/Source/WebCore/platform/LocalizedStrings.h	2014-01-06 14:07:00 UTC (rev 161341)
+++ trunk/Source/WebCore/platform/LocalizedStrings.h	2014-01-06 14:27:54 UTC (rev 161342)
@@ -54,7 +54,7 @@
     String contextMenuItemTagOpenImageInNewWindow();
     String contextMenuItemTagDownloadImageToDisk();
     String contextMenuItemTagCopyImageToClipboard();
-#if PLATFORM(GTK) || PLATFORM(EFL)
+#if PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(NIX)
     String contextMenuItemTagCopyImageUrlToClipboard();
 #endif
     String contextMenuItemTagOpenFrameInNewWindow();
@@ -80,7 +80,7 @@
     String contextMenuItemTagUnicodeInsertZWJMark();
     String contextMenuItemTagUnicodeInsertZWNJMark();
 #endif
-#if PLATFORM(GTK) || PLATFORM(EFL)
+#if PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(NIX)
     String contextMenuItemTagSelectAll();
 #endif
     String contextMenuItemTagNoGuessesFound();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to