| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "core/page/NavigatorBase.h" | 28 #include "core/page/NavigatorBase.h" |
| 29 | 29 |
| 30 #include "wtf/text/WTFString.h" | 30 #include "wtf/text/WTFString.h" |
| 31 | 31 |
| 32 #ifndef WEBCORE_NAVIGATOR_PRODUCT | 32 #ifndef WEBCORE_NAVIGATOR_PRODUCT |
| 33 #define WEBCORE_NAVIGATOR_PRODUCT "Gecko" | 33 #define WEBCORE_NAVIGATOR_PRODUCT "Gecko" |
| 34 #endif // ifndef WEBCORE_NAVIGATOR_PRODUCT | 34 #endif // ifndef WEBCORE_NAVIGATOR_PRODUCT |
| 35 | 35 |
| 36 #ifndef WEBCORE_NAVIGATOR_PRODUCT_SUB | |
| 37 #define WEBCORE_NAVIGATOR_PRODUCT_SUB "20030107" | |
| 38 #endif // ifndef WEBCORE_NAVIGATOR_PRODUCT_SUB | |
| 39 | |
| 40 #ifndef WEBCORE_NAVIGATOR_VENDOR | |
| 41 #define WEBCORE_NAVIGATOR_VENDOR "Apple Computer, Inc." | |
| 42 #endif // ifndef WEBCORE_NAVIGATOR_VENDOR | |
| 43 | |
| 44 #ifndef WEBCORE_NAVIGATOR_VENDOR_SUB | |
| 45 #define WEBCORE_NAVIGATOR_VENDOR_SUB "" | |
| 46 #endif // ifndef WEBCORE_NAVIGATOR_VENDOR_SUB | |
| 47 | |
| 48 | |
| 49 namespace WebCore { | 36 namespace WebCore { |
| 50 | 37 |
| 51 NavigatorBase::~NavigatorBase() | 38 NavigatorBase::~NavigatorBase() |
| 52 { | 39 { |
| 53 } | 40 } |
| 54 | 41 |
| 55 String NavigatorBase::appCodeName() const | 42 String NavigatorBase::appCodeName() const |
| 56 { | 43 { |
| 57 return "Mozilla"; | 44 return "Mozilla"; |
| 58 } | 45 } |
| 59 | 46 |
| 60 String NavigatorBase::product() const | 47 String NavigatorBase::product() const |
| 61 { | 48 { |
| 62 return WEBCORE_NAVIGATOR_PRODUCT; | 49 return WEBCORE_NAVIGATOR_PRODUCT; |
| 63 } | 50 } |
| 64 | 51 |
| 65 String NavigatorBase::productSub() const | |
| 66 { | |
| 67 return WEBCORE_NAVIGATOR_PRODUCT_SUB; | |
| 68 } | |
| 69 | |
| 70 String NavigatorBase::vendor() const | |
| 71 { | |
| 72 return WEBCORE_NAVIGATOR_VENDOR; | |
| 73 } | |
| 74 | |
| 75 String NavigatorBase::vendorSub() const | |
| 76 { | |
| 77 return WEBCORE_NAVIGATOR_VENDOR_SUB; | |
| 78 } | |
| 79 | |
| 80 } // namespace WebCore | 52 } // namespace WebCore |
| OLD | NEW |