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

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

Issue 139803010: Support comma separated hardware keyboard layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments Created 6 years, 10 months 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_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chromeos/ime/input_method_delegate.h" 12 #include "chromeos/ime/input_method_delegate.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 namespace input_method { 15 namespace input_method {
16 16
17 // Accesses the hardware keyboard layout and application locale from the 17 // Accesses the hardware keyboard layout and application locale from the
18 // BrowserProcess. 18 // BrowserProcess.
19 class InputMethodDelegateImpl : public InputMethodDelegate { 19 class InputMethodDelegateImpl : public InputMethodDelegate {
20 public: 20 public:
21 InputMethodDelegateImpl(); 21 InputMethodDelegateImpl();
22 virtual ~InputMethodDelegateImpl();
22 23
23 // InputMethodDelegate implementation. 24 // InputMethodDelegate implementation.
24 virtual std::string GetHardwareKeyboardLayout() const OVERRIDE; 25 virtual std::string GetHardwareKeyboardLayouts() const OVERRIDE;
25 virtual base::string16 GetLocalizedString(int resource_id) const OVERRIDE; 26 virtual base::string16 GetLocalizedString(int resource_id) const OVERRIDE;
26 virtual base::string16 GetDisplayLanguageName( 27 virtual base::string16 GetDisplayLanguageName(
27 const std::string& language_code) const OVERRIDE; 28 const std::string& language_code) const OVERRIDE;
29 virtual void SetHardwareKeyboardLayoutForTesting(
30 const std::string& layout) OVERRIDE;
28 31
29 private: 32 private:
30 DISALLOW_COPY_AND_ASSIGN(InputMethodDelegateImpl); 33 DISALLOW_COPY_AND_ASSIGN(InputMethodDelegateImpl);
31 }; 34 };
32 35
33 } // namespace input_method 36 } // namespace input_method
34 } // namespace chromeos 37 } // namespace chromeos
35 38
36 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_ 39 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698