Changeset 47146 in webkit
- Timestamp:
- Aug 12, 2009 1:55:51 PM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r47145 r47146 1 2009-08-12 Maxime Simon <simon.maxime@gmail.com> 2 3 Reviewed by Eric Seidel. 4 5 [Haiku] Modifying WebCore/platform/graphics files to allow Haiku port. 6 https://bugs.webkit.org/show_bug.cgi?id=28128 7 8 * platform/graphics/BitmapImage.h: Adding getBBitmap() function. 9 * platform/graphics/Color.h: rgb_color is the Color struct in Haiku. 10 * platform/graphics/FloatPoint.h: BPoint is the Point class in Haiku. 11 * platform/graphics/FloatRect.h: BRect is the Rect class in Haiku. 12 * platform/graphics/GraphicsContext.cpp: 13 * platform/graphics/GraphicsContext.h: BView is the PlatformGraphicsContext 14 class for Haiku. Adding getHaikuStrokeStyle() function. 15 * platform/graphics/Icon.h: Adding an empty Icon() constructor because 16 this class isn't implemented for the moment. 17 * platform/graphics/ImageSource.h: BBitmap is the native bitmap class 18 for Haiku. 19 * platform/graphics/IntPoint.h: BPoint is the Point class in Haiku. 20 * platform/graphics/IntRect.h: BRect is the Rect class in Haiku. 21 * platform/graphics/IntSize.h: BSize is the Size class in Haiku. 22 * platform/graphics/Path.h: BRegion is the Path class in Haiku. 23 * platform/graphics/Pattern.h: Adding the GraphicsDef.h header and the 24 native pattern type. 25 * platform/graphics/SimpleFontData.h: Adding Haiku's Font.h header. 26 1 27 2009-08-12 Maxime Simon <simon.maxime@gmail.com> 2 28 -
trunk/WebCore/platform/graphics/BitmapImage.h
r46590 r47146 46 46 #endif 47 47 48 #if PLATFORM(HAIKU) 49 class BBitmap; 50 #endif 51 48 52 namespace WebCore { 49 53 struct FrameData; … … 162 166 #endif 163 167 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator); 168 164 169 #if PLATFORM(WX) || PLATFORM(WINCE) 165 170 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const TransformationMatrix& patternTransform, 166 171 const FloatPoint& phase, CompositeOperator, const FloatRect& destRect); 167 #endif 172 #endif 173 174 #if PLATFORM(HAIKU) 175 virtual BBitmap* getBBitmap() const; 176 #endif 177 168 178 size_t currentFrame() const { return m_currentFrame; } 169 179 size_t frameCount(); -
trunk/WebCore/platform/graphics/Color.h
r45569 r47146 46 46 #if PLATFORM(WX) 47 47 class wxColour; 48 #endif 49 50 #if PLATFORM(HAIKU) 51 struct rgb_color; 48 52 #endif 49 53 … … 122 126 #endif 123 127 128 #if PLATFORM(HAIKU) 129 Color(const rgb_color&); 130 operator rgb_color() const; 131 #endif 132 124 133 static bool parseHexColor(const String& name, RGBA32& rgb); 125 134 -
trunk/WebCore/platform/graphics/FloatPoint.h
r44656 r47146 52 52 #endif 53 53 54 #if PLATFORM(HAIKU) 55 class BPoint; 56 #endif 57 54 58 #if PLATFORM(SKIA) 55 59 struct SkPoint; … … 89 93 FloatPoint(const QPointF&); 90 94 operator QPointF() const; 95 #endif 96 97 #if PLATFORM(HAIKU) 98 FloatPoint(const BPoint&); 99 operator BPoint() const; 91 100 #endif 92 101 -
trunk/WebCore/platform/graphics/FloatRect.h
r44656 r47146 50 50 #if PLATFORM(WX) && USE(WXGC) 51 51 class wxRect2DDouble; 52 #endif 53 54 #if PLATFORM(HAIKU) 55 class BRect; 52 56 #endif 53 57 … … 139 143 #endif 140 144 145 #if PLATFORM(HAIKU) 146 FloatRect(const BRect&); 147 operator BRect() const; 148 #endif 149 141 150 #if PLATFORM(SKIA) 142 151 FloatRect(const SkRect&); -
trunk/WebCore/platform/graphics/GraphicsContext.cpp
r46590 r47146 541 541 #endif 542 542 543 #if !PLATFORM(QT) && !PLATFORM(CAIRO) && !PLATFORM(SKIA) 543 #if !PLATFORM(QT) && !PLATFORM(CAIRO) && !PLATFORM(SKIA) && !PLATFORM(HAIKU) 544 544 void GraphicsContext::setPlatformStrokeStyle(const StrokeStyle&) 545 545 { -
trunk/WebCore/platform/graphics/GraphicsContext.h
r47016 r47146 67 67 #elif PLATFORM(SKIA) 68 68 typedef class PlatformContextSkia PlatformGraphicsContext; 69 #elif PLATFORM(HAIKU) 70 class BView; 71 typedef BView PlatformGraphicsContext; 72 struct pattern; 69 73 #elif PLATFORM(WINCE) 70 74 typedef struct HDC__ PlatformGraphicsContext; … … 382 386 #endif 383 387 388 #if PLATFORM(HAIKU) 389 pattern getHaikuStrokeStyle(); 390 #endif 391 384 392 private: 385 393 void savePlatformState(); -
trunk/WebCore/platform/graphics/Icon.h
r38057 r47146 79 79 Icon(const PlatformIcon&); 80 80 PlatformIcon m_icon; 81 #elif PLATFORM(HAIKU) 82 Icon(); 81 83 #endif 82 84 }; -
trunk/WebCore/platform/graphics/ImageSource.h
r46807 r47146 48 48 #elif PLATFORM(SKIA) 49 49 class NativeImageSkia; 50 #elif PLATFORM(HAIKU) 51 class BBitmap; 50 52 #elif PLATFORM(WINCE) 51 53 #include "SharedBitmap.h" … … 82 84 typedef ImageDecoder* NativeImageSourcePtr; 83 85 typedef NativeImageSkia* NativeImagePtr; 86 #elif PLATFORM(HAIKU) 87 class ImageDecoder; 88 typedef ImageDecoder* NativeImageSourcePtr; 89 typedef BBitmap* NativeImagePtr; 84 90 #elif PLATFORM(WINCE) 85 91 class ImageDecoder; -
trunk/WebCore/platform/graphics/IntPoint.h
r45478 r47146 56 56 #elif PLATFORM(GTK) 57 57 typedef struct _GdkPoint GdkPoint; 58 #elif PLATFORM(HAIKU) 59 class BPoint; 58 60 #endif 59 61 … … 122 124 IntPoint(const GdkPoint&); 123 125 operator GdkPoint() const; 126 #elif PLATFORM(HAIKU) 127 explicit IntPoint(const BPoint&); 128 operator BPoint() const; 124 129 #endif 125 130 -
trunk/WebCore/platform/graphics/IntRect.h
r44656 r47146 50 50 #elif PLATFORM(GTK) 51 51 typedef struct _GdkRectangle GdkRectangle; 52 #elif PLATFORM(HAIKU) 53 class BRect; 52 54 #endif 53 55 … … 145 147 IntRect(const GdkRectangle&); 146 148 operator GdkRectangle() const; 149 #elif PLATFORM(HAIKU) 150 explicit IntRect(const BRect&); 151 operator BRect() const; 147 152 #endif 148 153 -
trunk/WebCore/platform/graphics/IntSize.h
r44656 r47146 48 48 class QSize; 49 49 QT_END_NAMESPACE 50 #elif PLATFORM(HAIKU) 51 class BSize; 50 52 #endif 51 53 … … 114 116 #endif 115 117 118 #if PLATFORM(HAIKU) 119 explicit IntSize(const BSize&); 120 operator BSize() const; 121 #endif 122 116 123 117 124 private: -
trunk/WebCore/platform/graphics/Path.h
r46590 r47146 50 50 class SkPath; 51 51 typedef SkPath PlatformPath; 52 #elif PLATFORM(HAIKU) 53 class BRegion; 54 typedef BRegion PlatformPath; 52 55 #elif PLATFORM(WINCE) 53 56 namespace WebCore { -
trunk/WebCore/platform/graphics/Pattern.h
r46590 r47146 54 54 typedef wxBrush* PlatformPatternPtr; 55 55 #endif // USE(WXGC) 56 #elif PLATFORM(HAIKU) 57 #include <interface/GraphicsDefs.h> 58 typedef pattern* PlatformPatternPtr; 56 59 #elif PLATFORM(WINCE) 57 60 typedef void* PlatformPatternPtr; -
trunk/WebCore/platform/graphics/SimpleFontData.h
r46388 r47146 44 44 #if PLATFORM(QT) 45 45 #include <QFont> 46 #endif 47 48 #if PLATFORM(HAIKU) 49 #include <Font.h> 46 50 #endif 47 51
Note: See TracChangeset
for help on using the changeset viewer.