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

Side by Side Diff: chrome/browser/chromeos/input_method/mock_input_method_delegate.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_input_method_delegate.h" 5 #include "chrome/browser/chromeos/input_method/mock_input_method_delegate.h"
6 6
7 #include "base/logging.h"
8 #include "base/sequenced_task_runner.h"
9
7 namespace chromeos { 10 namespace chromeos {
8 namespace input_method { 11 namespace input_method {
9 12
10 MockInputMethodDelegate::MockInputMethodDelegate() 13 MockInputMethodDelegate::MockInputMethodDelegate()
11 : active_locale_("en") { 14 : active_locale_("en") {
12 } 15 }
13 16
14 MockInputMethodDelegate::~MockInputMethodDelegate() { 17 MockInputMethodDelegate::~MockInputMethodDelegate() {
15 } 18 }
16 19
17 std::string MockInputMethodDelegate::GetHardwareKeyboardLayout() const { 20 std::string MockInputMethodDelegate::GetHardwareKeyboardLayout() const {
18 return hardware_keyboard_layout_; 21 return hardware_keyboard_layout_;
19 } 22 }
20 23
21 std::string MockInputMethodDelegate::GetActiveLocale() const { 24 std::string MockInputMethodDelegate::GetActiveLocale() const {
22 return active_locale_; 25 return active_locale_;
23 } 26 }
24 27
28 scoped_refptr<base::SequencedTaskRunner>
29 MockInputMethodDelegate::GetDefaultTaskRunner() const {
30 NOTREACHED();
31 return NULL;
32 }
33
34 scoped_refptr<base::SequencedTaskRunner>
35 MockInputMethodDelegate::GetWorkerTaskRunner() const {
36 NOTREACHED();
37 return NULL;
38 }
39
25 } // namespace input_method 40 } // namespace input_method
26 } // namespace chromeos 41 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698