1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "config.h" 6 #include "core/frame/NavigatorLanguage.h" 7 8 #include "platform/Language.h" 9 10 namespace WebCore { 11 NavigatorLanguage()12NavigatorLanguage::NavigatorLanguage() 13 : m_languagesChanged(true) 14 { 15 } 16 language(bool & isNull)17AtomicString NavigatorLanguage::language(bool& isNull) 18 { 19 isNull = false; 20 return defaultLanguage(); 21 } 22 hasLanguagesChanged()23bool NavigatorLanguage::hasLanguagesChanged() 24 { 25 if (!m_languagesChanged) 26 return false; 27 28 m_languagesChanged = false; 29 return true; 30 } 31 setLanguagesChanged()32void NavigatorLanguage::setLanguagesChanged() 33 { 34 m_languagesChanged = true; 35 } 36 37 } // namespace WebCore 38