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 "base/gtest_prod_util.h" |
8 #include "chrome/browser/chromeos/input_method/ibus_ui_controller.h" | 9 #include "chrome/browser/chromeos/input_method/ibus_ui_controller.h" |
9 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
10 | 11 |
11 namespace chromeos { | 12 namespace chromeos { |
12 namespace input_method { | 13 namespace input_method { |
13 | 14 |
14 class CandidateView; | 15 class CandidateView; |
15 class InformationTextArea; | 16 class InformationTextArea; |
16 class HidableArea; | 17 class HidableArea; |
17 | 18 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 const gfx::Rect& cursor_location() const { return cursor_location_; } | 124 const gfx::Rect& cursor_location() const { return cursor_location_; } |
124 | 125 |
125 protected: | 126 protected: |
126 // Override View::VisibilityChanged() | 127 // Override View::VisibilityChanged() |
127 virtual void VisibilityChanged(View* starting_from, bool is_visible) OVERRIDE; | 128 virtual void VisibilityChanged(View* starting_from, bool is_visible) OVERRIDE; |
128 | 129 |
129 // Override View::OnBoundsChanged() | 130 // Override View::OnBoundsChanged() |
130 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; | 131 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; |
131 | 132 |
132 private: | 133 private: |
| 134 FRIEND_TEST_ALL_PREFIXES(CandidateWindowViewTest, MozcUpdateCandidateTest); |
| 135 |
133 // Initializes the candidate views if needed. | 136 // Initializes the candidate views if needed. |
134 void MaybeInitializeCandidateViews( | 137 void MaybeInitializeCandidateViews( |
135 const InputMethodLookupTable& lookup_table); | 138 const InputMethodLookupTable& lookup_table); |
136 | 139 |
137 // Returns the appropriate area (header or footer) to put auxiliary texts. | 140 // Returns the appropriate area (header or footer) to put auxiliary texts. |
138 InformationTextArea* GetAuxiliaryTextArea(); | 141 InformationTextArea* GetAuxiliaryTextArea(); |
139 | 142 |
140 // The lookup table (candidates). | 143 // The lookup table (candidates). |
141 InputMethodLookupTable lookup_table_; | 144 InputMethodLookupTable lookup_table_; |
142 | 145 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 190 |
188 bool is_suggestion_window_location_available_; | 191 bool is_suggestion_window_location_available_; |
189 | 192 |
190 DISALLOW_COPY_AND_ASSIGN(CandidateWindowView); | 193 DISALLOW_COPY_AND_ASSIGN(CandidateWindowView); |
191 }; | 194 }; |
192 | 195 |
193 } // namespace input_method | 196 } // namespace input_method |
194 } // namespace chromeos | 197 } // namespace chromeos |
195 | 198 |
196 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_VIEW_H_ | 199 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_VIEW_H_ |
OLD | NEW |