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 ASH_IME_CANDIDATE_WINDOW_VIEW_H_ | 5 #ifndef ASH_IME_CANDIDATE_WINDOW_VIEW_H_ |
6 #define ASH_IME_CANDIDATE_WINDOW_VIEW_H_ | 6 #define ASH_IME_CANDIDATE_WINDOW_VIEW_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ui/base/ime/candidate_window.h" | 9 #include "ui/base/ime/candidate_window.h" |
10 #include "ui/views/bubble/bubble_delegate.h" | 10 #include "ui/views/bubble/bubble_delegate.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Shows the lookup table. | 54 // Shows the lookup table. |
55 void ShowLookupTable(); | 55 void ShowLookupTable(); |
56 | 56 |
57 // Shows the auxiliary text. | 57 // Shows the auxiliary text. |
58 void ShowAuxiliaryText(); | 58 void ShowAuxiliaryText(); |
59 | 59 |
60 // Shows the preedit text. | 60 // Shows the preedit text. |
61 void ShowPreeditText(); | 61 void ShowPreeditText(); |
62 | 62 |
63 // Updates the preedit text. | 63 // Updates the preedit text. |
64 void UpdatePreeditText(const std::string& utf8_text); | 64 void UpdatePreeditText(const base::string16& text); |
65 | 65 |
66 // Updates candidates of the candidate window from |candidate_window|. | 66 // Updates candidates of the candidate window from |candidate_window|. |
67 // Candidates are arranged per |orientation|. | 67 // Candidates are arranged per |orientation|. |
68 void UpdateCandidates(const ui::CandidateWindow& candidate_window); | 68 void UpdateCandidates(const ui::CandidateWindow& candidate_window); |
69 | 69 |
70 void SetCursorBounds(const gfx::Rect& cursor_bounds, | 70 void SetCursorBounds(const gfx::Rect& cursor_bounds, |
71 const gfx::Rect& composition_head); | 71 const gfx::Rect& composition_head); |
72 | 72 |
73 private: | 73 private: |
74 friend class CandidateWindowViewTest; | 74 friend class CandidateWindowViewTest; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // send OnCandidateWindowOpened and OnCandidateWindowClosed events. | 125 // send OnCandidateWindowOpened and OnCandidateWindowClosed events. |
126 bool was_candidate_window_open_; | 126 bool was_candidate_window_open_; |
127 | 127 |
128 DISALLOW_COPY_AND_ASSIGN(CandidateWindowView); | 128 DISALLOW_COPY_AND_ASSIGN(CandidateWindowView); |
129 }; | 129 }; |
130 | 130 |
131 } // namespace ime | 131 } // namespace ime |
132 } // namespace ash | 132 } // namespace ash |
133 | 133 |
134 #endif // ASH_IME_CANDIDATE_WINDOW_VIEW_H_ | 134 #endif // ASH_IME_CANDIDATE_WINDOW_VIEW_H_ |
OLD | NEW |