1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_METRO_VIEWER_IME_TYPES_H_
6 #define UI_METRO_VIEWER_IME_TYPES_H_
10 #include "base/basictypes.h"
11 #include "base/strings/string16.h"
13 namespace metro_viewer
{
15 // An equivalent to ui::CompositionUnderline defined in
16 // "ui/base/ime/composition_underline.h". Redefined here to avoid dependency
17 // on ui.gyp from metro_driver.gyp.
18 struct UnderlineInfo
{
25 // An equivalent to ui::CompositionText defined in
26 // "ui/base/ime/composition_text.h". Redefined here to avoid dependency
27 // on ui.gyp from metro_driver.gyp.
32 int32 selection_start
;
34 std::vector
<UnderlineInfo
> underlines
;
37 // An equivalent to Win32 RECT structure. This can be gfx::Rect but redefined
38 // here to avoid dependency on gfx.gyp from metro_driver.gyp.
39 struct CharacterBounds
{
47 } // namespace metro_viewer
49 #endif // UI_METRO_VIEWER_IME_TYPES_H_