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

Side by Side Diff: chrome/browser/chromeos/input_method/mock_input_method_delegate.cc

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 #include "chrome/browser/chromeos/input_method/mock_input_method_delegate.h"
6
7 namespace chromeos {
8 namespace input_method {
9
10 MockInputMethodDelegate::MockInputMethodDelegate()
11 : active_locale_("en"),
12 update_system_input_method_count_(0),
13 update_user_input_method_count_(0) {
14 }
15
16 MockInputMethodDelegate::~MockInputMethodDelegate() {
17 }
18
19 void MockInputMethodDelegate::SetSystemInputMethod(
20 const std::string& input_method) {
21 ++update_system_input_method_count_;
22 system_input_method_ = input_method;
23 }
24
25 void MockInputMethodDelegate::SetUserInputMethod(
26 const std::string& input_method) {
27 ++update_user_input_method_count_;
28 user_input_method_ = input_method;
29 }
30
31 std::string MockInputMethodDelegate::GetHardwareKeyboardLayout() const {
32 return hardware_keyboard_layout_;
33 }
34
35 std::string MockInputMethodDelegate::GetActiveLocale() const {
36 return active_locale_;
37 }
38
39 } // namespace input_method
40 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698