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

Side by Side Diff: content/browser/hyphenation/hyphenation_impl.h

Issue 2113933003: Add mojo interface to load hyphenation dictionaries on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: jam/eae review Created 4 years, 5 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
(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 CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_
6 #define CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_
7
8 #include "base/macros.h"
9 #include "mojo/public/cpp/bindings/interface_request.h"
10 #include "mojo/public/cpp/bindings/strong_binding.h"
11 #include "third_party/WebKit/public/platform/modules/hyphenation/hyphenation.moj om.h"
12
13 namespace hyphenation {
14
15 class HyphenationImpl : public blink::mojom::Hyphenation {
16 public:
17 static void Create(blink::mojom::HyphenationRequest);
18
19 // Hyphenation:
20 void OpenDictionary(const mojo::String& locale,
21 const OpenDictionaryCallback& callback) override;
22
23 private:
24 explicit HyphenationImpl(blink::mojom::HyphenationRequest);
25 ~HyphenationImpl() override;
26
27 mojo::StrongBinding<blink::mojom::Hyphenation> binding_;
28
29 DISALLOW_COPY_AND_ASSIGN(HyphenationImpl);
30 };
31
32 } // namespace hyphenation
33
34 #endif // CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698