OLD | NEW |
(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_ |
OLD | NEW |