Home | History | Annotate | Download | only in input_method
      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 
      8 #include "chrome/browser/chromeos/input_method/ibus_controller_base.h"
      9 
     10 namespace chromeos {
     11 namespace input_method {
     12 
     13 struct InputMethodConfigValue;
     14 struct InputMethodProperty;
     15 
     16 // Mock IBusController implementation.
     17 // TODO(nona): Remove this class and use MockIBus stuff instead.
     18 class MockIBusController : public IBusControllerBase {
     19  public:
     20   MockIBusController();
     21   virtual ~MockIBusController();
     22 
     23   // IBusController overrides:
     24   virtual bool ActivateInputMethodProperty(const std::string& key) OVERRIDE;
     25 
     26   int activate_input_method_property_count_;
     27   std::string activate_input_method_property_key_;
     28   bool activate_input_method_property_return_;
     29   int set_input_method_config_internal_count_;
     30   ConfigKeyType set_input_method_config_internal_key_;
     31   InputMethodConfigValue set_input_method_config_internal_value_;
     32   bool set_input_method_config_internal_return_;
     33 
     34  protected:
     35   // IBusControllerBase overrides:
     36   virtual bool SetInputMethodConfigInternal(
     37       const ConfigKeyType& key,
     38       const InputMethodConfigValue& value) OVERRIDE;
     39 
     40  private:
     41   DISALLOW_COPY_AND_ASSIGN(MockIBusController);
     42 };
     43 
     44 }  // namespace input_method
     45 }  // namespace chromeos
     46 
     47 #endif  // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_IBUS_CONTROLLER_H_
     48