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

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

Issue 11594008: Revert 173477 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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;
27 23
28 void set_hardware_keyboard_layout(const std::string& value) { 24 void set_hardware_keyboard_layout(const std::string& value) {
29 hardware_keyboard_layout_ = value; 25 hardware_keyboard_layout_ = value;
30 } 26 }
31 27
32 void set_active_locale(const std::string& value) { 28 void set_active_locale(const std::string& value) {
33 active_locale_ = value; 29 active_locale_ = value;
34 } 30 }
35 31
36 private: 32 private:
37 std::string hardware_keyboard_layout_; 33 std::string hardware_keyboard_layout_;
38 std::string active_locale_; 34 std::string active_locale_;
39 DISALLOW_COPY_AND_ASSIGN(MockInputMethodDelegate); 35 DISALLOW_COPY_AND_ASSIGN(MockInputMethodDelegate);
40 }; 36 };
41 37
42 } // namespace input_method 38 } // namespace input_method
43 } // namespace chromeos 39 } // namespace chromeos
44 40
45 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_DELEGATE_H_ 41 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698