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

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

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 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_DELEGATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/chromeos/input_method/input_method_delegate.h" 10 #include "chrome/browser/chromeos/input_method/input_method_delegate.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 namespace input_method { 13 namespace input_method {
14 14
15 class MockInputMethodDelegate : public InputMethodDelegate { 15 class MockInputMethodDelegate : public InputMethodDelegate {
16 public: 16 public:
17 MockInputMethodDelegate(); 17 MockInputMethodDelegate();
18 virtual ~MockInputMethodDelegate(); 18 virtual ~MockInputMethodDelegate();
19 19
20 // InputMethodDelegate implementation: 20 // InputMethodDelegate implementation:
21 virtual std::string GetHardwareKeyboardLayout() const OVERRIDE; 21 virtual std::string GetHardwareKeyboardLayout() const OVERRIDE;
22 virtual std::string GetActiveLocale() const OVERRIDE; 22 virtual std::string GetActiveLocale() const OVERRIDE;
23 virtual scoped_refptr<base::SequencedTaskRunner>
24 GetDefaultTaskRunner() const OVERRIDE;
25 virtual scoped_refptr<base::SequencedTaskRunner>
26 GetWorkerTaskRunner() const OVERRIDE;
23 27
24 void set_hardware_keyboard_layout(const std::string& value) { 28 void set_hardware_keyboard_layout(const std::string& value) {
25 hardware_keyboard_layout_ = value; 29 hardware_keyboard_layout_ = value;
26 } 30 }
27 31
28 void set_active_locale(const std::string& value) { 32 void set_active_locale(const std::string& value) {
29 active_locale_ = value; 33 active_locale_ = value;
30 } 34 }
31 35
32 private: 36 private:
33 std::string hardware_keyboard_layout_; 37 std::string hardware_keyboard_layout_;
34 std::string active_locale_; 38 std::string active_locale_;
35 DISALLOW_COPY_AND_ASSIGN(MockInputMethodDelegate); 39 DISALLOW_COPY_AND_ASSIGN(MockInputMethodDelegate);
36 }; 40 };
37 41
38 } // namespace input_method 42 } // namespace input_method
39 } // namespace chromeos 43 } // namespace chromeos
40 44
41 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_DELEGATE_H_ 45 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698