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=75d3efe1091cf4ee170e3977b8fcd230c97eb680;hpb=cb30ef68af0383b073ba2d425d3d95c1e916cbb4;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 75d3efe..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. @@ -48,7 +57,8 @@ public: TEST_VISUAL = PROPERTY_START_INDEX, TEST_VISUAL2, FOREGROUND_VISUAL, - FOCUS_VISUAL + FOCUS_VISUAL, + LABEL_VISUAL }; }; @@ -92,7 +102,7 @@ public: void UnregisterVisual( Property::Index index ); void EnableVisual( Property::Index index, bool enabled ); bool IsVisualEnabled( Property::Index index ); - + int GetVisualCount(); Toolkit::Visual::Base GetVisual( Property::Index index ); Animation CreateTransition( const Toolkit::TransitionData& transition ); @@ -125,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(); @@ -193,6 +207,8 @@ public: bool keyInputFocusLost; Property::Map mLayouts; + RelayoutCallbackFunc mRelayoutCallback; + }; } // namespace Impl