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

Unified Diff: chrome/browser/chromeos/input_method/candidate_window.h

Issue 8840002: (Chrome OS) Notify when the candidate window is opened/closed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unused header Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/candidate_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/input_method/candidate_window.h
diff --git a/chrome/browser/chromeos/input_method/candidate_window.h b/chrome/browser/chromeos/input_method/candidate_window.h
index 062db49ebf66081d7b108594446954c8879fabad..c6f87d25904ee66d6d886a5d07888879fe9f32a6 100644
--- a/chrome/browser/chromeos/input_method/candidate_window.h
+++ b/chrome/browser/chromeos/input_method/candidate_window.h
@@ -21,12 +21,23 @@ namespace input_method {
// rendering the candidate view is deleted.
class CandidateWindowController {
public:
+ class Observer {
+ public:
+ virtual ~Observer() {}
+
+ virtual void CandidateWindowOpened() = 0;
+ virtual void CandidateWindowClosed() = 0;
+ };
+
CandidateWindowController();
virtual ~CandidateWindowController();
// Initializes the candidate window. Returns true on success.
bool Init();
+ void AddObserver(Observer* observer);
+ void RemoveObserver(Observer* observer);
+
private:
class Impl;
Impl* impl_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/candidate_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698