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

Unified Diff: ui/metro_viewer/ime_types.h

Issue 74783010: [Ash] Introduces new IPC messages to support IME on Win-Ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ime_types.cc to avoid complex ctor/dtor from being inlined Created 7 years, 1 month 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 | « no previous file | ui/metro_viewer/ime_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/metro_viewer/ime_types.h
diff --git a/ui/metro_viewer/ime_types.h b/ui/metro_viewer/ime_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..7f971e4ac610dceffa2473fe86a8a79b3b1049f3
--- /dev/null
+++ b/ui/metro_viewer/ime_types.h
@@ -0,0 +1,49 @@
+// Copyright (c) 2013 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_METRO_VIEWER_IME_TYPES_H_
+#define UI_METRO_VIEWER_IME_TYPES_H_
+
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/strings/string16.h"
+
+namespace metro_viewer {
+
+// An equivalent to ui::CompositionUnderline defined in
+// "ui/base/ime/composition_underline.h". Redefined here to avoid dependency
+// on ui.gyp from metro_driver.gyp.
+struct UnderlineInfo {
+ UnderlineInfo();
+ int32 start_offset;
+ int32 end_offset;
+ bool thick;
+};
+
+// An equivalent to ui::CompositionText defined in
+// "ui/base/ime/composition_text.h". Redefined here to avoid dependency
+// on ui.gyp from metro_driver.gyp.
+struct Composition {
+ Composition();
+ ~Composition();
+ string16 text;
+ int32 selection_start;
+ int32 selection_end;
+ std::vector<UnderlineInfo> underlines;
+};
+
+// An equivalent to Win32 RECT structure. This can be gfx::Rect but redefined
+// here to avoid dependency on gfx.gyp from metro_driver.gyp.
+struct CharacterBounds {
+ CharacterBounds();
+ int32 left;
+ int32 top;
+ int32 right;
+ int32 bottom;
+};
+
+} // namespace metro_viewer
+
+#endif // UI_METRO_VIEWER_IME_TYPES_H_
« no previous file with comments | « no previous file | ui/metro_viewer/ime_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698