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=496786e335498ef228ee340578120b14898db5ba;hp=40dcf4fc8952ffa246d9e3a42e77c8e29d90ea72;hb=c125573992c196f15ece50589ae80efed63c8870;hpb=f4d5b3ffc194fc1b1c14f4a79e3efa435a31bc32 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 40dcf4f..496786e 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 @@ -1,21 +1,22 @@ #ifndef __DALI_TOOLKIT_TEST_DUMMY_CONTROL_H__ #define __DALI_TOOLKIT_TEST_DUMMY_CONTROL_H__ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2014 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // INTERNAL INCLUDES #include @@ -37,7 +38,7 @@ public: DummyControl(); DummyControl(const DummyControl& control); - virtual ~DummyControl(); + ~DummyControl(); static DummyControl New( bool override = false ); @@ -46,14 +47,6 @@ public: DummyControl& operator=(const DummyControl& control); - // Used to test signal connections - void CustomSlot1( Actor actor, const Vector3& value ); - -public: - - bool mCustomSlot1Called; - Vector3 mCustomSlot1Value; - public: // Not intended for application developers DummyControl( DummyControlImpl& implementation ); @@ -78,6 +71,11 @@ public: inline TapGestureDetector GetTapGestureDetector() const { return Internal::Control::GetTapGestureDetector(); } inline LongPressGestureDetector GetLongPressGestureDetector() const { return Internal::Control::GetLongPressGestureDetector(); } + // Used to test signal connections + void CustomSlot1( Actor actor ); + + bool mCustomSlot1Called; + protected: DummyControlImpl(); @@ -104,23 +102,27 @@ private: private: // From Internal::Control virtual void OnInitialize(); - virtual void OnThemeChange( StyleManager styleManager ); - virtual void OnFontChange(bool defaultFontChange, bool defaultFontSizeChange); - virtual void OnPinch(PinchGesture pinch); - virtual void OnPan(PanGesture pan); - virtual void OnTap(TapGesture tap); - virtual void OnLongPress(LongPressGesture longPress); + virtual bool OnAccessibilityActivated(); + virtual bool OnAccessibilityTouch( const TouchEvent& touchEvent ); + virtual bool OnAccessibilityValueChange( bool isIncrease ); + + virtual void OnStyleChange( Toolkit::StyleManager styleManager, StyleChange::Type change ); + virtual void OnPinch(const PinchGesture& pinch); + virtual void OnPan(const PanGesture& pan); + virtual void OnTap(const TapGesture& tap); + virtual void OnLongPress(const LongPressGesture& longPress); private: // From CustomActorImpl - virtual void OnStageConnection(); + virtual void OnStageConnection( int depth ); virtual void OnStageDisconnection(); virtual void OnChildAdd(Actor& child); virtual void OnChildRemove(Actor& child); virtual void OnSizeSet(const Vector3& targetSize); virtual void OnSizeAnimation(Animation& animation, const Vector3& targetSize); virtual bool OnTouchEvent(const TouchEvent& event); - virtual bool OnMouseWheelEvent(const MouseWheelEvent& event); + virtual bool OnHoverEvent(const HoverEvent& event); + virtual bool OnWheelEvent(const WheelEvent& event); virtual bool OnKeyEvent(const KeyEvent& event); virtual void OnKeyInputFocusGained(); virtual void OnKeyInputFocusLost(); @@ -128,6 +130,9 @@ private: // From CustomActorImpl public: bool initializeCalled; + bool activatedCalled; + bool onAccTouchedCalled; + bool onAccValueChangeCalled; bool themeChangeCalled; bool fontChangeCalled; bool pinchCalled; @@ -141,7 +146,8 @@ public: bool sizeSetCalled; bool sizeAnimationCalled; bool touchEventCalled; - bool mouseWheelEventCalled; + bool hoverEventCalled; + bool wheelEventCalled; bool keyEventCalled; bool keyInputFocusGained; bool keyInputFocusLost;