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

Side by Side Diff: ui/base/ime/candidate_window.h

Issue 889323003: Split ui/base/ime into a new component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cros x11 GN build Created 5 years, 10 months 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 | « ui/base/ime/BUILD.gn ('k') | ui/base/ime/chromeos/character_composer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_BASE_IME_CANDIDATE_WINDOW_H_ 5 #ifndef UI_BASE_IME_CANDIDATE_WINDOW_H_
6 #define UI_BASE_IME_CANDIDATE_WINDOW_H_ 6 #define UI_BASE_IME_CANDIDATE_WINDOW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "ui/base/ime/infolist_entry.h" 12 #include "ui/base/ime/infolist_entry.h"
13 #include "ui/base/ui_base_export.h" 13 #include "ui/base/ime/ui_base_ime_export.h"
14 14
15 namespace ui { 15 namespace ui {
16 16
17 // CandidateWindow represents the structure of candidates generated from IME. 17 // CandidateWindow represents the structure of candidates generated from IME.
18 class UI_BASE_EXPORT CandidateWindow { 18 class UI_BASE_IME_EXPORT CandidateWindow {
19 public: 19 public:
20 enum Orientation { 20 enum Orientation {
21 HORIZONTAL = 0, 21 HORIZONTAL = 0,
22 VERTICAL = 1, 22 VERTICAL = 1,
23 }; 23 };
24 24
25 struct UI_BASE_EXPORT CandidateWindowProperty { 25 struct UI_BASE_IME_EXPORT CandidateWindowProperty {
26 CandidateWindowProperty(); 26 CandidateWindowProperty();
27 virtual ~CandidateWindowProperty(); 27 virtual ~CandidateWindowProperty();
28 int page_size; 28 int page_size;
29 int cursor_position; 29 int cursor_position;
30 bool is_cursor_visible; 30 bool is_cursor_visible;
31 bool is_vertical; 31 bool is_vertical;
32 bool show_window_at_composition; 32 bool show_window_at_composition;
33 33
34 // Auxiliary text is typically displayed in the footer of the candidate 34 // Auxiliary text is typically displayed in the footer of the candidate
35 // window. 35 // window.
36 std::string auxiliary_text; 36 std::string auxiliary_text;
37 bool is_auxiliary_text_visible; 37 bool is_auxiliary_text_visible;
38 }; 38 };
39 39
40 // Represents a candidate entry. 40 // Represents a candidate entry.
41 struct UI_BASE_EXPORT Entry { 41 struct UI_BASE_IME_EXPORT Entry {
42 Entry(); 42 Entry();
43 virtual ~Entry(); 43 virtual ~Entry();
44 base::string16 value; 44 base::string16 value;
45 base::string16 label; 45 base::string16 label;
46 base::string16 annotation; 46 base::string16 annotation;
47 base::string16 description_title; 47 base::string16 description_title;
48 base::string16 description_body; 48 base::string16 description_body;
49 }; 49 };
50 50
51 CandidateWindow(); 51 CandidateWindow();
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 private: 122 private:
123 scoped_ptr<CandidateWindowProperty> property_; 123 scoped_ptr<CandidateWindowProperty> property_;
124 std::vector<Entry> candidates_; 124 std::vector<Entry> candidates_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(CandidateWindow); 126 DISALLOW_COPY_AND_ASSIGN(CandidateWindow);
127 }; 127 };
128 128
129 } // namespace ui 129 } // namespace ui
130 130
131 #endif // UI_BASE_IME_CANDIDATE_WINDOW_H_ 131 #endif // UI_BASE_IME_CANDIDATE_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/base/ime/BUILD.gn ('k') | ui/base/ime/chromeos/character_composer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698