OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/chromeos/input_method/ibus_ui_controller.h" | 8 #include "chrome/browser/chromeos/input_method/ibus_ui_controller.h" |
9 #include "ui/views/view.h" | 9 #include "ui/views/view.h" |
10 | 10 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 InformationTextArea* footer_area_; | 170 InformationTextArea* footer_area_; |
171 | 171 |
172 // Current columns width in |candidate_area_|. | 172 // Current columns width in |candidate_area_|. |
173 int previous_shortcut_column_width_; | 173 int previous_shortcut_column_width_; |
174 int previous_candidate_column_width_; | 174 int previous_candidate_column_width_; |
175 int previous_annotation_column_width_; | 175 int previous_annotation_column_width_; |
176 | 176 |
177 // The last cursor location. | 177 // The last cursor location. |
178 gfx::Rect cursor_location_; | 178 gfx::Rect cursor_location_; |
179 | 179 |
180 // This location is used by suggestion window rendering which is mostly used | |
181 // by ibus-mozc. The suggestion window should be aligned with the composition | |
182 // text as opposed to the cursor. In case of ibus-mozc, suggestion window | |
183 // location is calculated by engine and it carried by update_lookup_table | |
184 // signal as additional information. This value is available when | |
185 // is_suggestion_window_available is true. | |
186 gfx::Rect suggestion_window_location_; | |
187 | |
188 bool is_suggestion_window_location_available_; | |
189 | |
190 DISALLOW_COPY_AND_ASSIGN(CandidateWindowView); | 180 DISALLOW_COPY_AND_ASSIGN(CandidateWindowView); |
191 }; | 181 }; |
192 | 182 |
193 } // namespace input_method | 183 } // namespace input_method |
194 } // namespace chromeos | 184 } // namespace chromeos |
195 | 185 |
196 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_VIEW_H_ | 186 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_VIEW_H_ |
OLD | NEW |