[go: nahoru, domu]

blob: 3ec4f0717759429d47f2eec681014e9fb4e39db1 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module emoji_search.mojom;
struct SearchResults {
array<string> results;
};
// Interface to allow users to search for emoji whose metadata match a query
// string
interface EmojiSearch {
// Lookup metadata to find emoji/symbol/emoticon matches for a given query.
// If SetEmojiLanguage is not called, defaults to English locale.
SearchEmoji(string query) => (SearchResults emoji_results,
SearchResults symbol_results,
SearchResults emoticon_results);
// language_code refers to a BCP47 identifier for a language such as "en-US".
// Returns success if data for this language code exists.
SetEmojiLanguage(string language_code) => (bool success);
};