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

Side by Side Diff: chromeos/ime/mock_input_method_delegate.h

Issue 14200032: Decouple l10n_util from InputMethodUtil. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: /MockInputMethodDelegate/FakeInputMethodDelegate/ Created 7 years, 8 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
« no previous file with comments | « chromeos/ime/input_method_delegate.h ('k') | chromeos/ime/mock_input_method_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 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 CHROMEOS_IME_MOCK_INPUT_METHOD_DELEGATE_H_
6 #define CHROMEOS_IME_MOCK_INPUT_METHOD_DELEGATE_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chromeos/chromeos_export.h"
11 #include "chromeos/ime/input_method_delegate.h"
12
13 namespace chromeos {
14 namespace input_method {
15
16 class CHROMEOS_EXPORT MockInputMethodDelegate : public InputMethodDelegate {
17 public:
18 MockInputMethodDelegate();
19 virtual ~MockInputMethodDelegate();
20
21 // InputMethodDelegate implementation:
22 virtual std::string GetHardwareKeyboardLayout() const OVERRIDE;
23 virtual std::string GetActiveLocale() const OVERRIDE;
24
25 void set_hardware_keyboard_layout(const std::string& value) {
26 hardware_keyboard_layout_ = value;
27 }
28
29 void set_active_locale(const std::string& value) {
30 active_locale_ = value;
31 }
32
33 private:
34 std::string hardware_keyboard_layout_;
35 std::string active_locale_;
36 DISALLOW_COPY_AND_ASSIGN(MockInputMethodDelegate);
37 };
38
39 } // namespace input_method
40 } // namespace chromeos
41
42 #endif // CHROMEOS_IME_MOCK_INPUT_METHOD_DELEGATE_H_
OLDNEW
« no previous file with comments | « chromeos/ime/input_method_delegate.h ('k') | chromeos/ime/mock_input_method_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698