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 "chrome/browser/chromeos/input_method/ibus_ui_controller.h" | 9 #include "chrome/browser/chromeos/input_method/ibus_ui_controller.h" |
10 #include "ui/views/controls/label.h" | 10 #include "ui/views/controls/label.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // appearance to make it look like unclickable area. | 53 // appearance to make it look like unclickable area. |
54 void SetRowEnabled(bool enabled); | 54 void SetRowEnabled(bool enabled); |
55 | 55 |
56 // Returns the relative position of the candidate label. | 56 // Returns the relative position of the candidate label. |
57 gfx::Point GetCandidateLabelPosition() const; | 57 gfx::Point GetCandidateLabelPosition() const; |
58 | 58 |
59 private: | 59 private: |
60 friend class CandidateWindowViewTest; | 60 friend class CandidateWindowViewTest; |
61 FRIEND_TEST_ALL_PREFIXES(CandidateWindowViewTest, ShortcutSettingTest); | 61 FRIEND_TEST_ALL_PREFIXES(CandidateWindowViewTest, ShortcutSettingTest); |
62 // Overridden from View: | 62 // Overridden from View: |
63 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 63 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
64 | 64 |
65 // Notifies labels of their new background colors. Called whenever the view's | 65 // Notifies labels of their new background colors. Called whenever the view's |
66 // background color changes. | 66 // background color changes. |
67 void UpdateLabelBackgroundColors(); | 67 void UpdateLabelBackgroundColors(); |
68 | 68 |
69 // Zero-origin index in the current page. | 69 // Zero-origin index in the current page. |
70 int index_in_page_; | 70 int index_in_page_; |
71 | 71 |
72 // The orientation of the candidate view. | 72 // The orientation of the candidate view. |
73 InputMethodLookupTable::Orientation orientation_; | 73 InputMethodLookupTable::Orientation orientation_; |
(...skipping 15 matching lines...) Expand all Loading... |
89 views::View* infolist_icon_; | 89 views::View* infolist_icon_; |
90 bool infolist_icon_enabled_; | 90 bool infolist_icon_enabled_; |
91 | 91 |
92 DISALLOW_COPY_AND_ASSIGN(CandidateView); | 92 DISALLOW_COPY_AND_ASSIGN(CandidateView); |
93 }; | 93 }; |
94 | 94 |
95 } // namespace input_method | 95 } // namespace input_method |
96 } // namespace chromeos | 96 } // namespace chromeos |
97 | 97 |
98 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_VIEW_H_ | 98 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_VIEW_H_ |
OLD | NEW |