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

Side by Side Diff: ui/base/ime/chromeos/composition_text.h

Issue 727143002: Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased. Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_IME_COMPOSITION_TEXT_H_ 5 #ifndef UI_BASE_IME_CHROMEOS_COMPOSITION_TEXT_H_
6 #define CHROMEOS_IME_COMPOSITION_TEXT_H_ 6 #define UI_BASE_IME_CHROMEOS_COMPOSITION_TEXT_H_
stevenjb 2014/11/20 19:09:52 Since as you mention there is already a ui/base/im
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "chromeos/chromeos_export.h" 13 #include "ui/base/ui_base_export.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 class CHROMEOS_EXPORT CompositionText { 17 class UI_BASE_EXPORT CompositionText {
18 public: 18 public:
19 enum UnderlineType { 19 enum UnderlineType {
20 COMPOSITION_TEXT_UNDERLINE_SINGLE = 1, 20 COMPOSITION_TEXT_UNDERLINE_SINGLE = 1,
21 COMPOSITION_TEXT_UNDERLINE_DOUBLE = 2, 21 COMPOSITION_TEXT_UNDERLINE_DOUBLE = 2,
22 COMPOSITION_TEXT_UNDERLINE_NONE = 4, 22 COMPOSITION_TEXT_UNDERLINE_NONE = 4,
23 COMPOSITION_TEXT_UNDERLINE_ERROR = 8, 23 COMPOSITION_TEXT_UNDERLINE_ERROR = 8,
24 }; 24 };
25 25
26 struct UnderlineAttribute { 26 struct UnderlineAttribute {
27 UnderlineType type; 27 UnderlineType type;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 base::string16 text_; 60 base::string16 text_;
61 std::vector<UnderlineAttribute> underline_attributes_; 61 std::vector<UnderlineAttribute> underline_attributes_;
62 uint32 selection_start_; 62 uint32 selection_start_;
63 uint32 selection_end_; 63 uint32 selection_end_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(CompositionText); 65 DISALLOW_COPY_AND_ASSIGN(CompositionText);
66 }; 66 };
67 67
68 } // namespace chromeos 68 } // namespace chromeos
69 69
70 #endif // CHROMEOS_IME_COMPOSITION_TEXT_H_ 70 #endif // UI_BASE_IME_CHROMEOS_COMPOSITION_TEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698