blob: 4d6c4045a9abb99d19860e0074cb0e496a7d8ba0 [file] [log] [blame]
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_IME_LINUX_COMPOSITION_TEXT_UTIL_PANGO_H_
#define UI_BASE_IME_LINUX_COMPOSITION_TEXT_UTIL_PANGO_H_
#include "base/component_export.h"
typedef struct _PangoAttrList PangoAttrList;
namespace ui {
struct CompositionText;
// Extracts composition text information (text, underlines, selection range)
// from given Gtk preedit data (utf-8 text, pango attributes, cursor position).
COMPONENT_EXPORT(UI_BASE_IME_LINUX)
void ExtractCompositionTextFromGtkPreedit(
const char* utf8_text,
PangoAttrList* attrs,
int cursor_position,
CompositionText* composition);
} // namespace ui
#endif // UI_BASE_IME_LINUX_COMPOSITION_TEXT_UTIL_PANGO_H_