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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_delegate.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_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
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
15 // Provides access to read/persist Input Method-related properties. 15 // Provides access to read/persist Input Method-related properties.
16 class InputMethodDelegate { 16 class InputMethodDelegate {
17 public: 17 public:
18 InputMethodDelegate() {} 18 InputMethodDelegate() {}
19 virtual ~InputMethodDelegate() {} 19 virtual ~InputMethodDelegate() {}
20 20
21 // Persists input method choices when no user is logged in.
22 virtual void SetSystemInputMethod(const std::string& input_method) = 0;
23 // Persists input method choices when the user is logged in.
24 virtual void SetUserInputMethod(const std::string& input_method) = 0;
25 // Retrieves the hardware keyboard layout ID. May return an empty string if 21 // Retrieves the hardware keyboard layout ID. May return an empty string if
26 // the ID is unknown. 22 // the ID is unknown.
27 virtual std::string GetHardwareKeyboardLayout() const = 0; 23 virtual std::string GetHardwareKeyboardLayout() const = 0;
28 // Retrieves the currently active UI locale. 24 // Retrieves the currently active UI locale.
29 virtual std::string GetActiveLocale() const = 0; 25 virtual std::string GetActiveLocale() const = 0;
30 26
31 private: 27 private:
32 DISALLOW_COPY_AND_ASSIGN(InputMethodDelegate); 28 DISALLOW_COPY_AND_ASSIGN(InputMethodDelegate);
33 }; 29 };
34 30
35 } // namespace input_method 31 } // namespace input_method
36 } // namespace chromeos 32 } // namespace chromeos
37 33
38 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_H_ 34 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698