BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / chromeos / input_method / mock_candidate_window_controller.h
blob4a6b1149d2fc0c4275e3ccf5a1377360d79c2934
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_CANDIDATE_WINDOW_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_CANDIDATE_WINDOW_CONTROLLER_H_
8 #include "base/basictypes.h"
9 #include "base/observer_list.h"
10 #include "chrome/browser/chromeos/input_method/candidate_window_controller.h"
12 namespace chromeos {
13 namespace input_method {
15 // The mock CandidateWindowController implementation for testing.
16 class MockCandidateWindowController : public CandidateWindowController {
17 public:
18 MockCandidateWindowController();
19 ~MockCandidateWindowController() override;
21 // CandidateWindowController overrides:
22 void AddObserver(Observer* observer) override;
23 void RemoveObserver(Observer* observer) override;
24 void Hide() override;
26 // Notifies observers.
27 void NotifyCandidateWindowOpened();
28 void NotifyCandidateWindowClosed();
30 int add_observer_count_;
31 int remove_observer_count_;
32 int hide_count_;
34 private:
35 base::ObserverList<CandidateWindowController::Observer> observers_;
37 DISALLOW_COPY_AND_ASSIGN(MockCandidateWindowController);
40 } // namespace input_method
41 } // namespace chromeos
43 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_CANDIDATE_WINDOW_CONTROLLER_H_