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

Side by Side Diff: Source/core/page/NavigatorBase.cpp

Issue 22929011: Move productSub/vendor/vendorSub to Navigator class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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
« no previous file with comments | « Source/core/page/NavigatorBase.h ('k') | Source/core/page/UseCounter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/page/NavigatorBase.h ('k') | Source/core/page/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698