OLD | NEW |
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 if (!m_frame) | 78 if (!m_frame) |
79 return false; | 79 return false; |
80 | 80 |
81 Settings* settings = m_frame->settings(); | 81 Settings* settings = m_frame->settings(); |
82 if (!settings || !settings->cookieEnabled()) | 82 if (!settings || !settings->cookieEnabled()) |
83 return false; | 83 return false; |
84 | 84 |
85 return cookiesEnabled(m_frame->document()); | 85 return cookiesEnabled(m_frame->document()); |
86 } | 86 } |
87 | 87 |
88 void Navigator::getStorageUpdates() | |
89 { | |
90 // FIXME: Remove this method or rename to yieldForStorageUpdates. | |
91 } | |
92 | |
93 Vector<String> Navigator::languages() | 88 Vector<String> Navigator::languages() |
94 { | 89 { |
95 Vector<String> languages; | 90 Vector<String> languages; |
96 | 91 |
97 if (!m_frame || !m_frame->host()) { | 92 if (!m_frame || !m_frame->host()) { |
98 languages.append(defaultLanguage()); | 93 languages.append(defaultLanguage()); |
99 return languages; | 94 return languages; |
100 } | 95 } |
101 | 96 |
102 String acceptLanguages = m_frame->host()->chromeClient().acceptLanguages(); | 97 String acceptLanguages = m_frame->host()->chromeClient().acceptLanguages(); |
(...skipping 12 matching lines...) Expand all Loading... |
115 return languages; | 110 return languages; |
116 } | 111 } |
117 | 112 |
118 DEFINE_TRACE(Navigator) | 113 DEFINE_TRACE(Navigator) |
119 { | 114 { |
120 HeapSupplementable<Navigator>::trace(visitor); | 115 HeapSupplementable<Navigator>::trace(visitor); |
121 DOMWindowProperty::trace(visitor); | 116 DOMWindowProperty::trace(visitor); |
122 } | 117 } |
123 | 118 |
124 } // namespace blink | 119 } // namespace blink |
OLD | NEW |