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