OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_VIEW_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "chromeos/ime/candidate_window.h" | 9 #include "chromeos/ime/candidate_window.h" |
10 #include "ui/views/controls/label.h" | 10 #include "ui/views/controls/label.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 CandidateWindow::Orientation orientation); | 23 CandidateWindow::Orientation orientation); |
24 virtual ~CandidateView() {} | 24 virtual ~CandidateView() {} |
25 // Initializes the candidate view with the given column widths. | 25 // Initializes the candidate view with the given column widths. |
26 // A width of 0 means that the column is resizable. | 26 // A width of 0 means that the column is resizable. |
27 void Init(int shortcut_column_width, | 27 void Init(int shortcut_column_width, |
28 int candidate_column_width, | 28 int candidate_column_width, |
29 int annotation_column_width, | 29 int annotation_column_width, |
30 int column_height); | 30 int column_height); |
31 | 31 |
32 // Sets candidate text to the given text. | 32 // Sets candidate text to the given text. |
33 void SetCandidateText(const string16& text); | 33 void SetCandidateText(const base::string16& text); |
34 | 34 |
35 // Sets shortcut text to the given text. | 35 // Sets shortcut text to the given text. |
36 void SetShortcutText(const string16& text); | 36 void SetShortcutText(const base::string16& text); |
37 | 37 |
38 // Sets annotation text to the given text. | 38 // Sets annotation text to the given text. |
39 void SetAnnotationText(const string16& text); | 39 void SetAnnotationText(const base::string16& text); |
40 | 40 |
41 // Sets infolist icon. | 41 // Sets infolist icon. |
42 void SetInfolistIcon(bool enable); | 42 void SetInfolistIcon(bool enable); |
43 | 43 |
44 // Selects the candidate row. Changes the appearance to make it look | 44 // Selects the candidate row. Changes the appearance to make it look |
45 // like a selected candidate. | 45 // like a selected candidate. |
46 void Select(); | 46 void Select(); |
47 | 47 |
48 // Unselects the candidate row. Changes the appearance to make it look | 48 // Unselects the candidate row. Changes the appearance to make it look |
49 // like an unselected candidate. | 49 // like an unselected candidate. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 views::View* infolist_icon_; | 93 views::View* infolist_icon_; |
94 bool infolist_icon_enabled_; | 94 bool infolist_icon_enabled_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(CandidateView); | 96 DISALLOW_COPY_AND_ASSIGN(CandidateView); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace input_method | 99 } // namespace input_method |
100 } // namespace chromeos | 100 } // namespace chromeos |
101 | 101 |
102 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_VIEW_H_ | 102 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_VIEW_H_ |
OLD | NEW |