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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; |
75 | 75 |
76 // Overridden from views::ButtonListener: | 76 // Overridden from views::ButtonListener: |
77 virtual void ButtonPressed(views::Button* sender, | 77 virtual void ButtonPressed(views::Button* sender, |
78 const ui::Event& event) OVERRIDE; | 78 const ui::Event& event) override; |
79 | 79 |
80 void SelectCandidateAt(int index_in_page); | 80 void SelectCandidateAt(int index_in_page); |
81 void UpdateVisibility(); | 81 void UpdateVisibility(); |
82 | 82 |
83 // Initializes the candidate views if needed. | 83 // Initializes the candidate views if needed. |
84 void MaybeInitializeCandidateViews( | 84 void MaybeInitializeCandidateViews( |
85 const ui::CandidateWindow& candidate_window); | 85 const ui::CandidateWindow& candidate_window); |
86 | 86 |
87 // The candidate window data model. | 87 // The candidate window data model. |
88 ui::CandidateWindow candidate_window_; | 88 ui::CandidateWindow candidate_window_; |
(...skipping 36 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 |