| Index: chrome/browser/chromeos/input_method/candidate_window_view.h
|
| diff --git a/chrome/browser/chromeos/input_method/candidate_window_view.h b/chrome/browser/chromeos/input_method/candidate_window_view.h
|
| index b5570eeb96478997408dbde48e3fa0a4f6bda3ac..2e8adfdb8049d14a4d25da2a8ba558aa6466b55d 100644
|
| --- a/chrome/browser/chromeos/input_method/candidate_window_view.h
|
| +++ b/chrome/browser/chromeos/input_method/candidate_window_view.h
|
| @@ -140,8 +140,14 @@ class CandidateWindowView : public views::View {
|
| // Returns the appropriate area (header or footer) to put auxiliary texts.
|
| InformationTextArea* GetAuxiliaryTextArea();
|
|
|
| + // Returns true if the candidate window is open. The suggestion window does
|
| + // not count as the candidate window.
|
| bool IsCandidateWindowOpen() const;
|
|
|
| + // Notifies observers if the candidate window's opened/closed state has
|
| + // changed from the previous call to this function.
|
| + void NotifyIfCandidateWindowOpenedOrClosed();
|
| +
|
| // The lookup table (candidates).
|
| InputMethodLookupTable lookup_table_;
|
|
|
| @@ -192,6 +198,10 @@ class CandidateWindowView : public views::View {
|
|
|
| bool is_suggestion_window_location_available_;
|
|
|
| + // True if the candidate window was open. This is used to determine when to
|
| + // send OnCandidateWindowOpened and OnCandidateWindowClosed events.
|
| + bool was_candidate_window_open_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(CandidateWindowView);
|
| };
|
|
|
|
|