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

Unified Diff: Source/core/frame/DOMWindow.cpp

Issue 288393002: Implement navigator.languages. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@language_change_tests
Patch Set: error 500 Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/DOMWindow.h ('k') | Source/core/frame/Navigator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/DOMWindow.cpp
diff --git a/Source/core/frame/DOMWindow.cpp b/Source/core/frame/DOMWindow.cpp
index 9d85771d908ce7868b7e3d666b68851fcef5a44d..4299cac9ea85432a358689c5eee01a4e28499f92 100644
--- a/Source/core/frame/DOMWindow.cpp
+++ b/Source/core/frame/DOMWindow.cpp
@@ -363,6 +363,14 @@ void DOMWindow::clearEventQueue()
m_eventQueue.clear();
}
+void DOMWindow::acceptLanguagesChanged()
+{
+ if (m_navigator)
+ m_navigator->setLanguagesChanged();
+
+ dispatchEvent(Event::create(EventTypeNames::languagechange));
+}
+
PassRefPtrWillBeRawPtr<Document> DOMWindow::createDocument(const String& mimeType, const DocumentInit& init, bool forceXHTML)
{
RefPtrWillBeRawPtr<Document> document = nullptr;
« no previous file with comments | « Source/core/frame/DOMWindow.h ('k') | Source/core/frame/Navigator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698