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

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

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase Created 4 years 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 #include "platform/text/Hyphenation.h" 5 #include "platform/text/Hyphenation.h"
6 6
7 #include "base/files/file.h" 7 #include "base/files/file.h"
8 #include "base/files/memory_mapped_file.h" 8 #include "base/files/memory_mapped_file.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/timer/elapsed_timer.h" 10 #include "base/timer/elapsed_timer.h"
(...skipping 20 matching lines...) Expand all
31 31
32 std::vector<uint8_t> hyphenate(const StringView&) const; 32 std::vector<uint8_t> hyphenate(const StringView&) const;
33 33
34 base::MemoryMappedFile m_file; 34 base::MemoryMappedFile m_file;
35 std::unique_ptr<Hyphenator> m_hyphenator; 35 std::unique_ptr<Hyphenator> m_hyphenator;
36 }; 36 };
37 37
38 static mojom::blink::HyphenationPtr connectToRemoteService() { 38 static mojom::blink::HyphenationPtr connectToRemoteService() {
39 mojom::blink::HyphenationPtr service; 39 mojom::blink::HyphenationPtr service;
40 Platform::current()->interfaceProvider()->getInterface( 40 Platform::current()->interfaceProvider()->getInterface(
41 mojo::GetProxy(&service)); 41 mojo::MakeRequest(&service));
42 return service; 42 return service;
43 } 43 }
44 44
45 static const mojom::blink::HyphenationPtr& getService() { 45 static const mojom::blink::HyphenationPtr& getService() {
46 DEFINE_STATIC_LOCAL(mojom::blink::HyphenationPtr, service, 46 DEFINE_STATIC_LOCAL(mojom::blink::HyphenationPtr, service,
47 (connectToRemoteService())); 47 (connectToRemoteService()));
48 return service; 48 return service;
49 } 49 }
50 50
51 base::File HyphenationMinikin::openDictionaryFile(const AtomicString& locale) { 51 base::File HyphenationMinikin::openDictionaryFile(const AtomicString& locale) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 DEFINE_STATIC_LOCAL(LocaleMap, localeFallback, (createLocaleFallbackMap())); 165 DEFINE_STATIC_LOCAL(LocaleMap, localeFallback, (createLocaleFallbackMap()));
166 const auto& it = localeFallback.find(locale); 166 const auto& it = localeFallback.find(locale);
167 if (it != localeFallback.end()) 167 if (it != localeFallback.end())
168 return LayoutLocale::get(it->value)->getHyphenation(); 168 return LayoutLocale::get(it->value)->getHyphenation();
169 169
170 return nullptr; 170 return nullptr;
171 } 171 }
172 172
173 } // namespace blink 173 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp ('k') | ui/aura/mus/input_method_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698