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

Side by Side 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: 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 unified diff | Download patch
« no previous file with comments | « no previous file | ui/metro_viewer/metro_viewer.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 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.
4
5 #ifndef UI_METRO_VIEWER_IME_TYPES_H_
6 #define UI_METRO_VIEWER_IME_TYPES_H_
7
8 #include "base/basictypes.h"
9 #include "base/strings/string16.h"
10
11 namespace metro_viewer {
12
13 // An equivalent to ui::CompositionUnderline defined in
14 // "ui/base/ime/composition_underline.h". Redefined here to avoid dependency
15 // on ui.gyp from metro_driver.gyp.
16 struct UnderlineInfo {
17 UnderlineInfo()
18 : start_offset(0), end_offset(0), thick(false) {}
sky 2013/11/22 18:31:34 nit: when you wrap, one param per line (like 29-30
yukawa 2013/11/23 03:44:05 Done.
19 int32 start_offset;
20 int32 end_offset;
21 bool thick;
22 };
23
24 // An equivalent to ui::CompositionText defined in
25 // "ui/base/ime/composition_text.h". Redefined here to avoid dependency
26 // on ui.gyp from metro_driver.gyp.
27 struct Composition {
28 Composition()
29 : selection_start(0),
30 selection_end(0) {}
31 string16 text;
32 int32 selection_start;
33 int32 selection_end;
34 std::vector<UnderlineInfo> underlines;
sky 2013/11/22 18:31:34 Don't you want to more destructor definition to .c
yukawa 2013/11/23 03:44:05 Yes, totally agreed. I also put the other constru
35 };
36
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 {
40 CharacterBounds()
41 : left(0), top(0), right(0), bottom(0) {}
sky 2013/11/22 18:31:34 same comment here about one per line.
yukawa 2013/11/23 03:44:05 Done.
42 int32 left;
43 int32 top;
44 int32 right;
45 int32 bottom;
46 };
47
48 } // namespace metro_viewer
49
50 #endif // UI_METRO_VIEWER_IME_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | ui/metro_viewer/metro_viewer.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698