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

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: Moved to content/browser 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 COMPONENTS_HYPHENATION_HYPHENATION_IMPL_H_
jam 2016/07/12 14:51:12 nit: update
6 #define COMPONENTS_HYPHENATION_HYPHENATION_IMPL_H_
7
8 #include <stdint.h>
9 #include <vector>
jam 2016/07/12 14:51:12 nit: not used
10
11 #include "base/files/file.h"
jam 2016/07/12 14:51:12 ditto
12 #include "base/macros.h"
13 #include "content/browser/hyphenation/hyphenation_export.h"
14 #include "mojo/public/cpp/bindings/interface_request.h"
15 #include "mojo/public/cpp/bindings/strong_binding.h"
16 #include "third_party/WebKit/public/platform/modules/hyphenation/hyphenation.moj om.h"
17
18 namespace hyphenation {
19
20 class HyphenationImpl : public blink::mojom::Hyphenation {
21 public:
22 HYPHENATION_EXPORT static void Create(blink::mojom::HyphenationRequest);
23
24 // Hyphenation:
25 void OpenDictionary(const mojo::String& locale,
26 const OpenDictionaryCallback& callback) override;
27
28 private:
29 explicit HyphenationImpl(blink::mojom::HyphenationRequest);
30 ~HyphenationImpl() override;
31
32 mojo::StrongBinding<blink::mojom::Hyphenation> binding_;
33
34 DISALLOW_COPY_AND_ASSIGN(HyphenationImpl);
35 };
36
37 } // namespace hyphenation
38
39 #endif // COMPONENTS_HYPHENATION_HYPHENATION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698