Plumb PinchVirtualViewport layers into CC.
[chromium-blink-merge.git] / chromeos / ime / mock_ime_property_handler.h
blobe1d69c74ed8b793b57cdb2f57f9b219e5817024d
1 // Copyright 2013 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_IME_MOCK_IME_PROPERTY_HANDLER_H_
6 #define CHROMEOS_IME_MOCK_IME_PROPERTY_HANDLER_H_
8 #include "chromeos/dbus/ibus/ibus_property.h"
9 #include "chromeos/ime/ibus_bridge.h"
11 namespace chromeos {
13 class CHROMEOS_EXPORT MockIMEPropertyHandler :
14 public IBusPanelPropertyHandlerInterface {
15 public:
16 MockIMEPropertyHandler();
17 virtual ~MockIMEPropertyHandler();
19 virtual void RegisterProperties(const IBusPropertyList& properties) OVERRIDE;
20 virtual void UpdateProperty(const IBusProperty& property) OVERRIDE;
22 int register_properties_call_count() {
23 return register_properties_call_count_;
26 const IBusPropertyList& last_registered_properties() {
27 return last_registered_properties_;
30 // Resets all call count.
31 void Reset();
33 private:
34 int register_properties_call_count_;
35 IBusPropertyList last_registered_properties_;
38 } // namespace chromeos
40 #endif // CHROMEOS_IME_MOCK_IME_PROPERTY_HANDLER_H_