Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: Source/WTF/wtf/Platform.h

Issue 13687007: Remove PLATFORM(BLACKBERRY) support. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved.
3 * Copyright (C) 2007-2009 Torch Mobile, Inc. 3 * Copyright (C) 2007-2009 Torch Mobile, Inc.
4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. 4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 #define WTF_OS_UNIX 1 431 #define WTF_OS_UNIX 1
432 #endif 432 #endif
433 433
434 /* Operating environments */ 434 /* Operating environments */
435 435
436 /* FIXME: these are all mixes of OS, operating environment and policy choices. * / 436 /* FIXME: these are all mixes of OS, operating environment and policy choices. * /
437 /* PLATFORM(CHROMIUM) */ 437 /* PLATFORM(CHROMIUM) */
438 /* PLATFORM(QT) */ 438 /* PLATFORM(QT) */
439 /* PLATFORM(WX) */ 439 /* PLATFORM(WX) */
440 /* PLATFORM(GTK) */ 440 /* PLATFORM(GTK) */
441 /* PLATFORM(BLACKBERRY) */
442 /* PLATFORM(MAC) */ 441 /* PLATFORM(MAC) */
443 /* PLATFORM(WIN) */ 442 /* PLATFORM(WIN) */
444 #if defined(BUILDING_CHROMIUM__) 443 #if defined(BUILDING_CHROMIUM__)
445 #define WTF_PLATFORM_CHROMIUM 1 444 #define WTF_PLATFORM_CHROMIUM 1
446 #elif defined(BUILDING_QT__) 445 #elif defined(BUILDING_QT__)
447 #define WTF_PLATFORM_QT 1 446 #define WTF_PLATFORM_QT 1
448 #elif defined(BUILDING_WX__) 447 #elif defined(BUILDING_WX__)
449 #define WTF_PLATFORM_WX 1 448 #define WTF_PLATFORM_WX 1
450 #elif defined(BUILDING_GTK__) 449 #elif defined(BUILDING_GTK__)
451 #define WTF_PLATFORM_GTK 1 450 #define WTF_PLATFORM_GTK 1
452 #elif defined(BUILDING_BLACKBERRY__)
453 #define WTF_PLATFORM_BLACKBERRY 1
454 #elif OS(DARWIN) 451 #elif OS(DARWIN)
455 #define WTF_PLATFORM_MAC 1 452 #define WTF_PLATFORM_MAC 1
456 #elif OS(WINDOWS) 453 #elif OS(WINDOWS)
457 #define WTF_PLATFORM_WIN 1 454 #define WTF_PLATFORM_WIN 1
458 #endif 455 #endif
459 456
460 /* PLATFORM(IOS) */ 457 /* PLATFORM(IOS) */
461 /* FIXME: this is sometimes used as an OS switch and sometimes for higher-level things */ 458 /* FIXME: this is sometimes used as an OS switch and sometimes for higher-level things */
462 #if (defined(TARGET_OS_EMBEDDED) && TARGET_OS_EMBEDDED) || (defined(TARGET_OS_IP HONE) && TARGET_OS_IPHONE) 459 #if (defined(TARGET_OS_EMBEDDED) && TARGET_OS_EMBEDDED) || (defined(TARGET_OS_IP HONE) && TARGET_OS_IPHONE)
463 #define WTF_PLATFORM_IOS 1 460 #define WTF_PLATFORM_IOS 1
(...skipping 26 matching lines...) Expand all
490 #define WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION 1 487 #define WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION 1
491 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_DITHERING 1 488 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_DITHERING 1
492 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING 1 489 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING 1
493 #else 490 #else
494 #define WTF_USE_SKIA 1 491 #define WTF_USE_SKIA 1
495 #define WTF_USE_ICCJPEG 1 492 #define WTF_USE_ICCJPEG 1
496 #define WTF_USE_QCMSLIB 1 493 #define WTF_USE_QCMSLIB 1
497 #endif 494 #endif
498 #endif 495 #endif
499 496
500 #if PLATFORM(BLACKBERRY)
501 #define WTF_USE_SKIA 1
502 #define WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION 1
503 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_DITHERING 1
504 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING 1
505 #endif
506
507 /* On Windows, use QueryPerformanceCounter by default */ 497 /* On Windows, use QueryPerformanceCounter by default */
508 #if OS(WINDOWS) 498 #if OS(WINDOWS)
509 #define WTF_USE_QUERY_PERFORMANCE_COUNTER 1 499 #define WTF_USE_QUERY_PERFORMANCE_COUNTER 1
510 #endif 500 #endif
511 501
512 #if OS(WINCE) && !PLATFORM(QT) 502 #if OS(WINCE) && !PLATFORM(QT)
513 #define NOSHLWAPI /* shlwapi.h not available on WinCe */ 503 #define NOSHLWAPI /* shlwapi.h not available on WinCe */
514 504
515 /* MSDN documentation says these functions are provided with uspce.lib. But we cannot find this file. */ 505 /* MSDN documentation says these functions are provided with uspce.lib. But we cannot find this file. */
516 #define __usp10__ /* disable "usp10.h" */ 506 #define __usp10__ /* disable "usp10.h" */
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 && (CPU(X86) || CPU(X86_64) || CPU(ARM_THUMB2) || CPU(ARM_TRADITIONAL) || CP U(MIPS)) 772 && (CPU(X86) || CPU(X86_64) || CPU(ARM_THUMB2) || CPU(ARM_TRADITIONAL) || CP U(MIPS))
783 #define ENABLE_LLINT 1 773 #define ENABLE_LLINT 1
784 #endif 774 #endif
785 775
786 #if !defined(ENABLE_DFG_JIT) && ENABLE(JIT) && !COMPILER(MSVC) 776 #if !defined(ENABLE_DFG_JIT) && ENABLE(JIT) && !COMPILER(MSVC)
787 /* Enable the DFG JIT on X86 and X86_64. Only tested on Mac and GNU/Linux. */ 777 /* Enable the DFG JIT on X86 and X86_64. Only tested on Mac and GNU/Linux. */
788 #if (CPU(X86) || CPU(X86_64)) && (OS(DARWIN) || OS(LINUX)) 778 #if (CPU(X86) || CPU(X86_64)) && (OS(DARWIN) || OS(LINUX))
789 #define ENABLE_DFG_JIT 1 779 #define ENABLE_DFG_JIT 1
790 #endif 780 #endif
791 /* Enable the DFG JIT on ARMv7. Only tested on iOS and Qt Linux. */ 781 /* Enable the DFG JIT on ARMv7. Only tested on iOS and Qt Linux. */
792 #if CPU(ARM_THUMB2) && (PLATFORM(IOS) || PLATFORM(BLACKBERRY) || PLATFORM(QT)) 782 #if CPU(ARM_THUMB2) && (PLATFORM(IOS) || PLATFORM(QT))
793 #define ENABLE_DFG_JIT 1 783 #define ENABLE_DFG_JIT 1
794 #endif 784 #endif
795 /* Enable the DFG JIT on ARM. */ 785 /* Enable the DFG JIT on ARM. */
796 #if CPU(ARM_TRADITIONAL) 786 #if CPU(ARM_TRADITIONAL)
797 #define ENABLE_DFG_JIT 1 787 #define ENABLE_DFG_JIT 1
798 #endif 788 #endif
799 /* Enable the DFG JIT on MIPS. */ 789 /* Enable the DFG JIT on MIPS. */
800 #if CPU(MIPS) 790 #if CPU(MIPS)
801 #define ENABLE_DFG_JIT 1 791 #define ENABLE_DFG_JIT 1
802 #endif 792 #endif
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 #if (PLATFORM(QT) && !OS(DARWIN) && !OS(WINDOWS)) || PLATFORM(GTK) 975 #if (PLATFORM(QT) && !OS(DARWIN) && !OS(WINDOWS)) || PLATFORM(GTK)
986 #define WTF_USE_UNIX_DOMAIN_SOCKETS 1 976 #define WTF_USE_UNIX_DOMAIN_SOCKETS 1
987 #endif 977 #endif
988 978
989 #if !defined(ENABLE_COMPARE_AND_SWAP) && (OS(WINDOWS) || (COMPILER(GCC) && (CPU( X86) || CPU(X86_64) || CPU(ARM_THUMB2)))) 979 #if !defined(ENABLE_COMPARE_AND_SWAP) && (OS(WINDOWS) || (COMPILER(GCC) && (CPU( X86) || CPU(X86_64) || CPU(ARM_THUMB2))))
990 #define ENABLE_COMPARE_AND_SWAP 1 980 #define ENABLE_COMPARE_AND_SWAP 1
991 #endif 981 #endif
992 982
993 #define ENABLE_OBJECT_MARK_LOGGING 0 983 #define ENABLE_OBJECT_MARK_LOGGING 0
994 984
995 #if !defined(ENABLE_PARALLEL_GC) && !ENABLE(OBJECT_MARK_LOGGING) && (PLATFORM(MA C) || PLATFORM(IOS) || PLATFORM(BLACKBERRY) || PLATFORM(GTK)) && ENABLE(COMPARE_ AND_SWAP) 985 #if !defined(ENABLE_PARALLEL_GC) && !ENABLE(OBJECT_MARK_LOGGING) && (PLATFORM(MA C) || PLATFORM(IOS) || PLATFORM(GTK)) && ENABLE(COMPARE_AND_SWAP)
996 #define ENABLE_PARALLEL_GC 1 986 #define ENABLE_PARALLEL_GC 1
997 #elif PLATFORM(QT) 987 #elif PLATFORM(QT)
998 // Parallel GC is temporarily disabled on Qt because of regular crashes, see htt ps://bugs.webkit.org/show_bug.cgi?id=90957 for details 988 // Parallel GC is temporarily disabled on Qt because of regular crashes, see htt ps://bugs.webkit.org/show_bug.cgi?id=90957 for details
999 #define ENABLE_PARALLEL_GC 0 989 #define ENABLE_PARALLEL_GC 0
1000 #endif 990 #endif
1001 991
1002 #if !defined(ENABLE_GC_VALIDATION) && !defined(NDEBUG) 992 #if !defined(ENABLE_GC_VALIDATION) && !defined(NDEBUG)
1003 #define ENABLE_GC_VALIDATION 1 993 #define ENABLE_GC_VALIDATION 1
1004 #endif 994 #endif
1005 995
1006 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 996 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
1007 #define WTF_USE_AVFOUNDATION 1 997 #define WTF_USE_AVFOUNDATION 1
1008 #endif 998 #endif
1009 999
1010 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000) || (PLATFORM(MA C) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080) 1000 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000) || (PLATFORM(MA C) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080)
1011 #define WTF_USE_COREMEDIA 1 1001 #define WTF_USE_COREMEDIA 1
1012 #endif 1002 #endif
1013 1003
1014 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 1004 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
1015 #define HAVE_AVFOUNDATION_TEXT_TRACK_SUPPORT 1 1005 #define HAVE_AVFOUNDATION_TEXT_TRACK_SUPPORT 1
1016 #endif 1006 #endif
1017 1007
1018 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 1008 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
1019 #define HAVE_MEDIA_ACCESSIBILITY_FRAMEWORK 1 1009 #define HAVE_MEDIA_ACCESSIBILITY_FRAMEWORK 1
1020 #endif 1010 #endif
1021 1011
1022 #if PLATFORM(MAC) || PLATFORM(GTK) || (PLATFORM(WIN) && !OS(WINCE)) || PLATFORM( BLACKBERRY) 1012 #if PLATFORM(MAC) || PLATFORM(GTK) || (PLATFORM(WIN) && !OS(WINCE))
1023 #define WTF_USE_REQUEST_ANIMATION_FRAME_TIMER 1 1013 #define WTF_USE_REQUEST_ANIMATION_FRAME_TIMER 1
1024 #endif 1014 #endif
1025 1015
1026 #if PLATFORM(MAC) || PLATFORM(BLACKBERRY) 1016 #if PLATFORM(MAC)
1027 #define WTF_USE_REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR 1 1017 #define WTF_USE_REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR 1
1028 #endif 1018 #endif
1029 1019
1030 #if PLATFORM(MAC) && (PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070) 1020 #if PLATFORM(MAC) && (PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070)
1031 #define HAVE_INVERTED_WHEEL_EVENTS 1 1021 #define HAVE_INVERTED_WHEEL_EVENTS 1
1032 #endif 1022 #endif
1033 1023
1034 #if PLATFORM(MAC) 1024 #if PLATFORM(MAC)
1035 #define WTF_USE_COREAUDIO 1 1025 #define WTF_USE_COREAUDIO 1
1036 #endif 1026 #endif
(...skipping 12 matching lines...) Expand all
1049 #endif 1039 #endif
1050 1040
1051 #if PLATFORM(QT) 1041 #if PLATFORM(QT)
1052 #include <qglobal.h> 1042 #include <qglobal.h>
1053 #if defined(QT_OPENGL_ES_2) && !defined(WTF_USE_OPENGL_ES_2) 1043 #if defined(QT_OPENGL_ES_2) && !defined(WTF_USE_OPENGL_ES_2)
1054 #define WTF_USE_OPENGL_ES_2 1 1044 #define WTF_USE_OPENGL_ES_2 1
1055 #endif 1045 #endif
1056 #endif 1046 #endif
1057 1047
1058 #endif /* WTF_Platform_h */ 1048 #endif /* WTF_Platform_h */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698