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

Side by Side Diff: third_party/WebKit/Source/core/frame/Navigator.cpp

Issue 2629493004: Introduce DOMWindowClient (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/Navigator.h ('k') | no next file » | 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) 2000 Harri Porten (porten@kde.org) 2 * Copyright (C) 2000 Harri Porten (porten@kde.org)
3 * Copyright (c) 2000 Daniel Molkentin (molkentin@kde.org) 3 * Copyright (c) 2000 Daniel Molkentin (molkentin@kde.org)
4 * Copyright (c) 2000 Stefan Schimanski (schimmi@kde.org) 4 * Copyright (c) 2000 Stefan Schimanski (schimmi@kde.org)
5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. 5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 18 matching lines...) Expand all
29 #include "core/frame/LocalFrame.h" 29 #include "core/frame/LocalFrame.h"
30 #include "core/frame/NavigatorID.h" 30 #include "core/frame/NavigatorID.h"
31 #include "core/frame/Settings.h" 31 #include "core/frame/Settings.h"
32 #include "core/loader/CookieJar.h" 32 #include "core/loader/CookieJar.h"
33 #include "core/loader/FrameLoader.h" 33 #include "core/loader/FrameLoader.h"
34 #include "core/page/ChromeClient.h" 34 #include "core/page/ChromeClient.h"
35 #include "platform/Language.h" 35 #include "platform/Language.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 Navigator::Navigator(LocalFrame* frame) : DOMWindowProperty(frame) {} 39 Navigator::Navigator(LocalFrame* frame) : DOMWindowClient(frame) {}
40 40
41 String Navigator::productSub() const { 41 String Navigator::productSub() const {
42 return "20030107"; 42 return "20030107";
43 } 43 }
44 44
45 String Navigator::vendor() const { 45 String Navigator::vendor() const {
46 // Do not change without good cause. History: 46 // Do not change without good cause. History:
47 // https://code.google.com/p/chromium/issues/detail?id=276813 47 // https://code.google.com/p/chromium/issues/detail?id=276813
48 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=27786 48 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=27786
49 // https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/Qrgyulnqvm E 49 // https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/Qrgyulnqvm E
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 String& token = languages[i]; 91 String& token = languages[i];
92 token = token.stripWhiteSpace(); 92 token = token.stripWhiteSpace();
93 if (token.length() >= 3 && token[2] == '_') 93 if (token.length() >= 3 && token[2] == '_')
94 token.replace(2, 1, "-"); 94 token.replace(2, 1, "-");
95 } 95 }
96 96
97 return languages; 97 return languages;
98 } 98 }
99 99
100 DEFINE_TRACE(Navigator) { 100 DEFINE_TRACE(Navigator) {
101 DOMWindowProperty::trace(visitor); 101 DOMWindowClient::trace(visitor);
102 Supplementable<Navigator>::trace(visitor); 102 Supplementable<Navigator>::trace(visitor);
103 } 103 }
104 104
105 } // namespace blink 105 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/Navigator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698