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

Side by Side Diff: third_party/WebKit/Source/platform/text/Hyphenation.h

Issue 2799683005: Rewrite references to "wtf/" to "platform/wtf/" in platform/text. (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 Hyphenation_h 5 #ifndef Hyphenation_h
6 #define Hyphenation_h 6 #define Hyphenation_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "wtf/Forward.h" 9 #include "platform/wtf/Forward.h"
10 #include "wtf/HashMap.h" 10 #include "platform/wtf/HashMap.h"
11 #include "wtf/RefCounted.h" 11 #include "platform/wtf/RefCounted.h"
12 #include "wtf/text/AtomicStringHash.h" 12 #include "platform/wtf/text/AtomicStringHash.h"
13 #include "wtf/text/StringHash.h" 13 #include "platform/wtf/text/StringHash.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class Font; 17 class Font;
18 18
19 class PLATFORM_EXPORT Hyphenation : public RefCounted<Hyphenation> { 19 class PLATFORM_EXPORT Hyphenation : public RefCounted<Hyphenation> {
20 public: 20 public:
21 virtual ~Hyphenation() {} 21 virtual ~Hyphenation() {}
22 22
23 virtual size_t lastHyphenLocation(const StringView&, 23 virtual size_t lastHyphenLocation(const StringView&,
24 size_t beforeIndex) const = 0; 24 size_t beforeIndex) const = 0;
25 virtual Vector<size_t, 8> hyphenLocations(const StringView&) const; 25 virtual Vector<size_t, 8> hyphenLocations(const StringView&) const;
26 26
27 static const unsigned minimumPrefixLength = 2; 27 static const unsigned minimumPrefixLength = 2;
28 static const unsigned minimumSuffixLength = 2; 28 static const unsigned minimumSuffixLength = 2;
29 static int minimumPrefixWidth(const Font&); 29 static int minimumPrefixWidth(const Font&);
30 30
31 private: 31 private:
32 friend class LayoutLocale; 32 friend class LayoutLocale;
33 static PassRefPtr<Hyphenation> platformGetHyphenation( 33 static PassRefPtr<Hyphenation> platformGetHyphenation(
34 const AtomicString& locale); 34 const AtomicString& locale);
35 }; 35 };
36 36
37 } // namespace blink 37 } // namespace blink
38 38
39 #endif // Hyphenation_h 39 #endif // Hyphenation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698