Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 #ifndef WebLanguageDetectionDetails_h | |
| 6 #define WebLanguageDetectionDetails_h | |
| 7 | |
| 8 #include "public/platform/WebString.h" | |
| 9 #include "public/platform/WebURL.h" | |
| 10 #include "public/web/WebDocument.h" | |
|
jbroman
2016/12/20 16:43:51
nit: Technically you just need a forward declarati
adithyas
2017/01/09 15:40:02
Done.
| |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 struct WebLanguageDetectionDetails { | |
| 15 WebURL url; | |
| 16 WebString contentLanguage; | |
| 17 WebString htmlLanguage; | |
| 18 bool hasNoTranslateMeta; | |
|
jbroman
2016/12/20 16:43:51
nit: Rather than writing an explicit constructor,
adithyas
2017/01/09 15:40:02
Removed the constructor.
| |
| 19 | |
| 20 WebLanguageDetectionDetails() : hasNoTranslateMeta(false) {} | |
| 21 | |
| 22 BLINK_EXPORT static WebLanguageDetectionDetails | |
| 23 collectLanguageDetectionDetails(const WebDocument&); | |
| 24 }; | |
| 25 | |
| 26 } // namespace blink | |
| 27 | |
| 28 #endif // WebLanguageDetectionDetails_h | |
| OLD | NEW |