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

Side by Side Diff: third_party/WebKit/Source/platform/LayoutLocale.h

Issue 2815523002: Rename Script() returning UScriptCode to GetScript() (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 LayoutLocale_h 5 #ifndef LayoutLocale_h
6 #define LayoutLocale_h 6 #define LayoutLocale_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/text/Hyphenation.h" 9 #include "platform/text/Hyphenation.h"
10 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
(...skipping 30 matching lines...) Expand all
41 static const AtomicString& LocaleString(const LayoutLocale* locale) { 41 static const AtomicString& LocaleString(const LayoutLocale* locale) {
42 return locale ? locale->string_ : g_null_atom; 42 return locale ? locale->string_ : g_null_atom;
43 } 43 }
44 operator const AtomicString&() const { return string_; } 44 operator const AtomicString&() const { return string_; }
45 CString Ascii() const { return string_.Ascii(); } 45 CString Ascii() const { return string_.Ascii(); }
46 46
47 const hb_language_impl_t* HarfbuzzLanguage() const { 47 const hb_language_impl_t* HarfbuzzLanguage() const {
48 return harfbuzz_language_; 48 return harfbuzz_language_;
49 } 49 }
50 const char* LocaleForSkFontMgr() const; 50 const char* LocaleForSkFontMgr() const;
51 UScriptCode Script() const { return script_; } 51 UScriptCode GetScript() const { return script_; }
52 52
53 // Disambiguation of the Unified Han Ideographs. 53 // Disambiguation of the Unified Han Ideographs.
54 UScriptCode ScriptForHan() const; 54 UScriptCode GetScriptForHan() const;
hiroshige 2017/04/11 00:47:27 Renamed for consistency with GetScript().
55 bool HasScriptForHan() const; 55 bool HasScriptForHan() const;
56 static const LayoutLocale* LocaleForHan(const LayoutLocale*); 56 static const LayoutLocale* LocaleForHan(const LayoutLocale*);
57 static void InvalidateLocaleForHan() { default_for_han_computed_ = false; } 57 static void InvalidateLocaleForHan() { default_for_han_computed_ = false; }
58 const char* LocaleForHanForSkFontMgr() const; 58 const char* LocaleForHanForSkFontMgr() const;
59 59
60 Hyphenation* GetHyphenation() const; 60 Hyphenation* GetHyphenation() const;
61 61
62 AtomicString LocaleWithBreakKeyword(LineBreakIteratorMode) const; 62 AtomicString LocaleWithBreakKeyword(LineBreakIteratorMode) const;
63 63
64 static PassRefPtr<LayoutLocale> CreateForTesting(const AtomicString&); 64 static PassRefPtr<LayoutLocale> CreateForTesting(const AtomicString&);
(...skipping 22 matching lines...) Expand all
87 87
88 static const LayoutLocale* default_; 88 static const LayoutLocale* default_;
89 static const LayoutLocale* system_; 89 static const LayoutLocale* system_;
90 static const LayoutLocale* default_for_han_; 90 static const LayoutLocale* default_for_han_;
91 static bool default_for_han_computed_; 91 static bool default_for_han_computed_;
92 }; 92 };
93 93
94 } // namespace blink 94 } // namespace blink
95 95
96 #endif // LayoutLocale_h 96 #endif // LayoutLocale_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp ('k') | third_party/WebKit/Source/platform/LayoutLocale.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698