Skip to content
  • simon.fraser@apple.com's avatar
    Add APIObjects for Size, Point, Rect · 5520f1ee
    simon.fraser@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=68644
    
    Reviewed by Sam Weinig.
    
    Make APIObjects for size, point and rect so that they can be
    used in WKArrayRefs.
    
    Make some inline helper methods to create WKSize, WKPoint and WKRect
    types.
    
    * GNUmakefile.am:
    * Shared/API/c/WKBase.h:
    * Shared/API/c/WKGeometry.cpp: Copied from Source/WebKit2/Shared/API/c/WKGeometry.h.
    (WKSizeGetTypeID):
    (WKPointGetTypeID):
    (WKRectGetTypeID):
    (WKPointCreate):
    (WKSizeCreate):
    (WKRectCreate):
    (WKSizeGetValue):
    (WKPointGetValue):
    (WKRectGetValue):
    * Shared/API/c/WKGeometry.h:
    (WKPoint::WKPointMake):
    (WKPoint::WKSizeMake):
    (WKPoint::WKRectMake):
    * Shared/API/c/WKSharedAPICast.h:
    * Shared/APIObject.h:
    * Shared/UserMessageCoders.h:
    (WebKit::UserMessageEncoder::baseEncode):
    (WebKit::UserMessageDecoder::baseDecode):
    * Shared/WebGeometry.h: Added.
    (WebKit::WebSize::create):
    (WebKit::WebSize::size):
    (WebKit::WebSize::WebSize):
    (WebKit::WebSize::type):
    (WebKit::WebPoint::create):
    (WebKit::WebPoint::point):
    (WebKit::WebPoint::WebPoint):
    (WebKit::WebPoint::type):
    (WebKit::WebRect::create):
    (WebKit::WebRect::rect):
    (WebKit::WebRect::WebRect):
    (WebKit::WebRect::type):
    * WebKit2.pro:
    * WebKit2.xcodeproj/project.pbxproj:
    * WebKit2API.pri:
    * win/WebKit2.vcproj:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    5520f1ee