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

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

Issue 11558017: Decouple input_method from BrowserThread (and content/). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build failure. 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 #include "chrome/browser/chromeos/input_method/mock_xkeyboard.h" 5 #include "chrome/browser/chromeos/input_method/mock_xkeyboard.h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 namespace input_method { 8 namespace input_method {
9 9
10 MockXKeyboard::MockXKeyboard() 10 MockXKeyboard::MockXKeyboard()
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 unsigned int MockXKeyboard::GetNumLockMask() { 56 unsigned int MockXKeyboard::GetNumLockMask() {
57 return 1; 57 return 1;
58 } 58 }
59 59
60 void MockXKeyboard::GetLockedModifiers(bool* out_caps_lock_enabled, 60 void MockXKeyboard::GetLockedModifiers(bool* out_caps_lock_enabled,
61 bool* out_num_lock_enabled) { 61 bool* out_num_lock_enabled) {
62 *out_caps_lock_enabled = caps_lock_is_enabled_; 62 *out_caps_lock_enabled = caps_lock_is_enabled_;
63 *out_num_lock_enabled = num_lock_is_enabled_; 63 *out_num_lock_enabled = num_lock_is_enabled_;
64 } 64 }
65 65
66 bool MockXKeyboard::SetAutoRepeatEnabled(bool enabled) {
67 auto_repeat_enabled_ = enabled;
68 return true;
69 }
70
71 bool MockXKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) {
72 auto_repeat_rate_ = rate;
73 return true;
74 }
75
66 } // namespace input_method 76 } // namespace input_method
67 } // namespace chromeos 77 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/mock_xkeyboard.h ('k') | chrome/browser/chromeos/input_method/xkeyboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698