X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ffocus-manager%2Fkeyinput-focus-manager-impl.cpp;h=48f0ebfbb6d5aeb1c410b633bb9076b2352f62a7;hp=5d7d4be85b8f287594540afc26efe0e8893b1c42;hb=6a1e5b837622d06f6cd69dc660cd11d23f7153ba;hpb=1db0a8becea3dbdebaa942d934d91824a92434e7 diff --git a/dali-toolkit/internal/focus-manager/keyinput-focus-manager-impl.cpp b/dali-toolkit/internal/focus-manager/keyinput-focus-manager-impl.cpp index 5d7d4be..48f0ebf 100644 --- a/dali-toolkit/internal/focus-manager/keyinput-focus-manager-impl.cpp +++ b/dali-toolkit/internal/focus-manager/keyinput-focus-manager-impl.cpp @@ -19,6 +19,7 @@ #include "keyinput-focus-manager-impl.h" // EXTERNAL INCLUDES +#include // for strcmp #include #include @@ -87,13 +88,13 @@ void KeyInputFocusManager::SetFocus( Toolkit::Control control ) if( previousFocusControl ) { // Notify the control that it has lost key input focus - previousFocusControl.GetImplementation().OnKeyInputFocusLost(); + GetImplementation( previousFocusControl ).OnKeyInputFocusLost(); } mFocusStack.PushBack( &control.GetBaseObject() ); // Tell the new actor that it has gained focus. - control.GetImplementation().OnKeyInputFocusGained(); + GetImplementation( control ).OnKeyInputFocusGained(); // Emit the signal to inform focus change to the application. if ( !mKeyInputFocusChangedSignal.Empty() ) @@ -112,7 +113,7 @@ void KeyInputFocusManager::RemoveFocus( Toolkit::Control control ) control.OffStageSignal().Disconnect( mSlotDelegate, &KeyInputFocusManager::OnFocusControlStageDisconnection ); // Notify the control that it has lost key input focus - control.GetImplementation().OnKeyInputFocusLost(); + GetImplementation( control ).OnKeyInputFocusLost(); // If this is the top-most actor, pop it and change focus to the previous control if( pos == mFocusStack.End() - 1 ) @@ -123,7 +124,7 @@ void KeyInputFocusManager::RemoveFocus( Toolkit::Control control ) if( previouslyFocusedControl ) { // Tell the control that it has gained focus. - previouslyFocusedControl.GetImplementation().OnKeyInputFocusGained(); + GetImplementation( previouslyFocusedControl ).OnKeyInputFocusGained(); } } else @@ -193,7 +194,7 @@ void KeyInputFocusManager::OnKeyEvent( const KeyEvent& event ) if( control ) { // Notify the control about the key event - consumed = control.GetImplementation().EmitKeyEventSignal( event ); + consumed = GetImplementation( control ).EmitKeyEventSignal( event ); } } }