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

Unified Diff: ui/base/gtk/gtk_im_context_util.h

Issue 6709023: Move some common ime code to ui/base/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always put the composition cursor to the selection end. Created 9 years, 9 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | ui/base/gtk/gtk_im_context_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gtk/gtk_im_context_util.h
diff --git a/ui/base/gtk/gtk_im_context_util.h b/ui/base/gtk/gtk_im_context_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..dd560a970018139e4d05d953bbc1a9486534fa19
--- /dev/null
+++ b/ui/base/gtk/gtk_im_context_util.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2011 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 UI_BASE_GTK_GTK_IM_CONTEXT_UTIL_H_
+#define UI_BASE_GTK_GTK_IM_CONTEXT_UTIL_H_
+#pragma once
+
+#include <pango/pango-attributes.h>
+
+namespace ui {
+
+struct CompositionText;
+
+// Extracts composition text information (text, underlines, selection range)
+// from given Gtk preedit data (utf-8 text, pango attributes, cursor position).
+void ExtractCompositionTextFromGtkPreedit(const gchar* utf8_text,
+ PangoAttrList* attrs,
+ int cursor_position,
+ CompositionText* composition);
+
+} // namespace ui
+
+#endif // UI_BASE_GTK_GTK_IM_CONTEXT_UTIL_H_
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | ui/base/gtk/gtk_im_context_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698