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

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

Issue 592183002: [WIP]Implement Blink side changes for navigator.language(s) support for workers. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Dedicated worker languagechange event added. Still WIP. Created 6 years, 2 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/core.gypi ('k') | Source/core/frame/NavigatorLanguage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/LocalDOMWindow.cpp
diff --git a/Source/core/frame/LocalDOMWindow.cpp b/Source/core/frame/LocalDOMWindow.cpp
index 16a1e79d4c2f6cbf521def75bd3ff918c00cb319..b6fced71e7aff7cf7338a2930cece59742a48396 100644
--- a/Source/core/frame/LocalDOMWindow.cpp
+++ b/Source/core/frame/LocalDOMWindow.cpp
@@ -97,6 +97,7 @@
#include "core/storage/StorageArea.h"
#include "core/storage/StorageNamespace.h"
#include "core/timing/Performance.h"
+#include "core/workers/WorkerThread.h"
#include "platform/EventDispatchForbiddenScope.h"
#include "platform/PlatformScreen.h"
#include "platform/RuntimeEnabledFeatures.h"
@@ -110,6 +111,7 @@
#include "wtf/MainThread.h"
#include "wtf/MathExtras.h"
#include "wtf/text/WTFString.h"
+
#include <algorithm>
using std::min;
@@ -381,6 +383,8 @@ void LocalDOMWindow::acceptLanguagesChanged()
m_navigator->setLanguagesChanged();
dispatchEvent(Event::create(EventTypeNames::languagechange));
+
+ WorkerThread::notifyAcceptLanguagesChanged(navigator().languages());
}
PassRefPtrWillBeRawPtr<Document> LocalDOMWindow::createDocument(const String& mimeType, const DocumentInit& init, bool forceXHTML)
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/frame/NavigatorLanguage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698