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

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

Issue 13529026: Removing a bunch of unused platform code. (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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 || OS(QNX) \ 426 || OS(QNX) \
427 || OS(SOLARIS) \ 427 || OS(SOLARIS) \
428 || defined(unix) \ 428 || defined(unix) \
429 || defined(__unix) \ 429 || defined(__unix) \
430 || defined(__unix__) 430 || defined(__unix__)
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: This should go away since we're only building chromium now */
437 /* PLATFORM(CHROMIUM) */
438 /* PLATFORM(QT) */
439 /* PLATFORM(WX) */
440 /* PLATFORM(GTK) */
441 /* PLATFORM(BLACKBERRY) */
442 /* PLATFORM(MAC) */
443 /* PLATFORM(WIN) */
444 #if defined(BUILDING_CHROMIUM__)
445 #define WTF_PLATFORM_CHROMIUM 1 437 #define WTF_PLATFORM_CHROMIUM 1
446 #elif defined(BUILDING_QT__)
447 #define WTF_PLATFORM_QT 1
448 #elif defined(BUILDING_WX__)
449 #define WTF_PLATFORM_WX 1
450 #elif defined(BUILDING_GTK__)
451 #define WTF_PLATFORM_GTK 1
452 #elif defined(BUILDING_BLACKBERRY__)
453 #define WTF_PLATFORM_BLACKBERRY 1
454 #elif OS(DARWIN)
455 #define WTF_PLATFORM_MAC 1
456 #elif OS(WINDOWS)
457 #define WTF_PLATFORM_WIN 1
458 #endif
459 438
460 /* PLATFORM(IOS) */ 439 /* PLATFORM(IOS) */
461 /* FIXME: this is sometimes used as an OS switch and sometimes for higher-level things */ 440 /* 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) 441 #if (defined(TARGET_OS_EMBEDDED) && TARGET_OS_EMBEDDED) || (defined(TARGET_OS_IP HONE) && TARGET_OS_IPHONE)
463 #define WTF_PLATFORM_IOS 1 442 #define WTF_PLATFORM_IOS 1
464 #endif 443 #endif
465 444
466 /* PLATFORM(IOS_SIMULATOR) */ 445 /* PLATFORM(IOS_SIMULATOR) */
467 #if defined(TARGET_IPHONE_SIMULATOR) && TARGET_IPHONE_SIMULATOR 446 #if defined(TARGET_IPHONE_SIMULATOR) && TARGET_IPHONE_SIMULATOR
468 #define WTF_PLATFORM_IOS 1 447 #define WTF_PLATFORM_IOS 1
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 #if defined(QT_OPENGL_ES_2) && !defined(WTF_USE_OPENGL_ES_2) 1038 #if defined(QT_OPENGL_ES_2) && !defined(WTF_USE_OPENGL_ES_2)
1060 #define WTF_USE_OPENGL_ES_2 1 1039 #define WTF_USE_OPENGL_ES_2 1
1061 #endif 1040 #endif
1062 #endif 1041 #endif
1063 1042
1064 #if !PLATFORM(IOS) && PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 1043 #if !PLATFORM(IOS) && PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
1065 #define WTF_USE_CONTENT_FILTERING 1 1044 #define WTF_USE_CONTENT_FILTERING 1
1066 #endif 1045 #endif
1067 1046
1068 #endif /* WTF_Platform_h */ 1047 #endif /* WTF_Platform_h */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698