Title: [213864] trunk/Tools
Revision
213864
Author
ander...@apple.com
Date
2017-03-13 13:16:24 -0700 (Mon, 13 Mar 2017)

Log Message

Fix build warnings.

* MiniBrowser/mac/AppDelegate.m:
(-[BrowserAppDelegate openDocument:]):
* MiniBrowser/mac/ExtensionManagerWindowController.m:
(-[ExtensionManagerWindowController add:]):
* MiniBrowser/mac/WK2BrowserWindowController.m:
(-[WK2BrowserWindowController webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:]):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (213863 => 213864)


--- trunk/Tools/ChangeLog	2017-03-13 20:08:04 UTC (rev 213863)
+++ trunk/Tools/ChangeLog	2017-03-13 20:16:24 UTC (rev 213864)
@@ -1,3 +1,14 @@
+2017-03-13  Anders Carlsson  <ander...@apple.com>
+
+        Fix build warnings.
+
+        * MiniBrowser/mac/AppDelegate.m:
+        (-[BrowserAppDelegate openDocument:]):
+        * MiniBrowser/mac/ExtensionManagerWindowController.m:
+        (-[ExtensionManagerWindowController add:]):
+        * MiniBrowser/mac/WK2BrowserWindowController.m:
+        (-[WK2BrowserWindowController webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:]):
+
 2017-03-13  Martin Robinson  <mrobin...@igalia.com>
 
         Remove my email from some of the watchlists

Modified: trunk/Tools/MiniBrowser/mac/AppDelegate.m (213863 => 213864)


--- trunk/Tools/MiniBrowser/mac/AppDelegate.m	2017-03-13 20:08:04 UTC (rev 213863)
+++ trunk/Tools/MiniBrowser/mac/AppDelegate.m	2017-03-13 20:16:24 UTC (rev 213864)
@@ -243,7 +243,7 @@
     if (browserWindowController) {
         NSOpenPanel *openPanel = [[NSOpenPanel openPanel] retain];
         [openPanel beginSheetModalForWindow:browserWindowController.window completionHandler:^(NSInteger result) {
-            if (result != NSFileHandlingPanelOKButton)
+            if (result != NSModalResponseOK)
                 return;
 
             NSURL *url = "" objectAtIndex:0];
@@ -254,7 +254,7 @@
 
     NSOpenPanel *openPanel = [NSOpenPanel openPanel];
     [openPanel beginWithCompletionHandler:^(NSInteger result) {
-        if (result != NSFileHandlingPanelOKButton)
+        if (result != NSModalResponseOK)
             return;
 
         BrowserWindowController *controller = [self createBrowserWindowController:nil];

Modified: trunk/Tools/MiniBrowser/mac/ExtensionManagerWindowController.m (213863 => 213864)


--- trunk/Tools/MiniBrowser/mac/ExtensionManagerWindowController.m	2017-03-13 20:08:04 UTC (rev 213863)
+++ trunk/Tools/MiniBrowser/mac/ExtensionManagerWindowController.m	2017-03-13 20:16:24 UTC (rev 213864)
@@ -75,7 +75,7 @@
     
     [openPanel beginSheetModalForWindow:self.window completionHandler:^(NSInteger result)
     {
-        if (result != NSFileHandlingPanelOKButton)
+        if (result != NSModalResponseOK)
             return;
 
         NSURL *url = "" objectAtIndex:0];

Modified: trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m (213863 => 213864)


--- trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m	2017-03-13 20:08:04 UTC (rev 213863)
+++ trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m	2017-03-13 20:16:24 UTC (rev 213864)
@@ -507,7 +507,7 @@
     openPanel.allowsMultipleSelection = parameters.allowsMultipleSelection;
 
     [openPanel beginSheetModalForWindow:webView.window completionHandler:^(NSInteger result) {
-        if (result == NSFileHandlingPanelOKButton)
+        if (result == NSModalResponseOK)
             completionHandler(openPanel.URLs);
         else
             completionHandler(nil);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to