| 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 #include "chrome/browser/chromeos/input_method/mock_candidate_window_controller.
h" | 5 #include "chrome/browser/chromeos/input_method/mock_candidate_window_controller.
h" |
| 6 | 6 |
| 7 namespace chromeos { | 7 namespace chromeos { |
| 8 namespace input_method { | 8 namespace input_method { |
| 9 | 9 |
| 10 MockCandidateWindowController::MockCandidateWindowController() | 10 MockCandidateWindowController::MockCandidateWindowController() |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 CandidateWindowController::Observer* observer) { | 26 CandidateWindowController::Observer* observer) { |
| 27 ++remove_observer_count_; | 27 ++remove_observer_count_; |
| 28 observers_.RemoveObserver(observer); | 28 observers_.RemoveObserver(observer); |
| 29 } | 29 } |
| 30 | 30 |
| 31 void MockCandidateWindowController::Hide() { | 31 void MockCandidateWindowController::Hide() { |
| 32 ++hide_count_; | 32 ++hide_count_; |
| 33 } | 33 } |
| 34 | 34 |
| 35 void MockCandidateWindowController::NotifyCandidateWindowOpened() { | 35 void MockCandidateWindowController::NotifyCandidateWindowOpened() { |
| 36 FOR_EACH_OBSERVER(CandidateWindowController::Observer, observers_, | 36 for (auto& observer : observers_) |
| 37 CandidateWindowOpened()); | 37 observer.CandidateWindowOpened(); |
| 38 } | 38 } |
| 39 | 39 |
| 40 void MockCandidateWindowController::NotifyCandidateWindowClosed() { | 40 void MockCandidateWindowController::NotifyCandidateWindowClosed() { |
| 41 FOR_EACH_OBSERVER(CandidateWindowController::Observer, observers_, | 41 for (auto& observer : observers_) |
| 42 CandidateWindowClosed()); | 42 observer.CandidateWindowClosed(); |
| 43 } | 43 } |
| 44 | 44 |
| 45 } // namespace input_method | 45 } // namespace input_method |
| 46 } // namespace chromeos | 46 } // namespace chromeos |
| OLD | NEW |