blob: be30ea95ffaa54d3c2dffad65311163f8be3b8f8 [file] [log] [blame]
// Copyright 2020 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_UI_SUGGESTION_DETAILS_H_
#define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_UI_SUGGESTION_DETAILS_H_
#include <string>
namespace ui {
namespace ime {
struct SuggestionDetails {
std::u16string text;
size_t confirmed_length = 0;
bool show_accept_annotation = false;
bool show_quick_accept_annotation = false;
bool show_setting_link = false;
bool operator==(const SuggestionDetails& other) const {
return text == other.text && confirmed_length == other.confirmed_length &&
show_accept_annotation == other.show_accept_annotation &&
show_quick_accept_annotation == other.show_quick_accept_annotation &&
show_setting_link == other.show_setting_link;
}
};
} // namespace ime
} // namespace ui
#endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_UI_SUGGESTION_DETAILS_H_