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

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

Issue 10034009: chrome/browser/chromeos/input_method/ refactoring [part 3 of 6]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/mock_candidate_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_CANDIDATE_WINDOW_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_CANDIDATE_WINDOW_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/observer_list.h"
11 #include "chrome/browser/chromeos/input_method/candidate_window.h"
12
13 namespace chromeos {
14 namespace input_method {
15
16 // The mock CandidateWindowController implementation for testing.
17 class MockCandidateWindowController : public CandidateWindowController {
18 public:
19 MockCandidateWindowController();
20 virtual ~MockCandidateWindowController();
21
22 // CandidateWindowController overrides:
23 virtual bool Init() OVERRIDE;
24 virtual void AddObserver(Observer* observer) OVERRIDE;
25 virtual void RemoveObserver(Observer* observer) OVERRIDE;
26
27 // Notifies observers.
28 void NotifyCandidateWindowOpened();
29 void NotifyCandidateWindowClosed();
30
31 int init_count_;
32 int add_observer_count_;
33 int remove_observer_count_;
34
35 private:
36 ObserverList<CandidateWindowController::Observer> observers_;
37
38 DISALLOW_COPY_AND_ASSIGN(MockCandidateWindowController);
39 };
40
41 } // namespace input_method
42 } // namespace chromeos
43
44 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_CANDIDATE_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/mock_candidate_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698