Bug 27013

Summary: WebCore/platform/FileSystem.h doesn't have a PlatformFileHandle definition for Windows
Product: WebKit Reporter: Dumitru Daniliuc <dumi>
Component: New BugsAssignee: Dumitru Daniliuc <dumi>
Status: RESOLVED FIXED    
Severity: Normal CC: alp, aroben, dglazkov, fishd, hausmann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch
fishd: review-
patch fishd: review+

Dumitru Daniliuc
Reported 2009-07-06 16:00:47 PDT
WebCore/platform/FileSystem.h doesn't have a PlatformFileHandle definition for PLATFORM(WIN_OS).
Attachments
patch (1.49 KB, patch)
2009-07-07 16:00 PDT, Dumitru Daniliuc
fishd: review-
patch (2.70 KB, patch)
2009-07-07 16:37 PDT, Dumitru Daniliuc
fishd: review+
Dumitru Daniliuc
Comment 1 2009-07-06 17:23:52 PDT
What I wanted was a way to distinguish between the CHROMIUM port on Windows and the CHROMIUM port on Mac/Linux. If I understand the code correctly, there's no way to do this in WebKit, because WebKit knows only about one generic CHROMIUM port. So we'll have to take care of this in the Chromium code.
Dumitru Daniliuc
Comment 2 2009-07-07 15:56:29 PDT
After talking to Darin, it looks like we can extend the PlatformFileHandle definition for PLATFORM(WIN) to all WebKit ports built on Windows, which seems reasonable to me and works for Chromium too. Reopening the issue, patch coming shortly.
Dumitru Daniliuc
Comment 3 2009-07-07 16:00:03 PDT
Darin Fisher (:fishd, Google)
Comment 4 2009-07-07 16:28:13 PDT
Comment on attachment 32399 [details] patch I'm concerned this may cause problems for the PLATFORM(QT) build. I believe that in the PLATFORM(QT) builds on Windows, PLATFORM(WIN_OS) will also be defined. You may be able to avoid that problem by revising the #ifdefs to check for PLATFORM(QT) before checking for PLATFORM(WIN_OS). Also, the very last PLATFORM(WIN) in FileSystem.h might be best kept as PLATFORM(WIN). It looks like it is a declaration of additional functions that perhaps only make sense in the PLATFORM(WIN) port (i.e., Safari on Windows).
Darin Fisher (:fishd, Google)
Comment 5 2009-07-07 16:30:27 PDT
CC'ing folks who seemed to have been involved with the PLATFORM(QT) code in FileSystem.h. Guys, please see comment #4. Thanks!
Dumitru Daniliuc
Comment 6 2009-07-07 16:37:30 PDT
Created attachment 32401 [details] patch done.
Darin Fisher (:fishd, Google)
Comment 7 2009-07-07 17:07:38 PDT
Comment on attachment 32401 [details] patch This looks like it will work. R=me
Darin Fisher (:fishd, Google)
Comment 8 2009-07-08 14:36:24 PDT
Note You need to log in before you can comment on or make changes to this bug.