| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include <wtf/StdLibExtras.h> | 35 #include <wtf/StdLibExtras.h> |
| 36 #endif | 36 #endif |
| 37 | 37 |
| 38 #ifndef WEBCORE_NAVIGATOR_PLATFORM | 38 #ifndef WEBCORE_NAVIGATOR_PLATFORM |
| 39 #if OS(MAC_OS_X) && (CPU(PPC) || CPU(PPC64)) | 39 #if OS(MAC_OS_X) && (CPU(PPC) || CPU(PPC64)) |
| 40 #define WEBCORE_NAVIGATOR_PLATFORM "MacPPC" | 40 #define WEBCORE_NAVIGATOR_PLATFORM "MacPPC" |
| 41 #elif OS(MAC_OS_X) && (CPU(X86) || CPU(X86_64)) | 41 #elif OS(MAC_OS_X) && (CPU(X86) || CPU(X86_64)) |
| 42 #define WEBCORE_NAVIGATOR_PLATFORM "MacIntel" | 42 #define WEBCORE_NAVIGATOR_PLATFORM "MacIntel" |
| 43 #elif OS(WINDOWS) | 43 #elif OS(WINDOWS) |
| 44 #define WEBCORE_NAVIGATOR_PLATFORM "Win32" | 44 #define WEBCORE_NAVIGATOR_PLATFORM "Win32" |
| 45 #elif PLATFORM(BLACKBERRY) | |
| 46 #define WEBCORE_NAVIGATOR_PLATFORM "BlackBerry" | |
| 47 #else | 45 #else |
| 48 #define WEBCORE_NAVIGATOR_PLATFORM "" | 46 #define WEBCORE_NAVIGATOR_PLATFORM "" |
| 49 #endif | 47 #endif |
| 50 #endif // ifndef WEBCORE_NAVIGATOR_PLATFORM | 48 #endif // ifndef WEBCORE_NAVIGATOR_PLATFORM |
| 51 | 49 |
| 52 #ifndef WEBCORE_NAVIGATOR_PRODUCT | 50 #ifndef WEBCORE_NAVIGATOR_PRODUCT |
| 53 #define WEBCORE_NAVIGATOR_PRODUCT "Gecko" | 51 #define WEBCORE_NAVIGATOR_PRODUCT "Gecko" |
| 54 #endif // ifndef WEBCORE_NAVIGATOR_PRODUCT | 52 #endif // ifndef WEBCORE_NAVIGATOR_PRODUCT |
| 55 | 53 |
| 56 #ifndef WEBCORE_NAVIGATOR_PRODUCT_SUB | 54 #ifndef WEBCORE_NAVIGATOR_PRODUCT_SUB |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 { | 119 { |
| 122 return WEBCORE_NAVIGATOR_VENDOR_SUB; | 120 return WEBCORE_NAVIGATOR_VENDOR_SUB; |
| 123 } | 121 } |
| 124 | 122 |
| 125 bool NavigatorBase::onLine() const | 123 bool NavigatorBase::onLine() const |
| 126 { | 124 { |
| 127 return networkStateNotifier().onLine(); | 125 return networkStateNotifier().onLine(); |
| 128 } | 126 } |
| 129 | 127 |
| 130 } // namespace WebCore | 128 } // namespace WebCore |
| OLD | NEW |