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

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

Issue 9999018: chrome/browser/chromeos/input_method/ refactoring [part 6 of 6] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, remove preferences.h and language_preference.* from this CL Created 8 years, 8 months 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 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_IBUS_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_IBUS_CONTROLLER_H_
7 #pragma once
8
9 #include "chrome/browser/chromeos/input_method/ibus_controller_base.h"
10
11 namespace chromeos {
12 namespace input_method {
13
14 struct InputMethodConfigValue;
15 struct InputMethodProperty;
16 typedef std::vector<InputMethodProperty> InputMethodPropertyList;
17
18 // Mock IBusController implementation.
19 class MockIBusController : public IBusControllerBase {
20 public:
21 MockIBusController();
22 virtual ~MockIBusController();
23
24 // IBusController overrides:
25 virtual bool Start(const std::vector<std::string>& ids) OVERRIDE;
26 virtual bool Stop() OVERRIDE;
27 virtual bool ChangeInputMethod(const std::string& id) OVERRIDE;
28 virtual bool ActivateInputMethodProperty(const std::string& key) OVERRIDE;
29 #if defined(USE_VIRTUAL_KEYBOARD)
30 virtual void SendHandwritingStroke(const HandwritingStroke& stroke) OVERRIDE {
31 }
32 virtual void CancelHandwriting(int n_strokes) OVERRIDE {
33 }
34 #endif
35
36 int start_count_;
37 std::vector<std::string> start_ids_;
38 bool start_return_;
39 int stop_count_;
40 bool stop_return_;
41 int change_input_method_count_;
42 std::string change_input_method_id_;
43 bool change_input_method_return_;
44 int activate_input_method_property_count_;
45 std::string activate_input_method_property_key_;
46 bool activate_input_method_property_return_;
47 int set_input_method_config_internal_count_;
48 ConfigKeyType set_input_method_config_internal_key_;
49 InputMethodConfigValue set_input_method_config_internal_value_;
50 bool set_input_method_config_internal_return_;
51
52 protected:
53 // IBusControllerBase overrides:
54 virtual bool SetInputMethodConfigInternal(
55 const ConfigKeyType& key,
56 const InputMethodConfigValue& value) OVERRIDE;
57
58 private:
59 DISALLOW_COPY_AND_ASSIGN(MockIBusController);
60 };
61
62 } // namespace input_method
63 } // namespace chromeos
64
65 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_IBUS_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698