• jamesr@google.com's avatar
    [chromium] Move WebMimeRegistry and dependencies to Source/Platform · a5d23a13
    jamesr@google.com authored
    https://bugs.webkit.org/show_bug.cgi?id=74583
    
    Reviewed by Darin Fisher.
    
    .:
    
    Update .gitignore for Source/Platform/Platform.gyp/ generated project files.
    
    * .gitignore:
    
    Source/Platform:
    
    This creates a skeleton directory structure for the chromium WebKit platform API and moves WebMimeRegistry.h
    along with its dependencies (WebString and WebCString) to their final location.
    
    * Platform.gyp/Platform.gyp: Added.
    * Platform.gypi: Added.
    * chromium/platform/WebCString.h: Copied from Source/WebKit/chromium/public/platform/WebCString.h.
    (WebKit::WebCString::~WebCString):
    (WebKit::WebCString::WebCString):
    (WebKit::WebCString::operator=):
    (WebKit::WebCString::isEmpty):
    (WebKit::WebCString::isNull):
    (WebKit::WebCString::operator std::string):
    (WebKit::WebCString::fromUTF16):
    (WebKit::operator<):
    * chromium/platform/WebCommon.h: Copied from Source/WebKit/chromium/public/platform/WebCommon.h.
    * chromium/platform/WebMimeRegistry.h: Copied from Source/WebKit/chromium/public/platform/WebMimeRegistry.h.
    (WebKit::WebMimeRegistry::~WebMimeRegistry):
    * chromium/platform/WebString.h: Copied from Source/WebKit/chromium/public/platform/WebString.h.
    (WebKit::WebString::~WebString):
    (WebKit::WebString::WebString):
    (WebKit::WebString::operator=):
    (WebKit::WebString::isEmpty):
    (WebKit::WebString::isNull):
    (WebKit::WebString::operator string16):
    (WebKit::WebString::operator NullableString16):
    (WebKit::WebString::fromUTF8):
    (WebKit::operator==):
    (WebKit::operator!=):
    * chromium/src/WebCString.cpp: Renamed from Source/WebKit/chromium/src/WebCString.cpp.
    (WebKit::WebCString::compare):
    (WebKit::WebCString::reset):
    (WebKit::WebCString::assign):
    (WebKit::WebCString::length):
    (WebKit::WebCString::data):
    (WebKit::WebCString::utf16):
    (WebKit::WebCString::fromUTF16):
    (WebKit::WebCString::WebCString):
    (WebKit::WebCString::operator=):
    (WebKit::WebCString::operator WTF::CString):
    * chromium/src/WebString.cpp: Renamed from Source/WebKit/chromium/src/WebString.cpp.
    (WebKit::WebString::reset):
    (WebKit::WebString::assign):
    (WebKit::WebString::length):
    (WebKit::WebString::data):
    (WebKit::WebString::utf8):
    (WebKit::WebString::fromUTF8):
    (WebKit::WebString::equals):
    (WebKit::WebString::WebString):
    (WebKit::WebString::operator=):
    (WebKit::WebString::operator WTF::String):
    (WebKit::WebString::operator WTF::AtomicString):
    
    Source/WebKit/chromium:
    
    public/platform/WebMimeRegistry.h is a temporary forwarding header to ease the transition. Once downstream
    callers are updated to the new location this header can be removed.
    
    WebString, WebCString, and WebCommon.h will remain in place as forwarding headers for users of the WebKit client
    API.
    
    * WebKit.gyp:
    * public/platform/WebCString.h:
    * public/platform/WebCommon.h:
    * public/platform/WebMimeRegistry.h:
    * public/platform/WebString.h:
    
    Tools:
    
    Teaches the WEBKIT_EXPORT check about the chromium WebKit platform API header location.
    
    * Scripts/webkitpy/style/checkers/cpp.py:
    (check_function_definition):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104048 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a5d23a13
.gitignore 5.59 KB