OLD | NEW |
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_CHROMEOS_IME_CANDIDATE_WINDOW_VIEW_H_ | 5 #ifndef UI_CHROMEOS_IME_CANDIDATE_WINDOW_VIEW_H_ |
6 #define UI_CHROMEOS_IME_CANDIDATE_WINDOW_VIEW_H_ | 6 #define UI_CHROMEOS_IME_CANDIDATE_WINDOW_VIEW_H_ |
7 | 7 |
8 #include "ui/base/ime/candidate_window.h" | 8 #include "ui/base/ime/candidate_window.h" |
9 #include "ui/chromeos/ui_chromeos_export.h" | 9 #include "ui/chromeos/ui_chromeos_export.h" |
10 #include "ui/views/bubble/bubble_delegate.h" | 10 #include "ui/views/bubble/bubble_delegate.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void MaybeInitializeCandidateViews( | 86 void MaybeInitializeCandidateViews( |
87 const ui::CandidateWindow& candidate_window); | 87 const ui::CandidateWindow& candidate_window); |
88 | 88 |
89 // The candidate window data model. | 89 // The candidate window data model. |
90 ui::CandidateWindow candidate_window_; | 90 ui::CandidateWindow candidate_window_; |
91 | 91 |
92 // The index in the current page of the candidate currently being selected. | 92 // The index in the current page of the candidate currently being selected. |
93 int selected_candidate_index_in_page_; | 93 int selected_candidate_index_in_page_; |
94 | 94 |
95 // The observers of the object. | 95 // The observers of the object. |
96 ObserverList<Observer> observers_; | 96 base::ObserverList<Observer> observers_; |
97 | 97 |
98 // Views created in the class will be part of tree of |this|, so these | 98 // Views created in the class will be part of tree of |this|, so these |
99 // child views will be deleted when |this| is deleted. | 99 // child views will be deleted when |this| is deleted. |
100 InformationTextArea* auxiliary_text_; | 100 InformationTextArea* auxiliary_text_; |
101 InformationTextArea* preedit_; | 101 InformationTextArea* preedit_; |
102 views::View* candidate_area_; | 102 views::View* candidate_area_; |
103 | 103 |
104 // The candidate views are used for rendering candidates. | 104 // The candidate views are used for rendering candidates. |
105 std::vector<CandidateView*> candidate_views_; | 105 std::vector<CandidateView*> candidate_views_; |
106 | 106 |
(...skipping 20 matching lines...) Expand all Loading... |
127 // send OnCandidateWindowOpened and OnCandidateWindowClosed events. | 127 // send OnCandidateWindowOpened and OnCandidateWindowClosed events. |
128 bool was_candidate_window_open_; | 128 bool was_candidate_window_open_; |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(CandidateWindowView); | 130 DISALLOW_COPY_AND_ASSIGN(CandidateWindowView); |
131 }; | 131 }; |
132 | 132 |
133 } // namespace ime | 133 } // namespace ime |
134 } // namespace ui | 134 } // namespace ui |
135 | 135 |
136 #endif // UI_CHROMEOS_IME_CANDIDATE_WINDOW_VIEW_H_ | 136 #endif // UI_CHROMEOS_IME_CANDIDATE_WINDOW_VIEW_H_ |
OLD | NEW |