view modules/web/src/main/native/Source/WebCore/platform/java/LanguageJava.cpp @ 5976:94331ac42150

RT-25869: Update copyright year in header of modified source code files to 2013 Reviewed-by: Mong Hang Vo
author kcr
date Mon, 23 Dec 2013 13:46:39 -0800
parents 8cbaf9096cda
children
line wrap: on
line source
/*
 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
 */

#include "config.h"
#include "Language.h"

#include "ChromiumBridge.h"
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>

namespace WebCore {

static String platformLanguage()
{
    DEFINE_STATIC_LOCAL(String, computedDefaultLanguage, ());
    if (computedDefaultLanguage.isEmpty())
        computedDefaultLanguage.append(ChromiumBridge::computedDefaultLanguage());
    return computedDefaultLanguage;
}

String platformDefaultLanguage()
{
    return platformLanguage();
}

Vector<String> platformUserPreferredLanguages()
{
    Vector<String> userPreferredLanguages;
    userPreferredLanguages.append(platformLanguage());
    return userPreferredLanguages;
}

} // namespace WebCore