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

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

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #include "platform/text/Hyphenation.h" 5 #include "platform/text/Hyphenation.h"
6 6
7 #include "base/files/memory_mapped_file.h" 7 #include "base/files/memory_mapped_file.h"
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 9
10 namespace base { 10 namespace base {
11 class File; 11 class File;
12 } // namespace base 12 } // namespace base
13 13
14 namespace android { 14 namespace android {
15 class Hyphenator; 15 class Hyphenator;
16 } // namespace andorid 16 } // namespace android
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class PLATFORM_EXPORT HyphenationMinikin : public Hyphenation { 20 class PLATFORM_EXPORT HyphenationMinikin : public Hyphenation {
21 public: 21 public:
22 bool OpenDictionary(const AtomicString& locale); 22 bool OpenDictionary(const AtomicString& locale);
23 23
24 size_t LastHyphenLocation(const StringView& text, 24 size_t LastHyphenLocation(const StringView& text,
25 size_t before_index) const override; 25 size_t before_index) const override;
26 Vector<size_t, 8> HyphenLocations(const StringView&) const override; 26 Vector<size_t, 8> HyphenLocations(const StringView&) const override;
27 27
28 static PassRefPtr<HyphenationMinikin> FromFileForTesting(base::File); 28 static PassRefPtr<HyphenationMinikin> FromFileForTesting(base::File);
29 29
30 private: 30 private:
31 bool OpenDictionary(base::File); 31 bool OpenDictionary(base::File);
32 32
33 std::vector<uint8_t> Hyphenate(const StringView&) const; 33 std::vector<uint8_t> Hyphenate(const StringView&) const;
34 34
35 base::MemoryMappedFile file_; 35 base::MemoryMappedFile file_;
36 std::unique_ptr<android::Hyphenator> hyphenator_; 36 std::unique_ptr<android::Hyphenator> hyphenator_;
37 }; 37 };
38 38
39 } // namespace blink 39 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698