X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Fdummy-control.h;h=d991a82bd2693a4db0cf553b8f593c2ee067a536;hp=d4b8b18444f17043995ceae9a893bdd9fc9d83c0;hb=d65d27692a440b8fb20b69668c32d365ee822320;hpb=e2fbffea1d7c5d3df04b025247c1a77377a3f0c3 diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.h index d4b8b18..d991a82 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.h @@ -2,7 +2,7 @@ #define __DALI_TOOLKIT_TEST_DUMMY_CONTROL_H__ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,6 +21,9 @@ // INTERNAL INCLUDES #include +// EXTERNAL INCLUDES +#include + namespace Dali { @@ -28,6 +31,12 @@ namespace Toolkit { class DummyControlImpl; +class TransitionData; + +namespace Visual +{ +class Base; +} /** * Control does not have a New method so use this dummy class for the handle. @@ -96,6 +105,7 @@ public: int GetVisualCount(); Toolkit::Visual::Base GetVisual( Property::Index index ); Animation CreateTransition( const Toolkit::TransitionData& transition ); + void DoAction( Dali::Property::Index index, Dali::Property::Index action, const Dali::Property::Value attributes ); static void SetProperty( BaseObject* object, Dali::Property::Index index, const Dali::Property::Value& value ); @@ -126,10 +136,14 @@ class DummyControl : public Toolkit::DummyControlImpl { public: + typedef std::function RelayoutCallbackFunc; + static Toolkit::DummyControl New(); void SetLayout( Property::Index visualIndex, Property::Map& map ); + void SetRelayoutCallback( RelayoutCallbackFunc callback ); + private: DummyControl(); @@ -148,6 +162,7 @@ private: // From Internal::Control virtual void OnPan(const PanGesture& pan); virtual void OnTap(const TapGesture& tap); virtual void OnLongPress(const LongPressGesture& longPress); + virtual Vector3 GetNaturalSize(); private: // From CustomActorImpl @@ -192,8 +207,12 @@ public: bool keyEventCalled; bool keyInputFocusGained; bool keyInputFocusLost; + static int constructorCount; + static int destructorCount; Property::Map mLayouts; + RelayoutCallbackFunc mRelayoutCallback; + }; } // namespace Impl