X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Fdummy-control.h;h=d0387d92a2c68e4137f0b1836acc38546b962e01;hb=74c8fd064793430f586e7f2572e3a0bd0fb50af4;hp=f27f296482bf7834a06a9ef3f0885985da4459fb;hpb=0ade1ea02b460b002d9cd82cd3023a5107eb6294;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git 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 f27f296..d0387d9 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. @@ -46,7 +55,10 @@ public: enum Type { TEST_VISUAL = PROPERTY_START_INDEX, - TEST_VISUAL2 + TEST_VISUAL2, + FOREGROUND_VISUAL, + FOCUS_VISUAL, + LABEL_VISUAL }; }; @@ -89,8 +101,8 @@ public: void RegisterVisual( Property::Index index, Toolkit::Visual::Base visual, bool enabled ); void UnregisterVisual( Property::Index index ); void EnableVisual( Property::Index index, bool enabled ); - bool IsVisualEnabled( Property::Index indepx ); - + bool IsVisualEnabled( Property::Index index ); + int GetVisualCount(); Toolkit::Visual::Base GetVisual( Property::Index index ); Animation CreateTransition( const Toolkit::TransitionData& transition ); @@ -123,10 +135,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(); @@ -191,6 +207,8 @@ public: bool keyInputFocusLost; Property::Map mLayouts; + RelayoutCallbackFunc mRelayoutCallback; + }; } // namespace Impl