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

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

Issue 11415266: Extract a delegate interface from c/b/input_method to permit decoupling from c/b. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Class comment. 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
(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_INPUT_METHOD_DELEGATE_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "chrome/browser/chromeos/input_method/input_method_delegate.h"
13
14 namespace chromeos {
15 namespace input_method {
16
17 // Persists input method changes to the BrowserProcess local state or to the
18 // user preferences, as appropriate. Accesses the hardware keyboard layout and
19 // application locale from the BrowserProcess.
20 class InputMethodDelegateImpl : public InputMethodDelegate {
21 public:
22 InputMethodDelegateImpl();
23
24 // InputMethodDelegate implementation.
25 virtual void SetSystemInputMethod(
26 const std::string& input_method) OVERRIDE;
27 virtual void SetUserInputMethod(const std::string& input_method) OVERRIDE;
28 virtual std::string GetHardwareKeyboardLayout() const OVERRIDE;
29 virtual std::string GetActiveLocale() const OVERRIDE;
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(InputMethodDelegateImpl);
33 };
34
35 } // namespace input_method
36 } // namespace chromeos
37
38 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698