OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 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_BASE_IME_COMPOSITION_UNDERLINE_H_ | |
6 #define UI_BASE_IME_COMPOSITION_UNDERLINE_H_ | |
7 #pragma once | |
8 | |
9 #include <vector> | |
10 | |
11 #include "third_party/skia/include/core/SkColor.h" | |
12 | |
13 namespace ui { | |
14 | |
15 // Intentionally keep sync with WebKit::WebCompositionUnderline defined in: | |
16 // third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderline.h | |
17 struct CompositionUnderline { | |
18 CompositionUnderline() | |
19 : start_offset(0), | |
20 end_offset(0), | |
21 color(0), | |
22 thick(false) {} | |
23 | |
24 CompositionUnderline(unsigned s, unsigned e, SkColor c, bool t) | |
25 : start_offset(s), | |
26 end_offset(e), | |
27 color(c), | |
28 thick(t) {} | |
29 | |
30 unsigned start_offset; | |
31 unsigned end_offset; | |
oshima
2011/03/18 19:03:25
use of unsigned is discouraged. I'm guess this is
James Su
2011/03/18 19:18:35
Done.
| |
32 SkColor color; | |
33 bool thick; | |
34 }; | |
35 | |
36 typedef std::vector<CompositionUnderline> CompositionUnderlines; | |
37 | |
38 } // namespace ui | |
39 | |
40 #endif // UI_BASE_IME_COMPOSITION_UNDERLINE_H_ | |
OLD | NEW |