| OLD | NEW |
| 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 #ifndef CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_ |
| 6 #define CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_ | 6 #define CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "mojo/public/cpp/bindings/interface_request.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" | 10 #include "third_party/WebKit/public/platform/modules/hyphenation/hyphenation.moj
om.h" |
| 12 | 11 |
| 13 namespace hyphenation { | 12 namespace hyphenation { |
| 14 | 13 |
| 15 class HyphenationImpl : public blink::mojom::Hyphenation { | 14 class HyphenationImpl : public blink::mojom::Hyphenation { |
| 16 public: | 15 public: |
| 16 HyphenationImpl(); |
| 17 ~HyphenationImpl() override; |
| 18 |
| 17 static void Create(blink::mojom::HyphenationRequest); | 19 static void Create(blink::mojom::HyphenationRequest); |
| 18 | 20 |
| 19 // Hyphenation: | 21 // Hyphenation: |
| 20 void OpenDictionary(const mojo::String& locale, | 22 void OpenDictionary(const mojo::String& locale, |
| 21 const OpenDictionaryCallback& callback) override; | 23 const OpenDictionaryCallback& callback) override; |
| 22 | 24 |
| 23 private: | 25 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); | 26 DISALLOW_COPY_AND_ASSIGN(HyphenationImpl); |
| 30 }; | 27 }; |
| 31 | 28 |
| 32 } // namespace hyphenation | 29 } // namespace hyphenation |
| 33 | 30 |
| 34 #endif // CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_ | 31 #endif // CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_ |
| OLD | NEW |