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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/hyphenation/hyphenation_impl.h
diff --git a/content/browser/hyphenation/hyphenation_impl.h b/content/browser/hyphenation/hyphenation_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..cd6f6ca49285263b575399b1d8db4284887e02d6
--- /dev/null
+++ b/content/browser/hyphenation/hyphenation_impl.h
@@ -0,0 +1,39 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_HYPHENATION_HYPHENATION_IMPL_H_
jam 2016/07/12 14:51:12 nit: update
+#define COMPONENTS_HYPHENATION_HYPHENATION_IMPL_H_
+
+#include <stdint.h>
+#include <vector>
jam 2016/07/12 14:51:12 nit: not used
+
+#include "base/files/file.h"
jam 2016/07/12 14:51:12 ditto
+#include "base/macros.h"
+#include "content/browser/hyphenation/hyphenation_export.h"
+#include "mojo/public/cpp/bindings/interface_request.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+#include "third_party/WebKit/public/platform/modules/hyphenation/hyphenation.mojom.h"
+
+namespace hyphenation {
+
+class HyphenationImpl : public blink::mojom::Hyphenation {
+ public:
+ HYPHENATION_EXPORT static void Create(blink::mojom::HyphenationRequest);
+
+ // Hyphenation:
+ void OpenDictionary(const mojo::String& locale,
+ const OpenDictionaryCallback& callback) override;
+
+ private:
+ explicit HyphenationImpl(blink::mojom::HyphenationRequest);
+ ~HyphenationImpl() override;
+
+ mojo::StrongBinding<blink::mojom::Hyphenation> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(HyphenationImpl);
+};
+
+} // namespace hyphenation
+
+#endif // COMPONENTS_HYPHENATION_HYPHENATION_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698