Changeset 161680 in webkit
- Timestamp:
- Jan 10, 2014, 2:48:57 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r161678 r161680 1 2014-01-10 Benjamin Poulain <bpoulain@apple.com> 2 3 Remove the BlackBerry port from trunk 4 https://bugs.webkit.org/show_bug.cgi?id=126715 5 6 Reviewed by Anders Carlsson. 7 8 * platform/MIMETypeRegistry.cpp: 9 (WebCore::initializeSupportedImageMIMETypesForEncoding): 10 * platform/PlatformKeyboardEvent.h: 11 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): 12 * platform/PlatformMouseEvent.h: 13 * platform/PlatformTouchEvent.h: 14 (WebCore::PlatformTouchEvent::PlatformTouchEvent): 15 * platform/PlatformTouchPoint.h: 16 * platform/ScrollAnimatorNone.cpp: 17 (WebCore::ScrollAnimator::create): 18 * platform/URL.cpp: 19 (WebCore::URL::parse): 20 (WebCore::portAllowed): 21 * platform/Widget.h: 22 * platform/graphics/ANGLEWebKitBridge.h: 23 * platform/graphics/DisplayRefreshMonitor.cpp: 24 (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor): 25 * platform/graphics/DisplayRefreshMonitor.h: 26 * platform/graphics/FloatPoint.h: 27 * platform/graphics/FloatRect.h: 28 * platform/graphics/FloatSize.h: 29 * platform/graphics/FontCache.h: 30 * platform/graphics/FontPlatformData.h: 31 * platform/graphics/GlyphBuffer.h: 32 * platform/graphics/Gradient.cpp: 33 * platform/graphics/Gradient.h: 34 * platform/graphics/GraphicsContext.h: 35 * platform/graphics/GraphicsContext3D.h: 36 1 37 2014-01-10 Timothy Hatcher <timothy@apple.com> 2 38 -
trunk/Source/WebCore/platform/MIMETypeRegistry.cpp
r161589 r161680 311 311 #elif USE(CAIRO) 312 312 supportedImageMIMETypesForEncoding->add("image/png"); 313 #elif PLATFORM(BLACKBERRY)314 supportedImageMIMETypesForEncoding->add("image/png");315 supportedImageMIMETypesForEncoding->add("image/jpeg");316 313 #endif 317 314 } … … 687 684 } 688 685 689 #if ! PLATFORM(BLACKBERRY) && !USE(CURL)686 #if !USE(CURL) 690 687 String MIMETypeRegistry::getNormalizedMIMEType(const String& mimeType) 691 688 { … … 694 691 #endif 695 692 696 #if PLATFORM(BLACKBERRY) ||USE(CURL)693 #if USE(CURL) 697 694 typedef HashMap<String, String> MIMETypeAssociationMap; 698 695 -
trunk/Source/WebCore/platform/PlatformKeyboardEvent.h
r161589 r161680 50 50 #endif 51 51 52 #if PLATFORM(BLACKBERRY)53 namespace BlackBerry {54 namespace Platform {55 class KeyboardEvent;56 }57 }58 #endif59 60 52 #if PLATFORM(EFL) 61 53 typedef struct _Evas_Event_Key_Down Evas_Event_Key_Down; … … 76 68 , m_isKeypad(false) 77 69 , m_isSystemKey(false) 78 #if PLATFORM(BLACKBERRY)79 , m_unmodifiedCharacter(0)80 #endif81 70 #if PLATFORM(GTK) 82 71 , m_gdkEventKey(0) … … 131 120 static void getCurrentModifierState(bool& shiftKey, bool& ctrlKey, bool& altKey, bool& metaKey); 132 121 133 #if PLATFORM(BLACKBERRY)134 unsigned unmodifiedCharacter() const { return m_unmodifiedCharacter; }135 #endif136 137 122 #if PLATFORM(MAC) 138 123 #if !PLATFORM(IOS) … … 158 143 #endif 159 144 160 #if PLATFORM(BLACKBERRY)161 PlatformKeyboardEvent(const BlackBerry::Platform::KeyboardEvent&);162 #endif163 164 145 #if PLATFORM(EFL) 165 146 explicit PlatformKeyboardEvent(const Evas_Event_Key_Down*); … … 177 158 bool m_isKeypad; 178 159 bool m_isSystemKey; 179 180 #if PLATFORM(BLACKBERRY)181 unsigned m_unmodifiedCharacter;182 #endif183 160 184 161 #if PLATFORM(MAC) -
trunk/Source/WebCore/platform/PlatformMouseEvent.h
r161589 r161680 47 47 enum MouseButton { NoButton = -1, LeftButton, MiddleButton, RightButton }; 48 48 49 #if PLATFORM(BLACKBERRY)50 enum MouseInputMethod { PointingDevice, TouchScreen };51 #endif52 53 49 class PlatformMouseEvent : public PlatformEvent { 54 50 public: … … 116 112 #endif 117 113 118 #if PLATFORM(BLACKBERRY)119 PlatformMouseEvent(const IntPoint& eventPosition, const IntPoint& globalPosition, const PlatformEvent::Type, int clickCount, MouseButton, bool shiftKey, bool ctrlKey, bool altKey, MouseInputMethod = PointingDevice);120 MouseInputMethod inputMethod() const { return m_inputMethod; }121 #endif122 114 protected: 123 115 IntPoint m_position; … … 134 126 #elif PLATFORM(WIN) 135 127 bool m_didActivateWebView; 136 #elif PLATFORM(BLACKBERRY)137 MouseInputMethod m_inputMethod;138 128 #endif 139 129 }; -
trunk/Source/WebCore/platform/PlatformTouchEvent.h
r156795 r161680 27 27 #if ENABLE(TOUCH_EVENTS) 28 28 29 #if PLATFORM(BLACKBERRY)30 namespace BlackBerry {31 namespace Platform {32 class TouchEvent;33 };34 };35 #endif36 37 29 namespace WebCore { 38 30 … … 42 34 PlatformTouchEvent() 43 35 : PlatformEvent(PlatformEvent::TouchStart) 44 #if PLATFORM(BLACKBERRY)45 , m_rotation(0)46 , m_scale(1)47 , m_doubleTap(false)48 , m_touchHold(false)49 #endif50 36 { 51 37 } 52 38 53 #if PLATFORM(BLACKBERRY)54 explicit PlatformTouchEvent(BlackBerry::Platform::TouchEvent*);55 #endif56 57 39 const Vector<PlatformTouchPoint>& touchPoints() const { return m_touchPoints; } 58 59 #if PLATFORM(BLACKBERRY)60 float rotation() const { return m_rotation; }61 float scale() const { return m_scale; }62 bool doubleTap() const { return m_doubleTap; }63 bool touchHold() const { return m_touchHold; }64 #endif65 40 66 41 protected: 67 42 Vector<PlatformTouchPoint> m_touchPoints; 68 #if PLATFORM(BLACKBERRY)69 float m_rotation;70 float m_scale;71 bool m_doubleTap;72 bool m_touchHold;73 #endif74 43 }; 75 44 -
trunk/Source/WebCore/platform/PlatformTouchPoint.h
r156795 r161680 26 26 #if ENABLE(TOUCH_EVENTS) 27 27 28 #if PLATFORM(BLACKBERRY)29 namespace BlackBerry {30 namespace Platform {31 class TouchPoint;32 };33 };34 #endif35 36 28 namespace WebCore { 37 29 … … 58 50 { 59 51 } 60 61 #if PLATFORM(BLACKBERRY)62 PlatformTouchPoint(const BlackBerry::Platform::TouchPoint&);63 #endif64 52 65 53 unsigned id() const { return m_id; } -
trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp
r157428 r161680 52 52 const double kZoomTicks = 11; 53 53 54 #if !(PLATFORM(BLACKBERRY))55 54 PassOwnPtr<ScrollAnimator> ScrollAnimator::create(ScrollableArea* scrollableArea) 56 55 { … … 59 58 return adoptPtr(new ScrollAnimator(scrollableArea)); 60 59 } 61 #endif62 60 63 61 ScrollAnimatorNone::Parameters::Parameters() -
trunk/Source/WebCore/platform/URL.cpp
r161589 r161680 1129 1129 && isLetterMatchIgnoringCase(url[3], 'e'); 1130 1130 1131 #if PLATFORM(BLACKBERRY)1132 // Parse local: urls the same as file: urls.1133 if (!isFile)1134 isFile = schemeEnd == 51135 && isLetterMatchIgnoringCase(url[0], 'l')1136 && isLetterMatchIgnoringCase(url[1], 'o')1137 && isLetterMatchIgnoringCase(url[2], 'c')1138 && isLetterMatchIgnoringCase(url[3], 'a')1139 && isLetterMatchIgnoringCase(url[4], 'l');1140 #endif1141 1142 1131 m_protocolIsInHTTPFamily = isLetterMatchIgnoringCase(url[0], 'h') 1143 1132 && isLetterMatchIgnoringCase(url[1], 't') … … 1916 1905 return true; 1917 1906 1918 #if PLATFORM(BLACKBERRY)1919 if (url.protocolIs("local"))1920 return true;1921 #endif1922 1923 1907 return false; 1924 1908 } -
trunk/Source/WebCore/platform/Widget.h
r161589 r161680 60 60 #endif 61 61 62 #if PLATFORM( BLACKBERRY) || PLATFORM(NIX)62 #if PLATFORM(NIX) 63 63 typedef void* PlatformWidget; 64 64 #endif … … 73 73 #endif 74 74 75 #if PLATFORM(BLACKBERRY) 76 #include "PageClientBlackBerry.h" 77 typedef PageClientBlackBerry* PlatformPageClient; 78 #elif PLATFORM(EFL) 75 #if PLATFORM(EFL) 79 76 class PageClientEfl; 80 77 typedef PageClientEfl* PlatformPageClient; -
trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.h
r160223 r161680 30 30 #include <wtf/text/WTFString.h> 31 31 32 #if !PLATFORM(GTK) && !PLATFORM(EFL) && !PLATFORM( BLACKBERRY) && !PLATFORM(WIN) && !PLATFORM(NIX)32 #if !PLATFORM(GTK) && !PLATFORM(EFL) && !PLATFORM(WIN) && !PLATFORM(NIX) 33 33 #include "ANGLE/ShaderLang.h" 34 34 #elif PLATFORM(WIN) -
trunk/Source/WebCore/platform/graphics/DisplayRefreshMonitor.cpp
r157299 r161680 64 64 , m_displayLink(0) 65 65 #endif 66 #if PLATFORM(BLACKBERRY)67 , m_animationClient(0)68 #endif69 66 { 70 67 } -
trunk/Source/WebCore/platform/graphics/DisplayRefreshMonitor.h
r161589 r161680 35 35 #include <wtf/RefPtr.h> 36 36 #include <wtf/Threading.h> 37 #if PLATFORM(BLACKBERRY)38 #include <BlackBerryPlatformAnimationFrameRateController.h>39 #endif40 37 41 38 #if PLATFORM(MAC) … … 123 120 HashSet<DisplayRefreshMonitorClient*>* m_clientsToBeNotified; 124 121 125 #if PLATFORM(BLACKBERRY)126 public:127 void displayLinkFired();128 private:129 DisplayAnimationClient *m_animationClient;130 void startAnimationClient();131 void stopAnimationClient();132 #endif133 134 122 #if PLATFORM(MAC) && !PLATFORM(IOS) 135 123 public: -
trunk/Source/WebCore/platform/graphics/FloatPoint.h
r161589 r161680 32 32 #include <wtf/MathExtras.h> 33 33 34 #if PLATFORM(BLACKBERRY)35 namespace BlackBerry {36 namespace Platform {37 class FloatPoint;38 }39 }40 #endif41 42 34 #if USE(CG) 43 35 typedef struct CGPoint CGPoint; … … 147 139 #endif // !PLATFORM(IOS) 148 140 149 #if PLATFORM(BLACKBERRY)150 FloatPoint(const BlackBerry::Platform::FloatPoint&);151 operator BlackBerry::Platform::FloatPoint() const;152 #endif153 154 141 FloatPoint matrixTransform(const TransformationMatrix&) const; 155 142 FloatPoint matrixTransform(const AffineTransform&) const; -
trunk/Source/WebCore/platform/graphics/FloatRect.h
r161589 r161680 47 47 #endif // PLATFORM(MAC) && !PLATFORM(IOS) 48 48 49 #if PLATFORM(BLACKBERRY)50 namespace BlackBerry {51 namespace Platform {52 class FloatRect;53 }54 }55 #endif56 57 49 #if USE(CAIRO) 58 50 typedef struct _cairo_rectangle cairo_rectangle_t; … … 175 167 void fitToPoints(const FloatPoint& p0, const FloatPoint& p1, const FloatPoint& p2, const FloatPoint& p3); 176 168 177 #if PLATFORM(BLACKBERRY)178 FloatRect(const BlackBerry::Platform::FloatRect&);179 operator BlackBerry::Platform::FloatRect() const;180 FloatRect normalized() const;181 #endif182 183 169 #if USE(CG) 184 170 FloatRect(const CGRect&); -
trunk/Source/WebCore/platform/graphics/FloatSize.h
r161589 r161680 32 32 #include <wtf/MathExtras.h> 33 33 34 #if PLATFORM(BLACKBERRY)35 namespace BlackBerry {36 namespace Platform {37 class FloatSize;38 }39 }40 #endif41 42 34 #if PLATFORM(IOS) 43 35 #include <CoreGraphics/CoreGraphics.h> … … 117 109 } 118 110 119 #if PLATFORM(BLACKBERRY)120 FloatSize(const BlackBerry::Platform::FloatSize&);121 operator BlackBerry::Platform::FloatSize() const;122 #endif123 124 111 #if USE(CG) 125 112 explicit FloatSize(const CGSize&); // don't do this implicitly since it's lossy -
trunk/Source/WebCore/platform/graphics/FontCache.h
r161598 r161680 162 162 bool isItalic; 163 163 }; 164 #if PLATFORM(BLACKBERRY)165 static void getFontFamilyForCharacters(const UChar* characters, size_t numCharacters, const char* preferredLocale, const FontDescription&, SimpleFontFamily*);166 #else167 164 static void getFontFamilyForCharacters(const UChar* characters, size_t numCharacters, const char* preferredLocale, SimpleFontFamily*); 168 #endif169 165 170 166 private: -
trunk/Source/WebCore/platform/graphics/FontPlatformData.h
r161589 r161680 24 24 25 25 // FIXME: This is temporary until all ports switch to using this file. 26 #if PLATFORM(BLACKBERRY) 27 #include "harfbuzz/FontPlatformDataHarfBuzz.h" 28 #elif USE(WINGDI) 26 #if USE(WINGDI) 29 27 #include "wince/FontPlatformData.h" 30 28 #elif PLATFORM(EFL) || PLATFORM(GTK) || PLATFORM(NIX) -
trunk/Source/WebCore/platform/graphics/GlyphBuffer.h
r156795 r161680 52 52 #elif USE(WINGDI) 53 53 typedef wchar_t GlyphBufferGlyph; 54 #elif PLATFORM(BLACKBERRY)55 typedef unsigned GlyphBufferGlyph;56 54 #else 57 55 typedef Glyph GlyphBufferGlyph; -
trunk/Source/WebCore/platform/graphics/Gradient.cpp
r150088 r161680 171 171 } 172 172 173 #if !USE(CAIRO) && !PLATFORM(BLACKBERRY)173 #if !USE(CAIRO) 174 174 void Gradient::setPlatformGradientSpaceTransform(const AffineTransform&) 175 175 { -
trunk/Source/WebCore/platform/graphics/Gradient.h
r156795 r161680 46 46 typedef struct _cairo_pattern cairo_pattern_t; 47 47 typedef cairo_pattern_t* PlatformGradient; 48 #elif PLATFORM(BLACKBERRY)49 namespace BlackBerry {50 namespace Platform {51 namespace Graphics {52 class Gradient;53 }54 }55 }56 typedef BlackBerry::Platform::Graphics::Gradient* PlatformGradient;57 48 #else 58 49 typedef void* PlatformGradient; -
trunk/Source/WebCore/platform/graphics/GraphicsContext.h
r161589 r161680 49 49 #elif USE(WINGDI) 50 50 typedef struct HDC__ PlatformGraphicsContext; 51 #elif PLATFORM(BLACKBERRY)52 namespace BlackBerry {53 namespace Platform {54 namespace Graphics {55 class PlatformGraphicsContext;56 }57 }58 }59 using BlackBerry::Platform::Graphics::PlatformGraphicsContext;60 51 #else 61 52 typedef void PlatformGraphicsContext; -
trunk/Source/WebCore/platform/graphics/GraphicsContext3D.h
r161605 r161680 27 27 #define GraphicsContext3D_h 28 28 29 #include "ANGLEWebKitBridge.h" 29 30 #include "GraphicsTypes3D.h" 30 31 #include "Image.h" … … 48 49 // This define is from the X11 headers, but it's used below, so we must undefine it. 49 50 #undef VERSION 50 #endif51 52 #if PLATFORM(MAC) || PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(BLACKBERRY) || PLATFORM(WIN) || PLATFORM(NIX)53 #include "ANGLEWebKitBridge.h"54 51 #endif 55 52 … … 104 101 #if USE(CAIRO) 105 102 class PlatformContextCairo; 106 #elif PLATFORM(BLACKBERRY)107 class GraphicsContext;108 103 #endif 109 104 … … 503 498 bool makeContextCurrent(); 504 499 505 #if PLATFORM(MAC) || PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(BLACKBERRY) || PLATFORM(WIN) || PLATFORM(NIX)506 500 // With multisampling on, blit from multisampleFBO to regular FBO. 507 501 void prepareTexture(); 508 #endif509 502 510 503 // Equivalent to ::glTexImage2D(). Allows pixels==0 with no allocation. … … 794 787 void paintToCanvas(const unsigned char* imagePixels, int imageWidth, int imageHeight, 795 788 int canvasWidth, int canvasHeight, PlatformContextCairo* context); 796 #elif PLATFORM(BLACKBERRY) ||USE(CG)789 #elif USE(CG) 797 790 void paintToCanvas(const unsigned char* imagePixels, int imageWidth, int imageHeight, 798 791 int canvasWidth, int canvasHeight, GraphicsContext*); … … 809 802 #if PLATFORM(IOS) 810 803 void endPaint(); 811 #endif812 813 #if PLATFORM(BLACKBERRY)814 bool paintsIntoCanvasBuffer() const;815 804 #endif 816 805 … … 915 904 RetainPtr<CFDataRef> m_pixelData; 916 905 std::unique_ptr<uint8_t[]> m_formalizedRGBA8Data; 917 #elif PLATFORM(BLACKBERRY)918 Vector<unsigned> m_imageData;919 906 #endif 920 907 Image* m_image; … … 939 926 static bool packPixels(const uint8_t* sourceData, DataFormat sourceDataFormat, unsigned width, unsigned height, unsigned sourceUnpackAlignment, unsigned destinationFormat, unsigned destinationType, AlphaOp, void* destinationData, bool flipY); 940 927 941 #if PLATFORM(MAC) || PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(BLACKBERRY) || PLATFORM(WIN) || PLATFORM(NIX)942 928 // Take into account the user's requested context creation attributes, 943 929 // in particular stencil and antialias, and determine which could or … … 951 937 void readRenderingResults(unsigned char* pixels, int pixelsSize); 952 938 void readPixelsAndConvertToBGRAIfNecessary(int x, int y, int width, int height, unsigned char* pixels); 953 #endif954 939 955 940 #if PLATFORM(IOS) 956 941 bool setRenderbufferStorageFromDrawable(GC3Dsizei width, GC3Dsizei height); 957 #endif958 959 #if PLATFORM(BLACKBERRY)960 void logFrameBufferStatus(int line);961 void readPixelsIMG(GC3Dint x, GC3Dint y, GC3Dsizei width, GC3Dsizei height, GC3Denum format, GC3Denum type, void* data);962 942 #endif 963 943 … … 979 959 #elif PLATFORM(WIN) && USE(CA) 980 960 RefPtr<PlatformCALayer> m_webGLLayer; 981 #elif PLATFORM(BLACKBERRY) 982 #if USE(ACCELERATED_COMPOSITING) 983 RefPtr<PlatformLayer> m_compositingLayer; 984 #endif 985 void* m_context; 986 #endif 987 988 #if PLATFORM(MAC) || PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(BLACKBERRY) || PLATFORM(WIN) || PLATFORM(NIX) 961 #endif 962 989 963 struct SymbolInfo { 990 964 SymbolInfo() … … 1073 1047 1074 1048 OwnPtr<ShaderNameHash> nameHashMapForShaders; 1075 #endif 1076 1077 #if PLATFORM(BLACKBERRY) || ((PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) || PLATFORM(NIX)) && USE(OPENGL_ES_2)) 1049 1050 #if ((PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) || PLATFORM(NIX)) && USE(OPENGL_ES_2)) 1078 1051 friend class Extensions3DOpenGLES; 1079 1052 OwnPtr<Extensions3DOpenGLES> m_extensions; … … 1089 1062 1090 1063 GC3Duint m_texture; 1091 #if !PLATFORM(BLACKBERRY)1092 1064 GC3Duint m_compositorTexture; 1093 #endif1094 1065 GC3Duint m_fbo; 1095 1066 1096 #if !PLATFORM(BLACKBERRY)1097 1067 GC3Duint m_depthBuffer; 1098 1068 GC3Duint m_stencilBuffer; 1099 #endif1100 1069 GC3Duint m_depthStencilBuffer; 1101 1070 … … 1125 1094 ListHashSet<GC3Denum> m_syntheticErrors; 1126 1095 1127 #if PLATFORM(BLACKBERRY)1128 bool m_isImaginationHardware;1129 #endif1130 1131 #if !PLATFORM(BLACKBERRY)1132 1096 friend class GraphicsContext3DPrivate; 1133 1097 OwnPtr<GraphicsContext3DPrivate> m_private; 1134 #endif1135 1098 }; 1136 1099
Note:
See TracChangeset
for help on using the changeset viewer.