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

Side by Side Diff: Source/core/frame/NavigatorLanguage.h

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 unified diff | Download patch
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | Source/core/workers/WorkerLanguageTasks.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NavigatorLanguage_h 5 #ifndef NavigatorLanguage_h
6 #define NavigatorLanguage_h 6 #define NavigatorLanguage_h
7 7
8 #include "wtf/text/AtomicString.h" 8 #include "wtf/text/AtomicString.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class NavigatorLanguage { 12 class NavigatorLanguage {
13 public: 13 public:
14 NavigatorLanguage(); 14 NavigatorLanguage();
15 15
16 AtomicString language(); 16 virtual AtomicString language();
17 virtual Vector<String> languages() = 0; 17 virtual Vector<String> languages() = 0;
18 bool hasLanguagesChanged(); 18 bool hasLanguagesChanged();
19 void setLanguagesChanged(); 19 void setLanguagesChanged();
20 20
21 private: 21 private:
22 bool m_languagesChanged; 22 bool m_languagesChanged;
23 }; 23 };
24 24
25 } // namespace blink 25 } // namespace blink
26 26
27 #endif // NavigatorLanguage_h 27 #endif // NavigatorLanguage_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | Source/core/workers/WorkerLanguageTasks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698