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.
5 #ifndef CHROMEOS_DBUS_IBUS_MOCK_IBUS_ENGINE_SERVICE_H_
6 #define CHROMEOS_DBUS_IBUS_MOCK_IBUS_ENGINE_SERVICE_H_
9 #include "chromeos/dbus/ibus/ibus_engine_service.h"
13 class MockIBusEngineService
: public IBusEngineService
{
15 MockIBusEngineService();
16 virtual ~MockIBusEngineService();
18 // IBusEngineService overrides.
19 virtual void SetEngine(IBusEngineHandlerInterface
* handler
) OVERRIDE
;
20 virtual void UnsetEngine() OVERRIDE
;
21 virtual void RegisterProperties(
22 const IBusPropertyList
& property_list
) OVERRIDE
;
23 virtual void UpdatePreedit(const IBusText
& ibus_text
,
26 IBusEnginePreeditFocusOutMode mode
) OVERRIDE
;
27 virtual void UpdateAuxiliaryText(const IBusText
& ibus_text
,
28 bool is_visible
) OVERRIDE
;
29 virtual void UpdateLookupTable(const IBusLookupTable
& lookup_table
,
30 bool is_visible
) OVERRIDE
;
31 virtual void UpdateProperty(const IBusProperty
& property
) OVERRIDE
;
32 virtual void ForwardKeyEvent(uint32 keyval
, uint32 keycode
,
33 uint32 state
) OVERRIDE
;
34 virtual void RequireSurroundingText() OVERRIDE
;
35 virtual void CommitText(const std::string
& text
) OVERRIDE
;
38 } // namespace chromeos
40 #endif // CHROMEOS_DBUS_IBUS_MOCK_IBUS_ENGINE_SERVICE_H_