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

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

Issue 11466010: Decompose BrowserStateMonitor into two parts, simplifying unit tests and APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix gypi ordering. 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 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // Adds an observer to receive notifications of input method related 67 // Adds an observer to receive notifications of input method related
68 // changes as desribed in the Observer class above. 68 // changes as desribed in the Observer class above.
69 virtual void AddObserver(Observer* observer) = 0; 69 virtual void AddObserver(Observer* observer) = 0;
70 virtual void AddCandidateWindowObserver( 70 virtual void AddCandidateWindowObserver(
71 CandidateWindowObserver* observer) = 0; 71 CandidateWindowObserver* observer) = 0;
72 virtual void RemoveObserver(Observer* observer) = 0; 72 virtual void RemoveObserver(Observer* observer) = 0;
73 virtual void RemoveCandidateWindowObserver( 73 virtual void RemoveCandidateWindowObserver(
74 CandidateWindowObserver* observer) = 0; 74 CandidateWindowObserver* observer) = 0;
75 75
76 // Sets the current browser status.
77 virtual void SetState(State new_state) = 0;
78
79 // Returns all input methods that are supported, including ones not active. 76 // Returns all input methods that are supported, including ones not active.
80 // This function never returns NULL. Note that input method extensions are NOT 77 // This function never returns NULL. Note that input method extensions are NOT
81 // included in the result. 78 // included in the result.
82 virtual scoped_ptr<InputMethodDescriptors> 79 virtual scoped_ptr<InputMethodDescriptors>
83 GetSupportedInputMethods() const = 0; 80 GetSupportedInputMethods() const = 0;
84 81
85 // Returns the list of input methods we can select (i.e. active) including 82 // Returns the list of input methods we can select (i.e. active) including
86 // extension input methods. 83 // extension input methods.
87 virtual scoped_ptr<InputMethodDescriptors> GetActiveInputMethods() const = 0; 84 virtual scoped_ptr<InputMethodDescriptors> GetActiveInputMethods() const = 0;
88 85
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 154
158 // Switches to an input method (or keyboard layout) which is associated with 155 // Switches to an input method (or keyboard layout) which is associated with
159 // the |accelerator|. 156 // the |accelerator|.
160 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; 157 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0;
161 }; 158 };
162 159
163 } // namespace input_method 160 } // namespace input_method
164 } // namespace chromeos 161 } // namespace chromeos
165 162
166 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ 163 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698