Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: chrome/browser/chromeos/input_method/candidate_window_view.h

Issue 8833008: Add unittest for updating mozc candidates. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698