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

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

Issue 11280159: Remove ibus dependency from PanelService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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) 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 // This file implements the input method candidate window used on Chrome OS. 5 // This file implements the input method candidate window used on Chrome OS.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_CONTROLLER_H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_CONTROLLER_H_
8 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_CONTROLLER_H_ 8 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_CONTROLLER_H_
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 namespace input_method { 13 namespace input_method {
14 14 class IBusController;
satorux1 2012/11/30 05:37:34 Please add blank lines above and below the line.
Seigo Nonaka 2012/12/01 16:22:42 Done.
15 // CandidateWindowController is used for controlling the input method 15 // CandidateWindowController is used for controlling the input method
16 // candidate window. Once the initialization is done, the controller 16 // candidate window. Once the initialization is done, the controller
17 // starts monitoring signals sent from the the background input method 17 // starts monitoring signals sent from the the background input method
18 // daemon, and shows and hides the candidate window as neeeded. Upon 18 // daemon, and shows and hides the candidate window as neeeded. Upon
19 // deletion of the object, monitoring stops and the view used for 19 // deletion of the object, monitoring stops and the view used for
20 // rendering the candidate view is deleted. 20 // rendering the candidate view is deleted.
21 class CandidateWindowController { 21 class CandidateWindowController {
22 public: 22 public:
23 class Observer { 23 class Observer {
24 public: 24 public:
25 virtual ~Observer() {} 25 virtual ~Observer() {}
26 26
27 virtual void CandidateWindowOpened() = 0; 27 virtual void CandidateWindowOpened() = 0;
28 virtual void CandidateWindowClosed() = 0; 28 virtual void CandidateWindowClosed() = 0;
29 }; 29 };
30 30
31 virtual ~CandidateWindowController() {} 31 virtual ~CandidateWindowController() {}
32 32
33 // Initializes the candidate window. Returns true on success. 33 // Initializes the candidate window. Returns true on success.
34 virtual bool Init() = 0; 34 virtual bool Init() = 0;
35 virtual void AddObserver(Observer* observer) = 0; 35 virtual void AddObserver(Observer* observer) = 0;
36 virtual void RemoveObserver(Observer* observer) = 0; 36 virtual void RemoveObserver(Observer* observer) = 0;
37 37
38 // Gets an instance of CandidateWindowController. Caller has to delete the 38 // Gets an instance of CandidateWindowController. Caller has to delete the
39 // returned object. 39 // returned object.
40 static CandidateWindowController* CreateCandidateWindowController(); 40 static CandidateWindowController* CreateCandidateWindowController(
41 IBusController* controller);
41 }; 42 };
42 43
43 } // namespace input_method 44 } // namespace input_method
44 } // namespace chromeos 45 } // namespace chromeos
45 46
46 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_CONTROLLER_H_ 47 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_CANDIDATE_WINDOW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698