[Tizen] Add AutofillContainer class and autofill implementation
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / control / control-data-impl.h
1 #ifndef DALI_TOOLKIT_CONTROL_DATA_IMPL_H
2 #define DALI_TOOLKIT_CONTROL_DATA_IMPL_H
3
4 /*
5  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <dali-toolkit/devel-api/controls/control-devel.h>
23 #include <dali/devel-api/adaptor-framework/accessibility.h>
24 #include <dali/devel-api/adaptor-framework/autofill-item.h>
25 #include <dali/devel-api/adaptor-framework/autofill-manager.h>
26 #include <dali/public-api/object/property-notification.h>
27 #include <dali/public-api/object/type-registry.h>
28 #include <string>
29
30 // INTERNAL INCLUDES
31 #include <dali-toolkit/devel-api/visual-factory/visual-base.h>
32 #include <dali-toolkit/devel-api/controls/text-controls/autofill-container.h>
33 #include <dali-toolkit/internal/builder/dictionary.h>
34 #include <dali-toolkit/internal/builder/style.h>
35 #include <dali-toolkit/internal/controls/tooltip/tooltip.h>
36 #include <dali-toolkit/internal/visuals/visual-event-observer.h>
37 #include <dali-toolkit/public-api/controls/control-impl.h>
38 #include <dali-toolkit/public-api/visuals/visual-properties.h>
39 #include <dali/devel-api/common/owner-container.h>
40 #include <dali/integration-api/debug.h>
41 #include <memory>
42
43 namespace Dali
44 {
45 namespace Toolkit
46 {
47 namespace Internal
48 {
49 /**
50   * Struct used to store Visual within the control, index is a unique key for each visual.
51   */
52 struct RegisteredVisual
53 {
54   Property::Index       index;
55   Toolkit::Visual::Base visual;
56   bool                  enabled : 1;
57   bool                  pending : 1;
58
59   RegisteredVisual(Property::Index aIndex, Toolkit::Visual::Base& aVisual, bool aEnabled, bool aPendingReplacement)
60   : index(aIndex),
61     visual(aVisual),
62     enabled(aEnabled),
63     pending(aPendingReplacement)
64   {
65   }
66 };
67
68 typedef Dali::OwnerContainer<RegisteredVisual*> RegisteredVisualContainer;
69
70 /**
71  * @brief Holds the Implementation for the internal control class
72  */
73 class Control::Impl : public ConnectionTracker, public Visual::EventObserver
74 {
75 public:
76   /**
77    * @brief Retrieves the implementation of the internal control class.
78    * @param[in] internalControl A ref to the control whose internal implementation is required
79    * @return The internal implementation
80    */
81   static Control::Impl& Get(Internal::Control& internalControl);
82
83   /**
84    * @copydoc Get( Internal::Control& )
85    */
86   static const Control::Impl& Get(const Internal::Control& internalControl);
87
88   /**
89    * @brief Constructor.
90    * @param[in] controlImpl The control which owns this implementation
91    */
92   Impl(Control& controlImpl);
93
94   /**
95    * @brief Destructor.
96    */
97   ~Impl();
98
99   /**
100    * @brief Called when a pinch is detected.
101    * @param[in] actor The actor the pinch occurred on
102    * @param[in] pinch The pinch gesture details
103    */
104   void PinchDetected(Actor actor, const PinchGesture& pinch);
105
106   /**
107    * @brief Called when a pan is detected.
108    * @param[in] actor The actor the pan occurred on
109    * @param[in] pinch The pan gesture details
110    */
111   void PanDetected(Actor actor, const PanGesture& pan);
112
113   /**
114    * @brief Called when a tap is detected.
115    * @param[in] actor The actor the tap occurred on
116    * @param[in] pinch The tap gesture details
117    */
118   void TapDetected(Actor actor, const TapGesture& tap);
119
120   /**
121    * @brief Called when a long-press is detected.
122    * @param[in] actor The actor the long-press occurred on
123    * @param[in] pinch The long-press gesture details
124    */
125   void LongPressDetected(Actor actor, const LongPressGesture& longPress);
126
127   /**
128    * @brief Called when a resource is ready.
129    * @param[in] object The visual whose resources are ready
130    * @note Overriding method in Visual::EventObserver.
131    */
132   void ResourceReady(Visual::Base& object) override;
133
134   /**
135    * @brief Called when an event occurs.
136    * @param[in] object The visual whose events occur
137    * @param[in] signalId The signal to emit. See Visual to find supported signals
138    * @note Overriding method in Visual::EventObserver.
139    */
140   void NotifyVisualEvent(Visual::Base& object, Property::Index signalId) override;
141
142   /**
143    * @copydoc Dali::Toolkit::DevelControl::RegisterVisual()
144    */
145   void RegisterVisual(Property::Index index, Toolkit::Visual::Base& visual);
146
147   /**
148    * @copydoc Dali::Toolkit::DevelControl::RegisterVisual()
149    */
150   void RegisterVisual(Property::Index index, Toolkit::Visual::Base& visual, int depthIndex);
151
152   /**
153    * @copydoc Dali::Toolkit::DevelControl::RegisterVisual()
154    */
155   void RegisterVisual(Property::Index index, Toolkit::Visual::Base& visual, bool enabled);
156
157   /**
158    * @copydoc Dali::Toolkit::DevelControl::RegisterVisual()
159    */
160   void RegisterVisual(Property::Index index, Toolkit::Visual::Base& visual, bool enabled, int depthIndex);
161
162   /**
163    * @copydoc Dali::Toolkit::DevelControl::UnregisterVisual()
164    */
165   void UnregisterVisual(Property::Index index);
166
167   /**
168    * @copydoc Dali::Toolkit::DevelControl::GetVisual()
169    */
170   Toolkit::Visual::Base GetVisual(Property::Index index) const;
171
172   /**
173    * @copydoc Dali::Toolkit::DevelControl::EnableVisual()
174    */
175   void EnableVisual(Property::Index index, bool enable);
176
177   /**
178    * @copydoc Dali::Toolkit::DevelControl::IsVisualEnabled()
179    */
180   bool IsVisualEnabled(Property::Index index) const;
181
182   /**
183    * @brief Stops observing the given visual.
184    * @param[in] visual The visual to stop observing
185    */
186   void StopObservingVisual(Toolkit::Visual::Base& visual);
187
188   /**
189    * @brief Starts observing the given visual.
190    * @param[in] visual The visual to start observing
191    */
192   void StartObservingVisual(Toolkit::Visual::Base& visual);
193
194   /**
195    * @copydoc Dali::Toolkit::DevelControl::GetVisualResourceStatus()
196    */
197   Toolkit::Visual::ResourceStatus GetVisualResourceStatus(Property::Index index) const;
198
199   /**
200    * @param[in,out] animation Handle to existing animation, or an empty handle that
201    * can be set to a New animation if createAnimation is true
202    * @param[in] transitionData The transition data describing the animation
203    * @param[in] createAnimation True if the animation should be created
204    */
205   void AddTransitions(Dali::Animation&               animation,
206                       const Toolkit::TransitionData& transitionData,
207                       bool                           createAnimation = false);
208
209   /**
210    * @copydoc Dali::Toolkit::DevelControl::CreateTransition()
211    */
212   Dali::Animation CreateTransition(const Toolkit::TransitionData& transitionData);
213
214   /**
215    * @copydoc Dali::Toolkit::DevelControl::DoAction()
216    */
217   void DoAction(Dali::Property::Index visualIndex, Dali::Property::Index actionId, const Dali::Property::Value attributes);
218
219   /**
220    * @brief Function used to set control properties.
221    * @param[in] object The object whose property to set
222    * @param[in] index The index of the property to set
223    * @param[in] value The value of the property to set
224    */
225   static void SetProperty(BaseObject* object, Property::Index index, const Property::Value& value);
226
227   /**
228    * @brief Function used to retrieve the value of control properties.
229    * @param[in] object The object whose property to get
230    * @param[in] index The index of the property to get
231    * @return The value of the property
232    */
233   static Property::Value GetProperty(BaseObject* object, Property::Index index);
234
235   /**
236    * @brief Sets the state of the control.
237    * @param[in] newState The state to set
238    * @param[in] withTransitions Whether to show a transition when changing to the new state
239    */
240   void SetState(DevelControl::State newState, bool withTransitions = true);
241
242   /**
243    * @brief Sets the sub-state of the control.
244    * @param[in] newState The sub-state to set
245    * @param[in] withTransitions Whether to show a transition when changing to the new sub-state
246    */
247   void SetSubState(const std::string& subStateName, bool withTransitions = true);
248
249   /**
250    * @brief Replaces visuals and properties from the old state to the new state.
251    * @param[in] oldState The old state
252    * @param[in] newState The new state
253    * @param[in] subState The current sub state
254    */
255   void ReplaceStateVisualsAndProperties(const StylePtr oldState, const StylePtr newState, const std::string& subState);
256
257   /**
258    * @brief Removes a visual from the control's container.
259    * @param[in] visuals The container of visuals
260    * @param[in] visualName The name of the visual to remove
261    */
262   void RemoveVisual(RegisteredVisualContainer& visuals, const std::string& visualName);
263
264   /**
265    * @brief Removes several visuals from the control's container.
266    * @param[in] visuals The container of visuals
267    * @param[in] removeVisuals The visuals to remove
268    */
269   void RemoveVisuals(RegisteredVisualContainer& visuals, DictionaryKeys& removeVisuals);
270
271   /**
272    * @brief Copies the visual properties that are specific to the control instance into the instancedProperties container.
273    * @param[in] visuals The control's visual container
274    * @param[out] instancedProperties The instanced properties are added to this container
275    */
276   void CopyInstancedProperties(RegisteredVisualContainer& visuals, Dictionary<Property::Map>& instancedProperties);
277
278   /**
279    * @brief On state change, ensures visuals are moved or created appropriately.
280    *
281    * Go through the list of visuals that are common to both states.
282    * If they are different types, or are both image types with different
283    * URLs, then the existing visual needs moving and the new visual needs creating
284    *
285    * @param[in] stateVisualsToChange The visuals to change
286    * @param[in] instancedProperties The instanced properties @see CopyInstancedProperties
287    */
288   void RecreateChangedVisuals(Dictionary<Property::Map>& stateVisualsToChange, Dictionary<Property::Map>& instancedProperties);
289
290   /**
291    * @brief Whether the resource is ready
292    * @return True if the resource is read.
293    */
294   bool IsResourceReady() const;
295
296   /**
297    * @copydoc CustomActorImpl::OnSceneDisconnection()
298    */
299   void OnSceneDisconnection();
300
301   /**
302    * @brief Sets the margin.
303    * @param[in] margin Margin is a collections of extent ( start, end, top, bottom )
304    */
305   void SetMargin(Extents margin);
306
307   /**
308    * @brief Returns the value of margin
309    * @return The value of margin
310    */
311   Extents GetMargin() const;
312
313   /**
314    * @brief Sets the padding.
315    * @param[in] padding Padding is a collections of extent ( start, end, top, bottom ).
316    */
317   void SetPadding(Extents padding);
318
319   /**
320    * @brief Returns the value of padding
321    * @return The value of padding
322    */
323   Extents GetPadding() const;
324
325   /**
326    * @brief Set the input method context.
327    * @param[in] inputMethodContext The input method context.
328    */
329   void SetInputMethodContext(InputMethodContext& inputMethodContext);
330
331   /**
332    * @brief Filter an key event.
333    * @param[in] event The key to be filtered.
334    * @return True if the key handled, otherwise false.
335    */
336   bool FilterKeyEvent(const KeyEvent& event);
337
338   /**
339    * @brief Adds accessibility attribute
340    * @param[in] key Attribute name to set
341    * @param[in] value Attribute value to set
342    *
343    * Attribute is added if not existed previously or updated
344    * if existed.
345    */
346   void AppendAccessibilityAttribute(const std::string& key,
347                                     const std::string  value);
348
349   /**
350    * @brief Removes accessibility attribute
351    * @param[in] key Attribute name to remove
352    *
353    * Function does nothing if attribute doesn't exist.
354    */
355   void RemoveAccessibilityAttribute(const std::string& key);
356
357   /**
358    * @brief Removes all accessibility attributes
359    */
360   void ClearAccessibilityAttributes();
361
362   /**
363    * @brief Sets reading info type attributes
364    * @param[in] types info type attributes to set
365    *
366    * This function sets, which part of object will be read out
367    * by screen-reader.
368    */
369   void SetAccessibilityReadingInfoType(const Dali::Accessibility::ReadingInfoTypes types);
370
371   /**
372    * @brief Gets currently active reading info type attributes
373    */
374   Dali::Accessibility::ReadingInfoTypes GetAccessibilityReadingInfoType() const;
375
376   /**
377    * @copydoc DevelControl::VisualEventSignal()
378    */
379   DevelControl::VisualEventSignalType& VisualEventSignal();
380
381   /**
382    * @brief Sets the shadow with a property map.
383    * @param[in] map The shadow property map
384    */
385   void SetShadow(const Property::Map& map);
386
387   /**
388    * @brief Clear the shadow.
389    */
390   void ClearShadow();
391
392   /**
393    * @brief Sets whether the Autofill functionality is enabled.
394    * @param[in] autofillEnabled Set true when Autofill should be enabled.
395    */
396   void SetAutofillEnabled( bool autofillEnabled );
397
398   /**
399    * @brief Check if the Autofill framework is enabled.
400    * @return True if Autofill is enabled
401    */
402   bool IsAutofillEnabled();
403
404   /**
405    * @brief Sets AutofillItemHandle
406    * @param item AutofillItem handle
407    */
408   void SetAutofillItemHandle( Dali::AutofillItem item );
409
410   /**
411    * @brief Gets AutofillItemHandle
412    * @return AutofillItem handle
413    */
414   Dali::AutofillItem GetAutofillItemHandle();
415
416   /**
417    * @brief Sets AutofillContainer which this control belongs to.
418    * @param[in] container
419    */
420   void SetAutofillContainer( Toolkit::AutofillContainer container );
421
422   /**
423    * @brief Gets AutofillContainer that the control belongs to.
424    * @return AutofillContainer handle
425    */
426   Toolkit::AutofillContainer GetAutofillContainer();
427
428   /**
429    * @copydoc DevelControl::GetVisualProperty()
430    */
431   Dali::Property GetVisualProperty(Dali::Property::Index index, Dali::Property::Key visualPropertyKey);
432
433 private:
434   /**
435    * Used as an alternative to boolean so that it is obvious whether a visual is enabled/disabled.
436    */
437   struct VisualState
438   {
439     enum Type
440     {
441       DISABLED = 0, ///< Visual disabled.
442       ENABLED  = 1  ///< Visual enabled.
443     };
444   };
445
446   /**
447    * Used as an alternative to boolean so that it is obvious whether a visual's depth value has been set or not by the caller.
448    */
449   struct DepthIndexValue
450   {
451     enum Type
452     {
453       NOT_SET = 0, ///< Visual depth value not set by caller.
454       SET     = 1  ///< Visual depth value set by caller.
455     };
456   };
457
458   /**
459    * @brief Adds the visual to the list of registered visuals.
460    * @param[in] index The Property index of the visual, used to reference visual
461    * @param[in,out] visual The visual to register, which can be altered in this function
462    * @param[in] enabled false if derived class wants to control when visual is set on stage
463    * @param[in] depthIndexValueSet Set to true if the depthIndex has actually been set manually
464    * @param[in] depthIndex The visual's depth-index is set to this
465    *
466    * @note Registering a visual with an index that already has a registered visual will replace it. The replacement will
467    *       occur once the replacement visual is ready (loaded).
468    */
469   void RegisterVisual(Property::Index index, Toolkit::Visual::Base& visual, VisualState::Type enabled, DepthIndexValue::Type depthIndexValueSet, int depthIndex = 0);
470
471   /**
472    * @brief Emits the resource ready signal.
473    */
474   void EmitResourceReadySignal();
475
476   /**
477    * @brief Callbacks called on idle.
478    */
479   void OnIdleCallback();
480
481 public:
482   Control&            mControlImpl;
483   DevelControl::State mState;
484   std::string         mSubStateName;
485   Property::Map       mAccessibilityAttributes;
486
487   int mLeftFocusableActorId;  ///< Actor ID of Left focusable control.
488   int mRightFocusableActorId; ///< Actor ID of Right focusable control.
489   int mUpFocusableActorId;    ///< Actor ID of Up focusable control.
490   int mDownFocusableActorId;  ///< Actor ID of Down focusable control.
491
492   RegisteredVisualContainer                                      mVisuals; ///< Stores visuals needed by the control, non trivial type so std::vector used.
493   std::string                                                    mStyleName;
494   Vector4                                                        mBackgroundColor;    ///< The color of the background visual
495   Vector3*                                                       mStartingPinchScale; ///< The scale when a pinch gesture starts, TODO: consider removing this
496   Extents                                                        mMargin;             ///< The margin values
497   Extents                                                        mPadding;            ///< The padding values
498   Toolkit::Control::KeyEventSignalType                           mKeyEventSignal;
499   Toolkit::Control::KeyInputFocusSignalType                      mKeyInputFocusGainedSignal;
500   Toolkit::Control::KeyInputFocusSignalType                      mKeyInputFocusLostSignal;
501   Toolkit::Control::ResourceReadySignalType                      mResourceReadySignal;
502   DevelControl::VisualEventSignalType                            mVisualEventSignal;
503   Toolkit::DevelControl::AccessibilityActivateSignalType         mAccessibilityActivateSignal;
504   Toolkit::DevelControl::AccessibilityReadingSkippedSignalType   mAccessibilityReadingSkippedSignal;
505   Toolkit::DevelControl::AccessibilityReadingPausedSignalType    mAccessibilityReadingPausedSignal;
506   Toolkit::DevelControl::AccessibilityReadingResumedSignalType   mAccessibilityReadingResumedSignal;
507   Toolkit::DevelControl::AccessibilityReadingCancelledSignalType mAccessibilityReadingCancelledSignal;
508   Toolkit::DevelControl::AccessibilityReadingStoppedSignalType   mAccessibilityReadingStoppedSignal;
509
510   Toolkit::DevelControl::AccessibilityGetNameSignalType        mAccessibilityGetNameSignal;
511   Toolkit::DevelControl::AccessibilityGetDescriptionSignalType mAccessibilityGetDescriptionSignal;
512   Toolkit::DevelControl::AccessibilityDoGestureSignalType      mAccessibilityDoGestureSignal;
513
514   std::string mAccessibilityName;
515   bool        mAccessibilityNameSet = false;
516
517   std::string mAccessibilityDescription;
518   bool        mAccessibilityDescriptionSet = false;
519
520   std::string mAccessibilityTranslationDomain;
521   bool        mAccessibilityTranslationDomainSet = false;
522
523   bool mAccessibilityHighlightable    = false;
524   bool mAccessibilityHighlightableSet = false;
525
526   Dali::Accessibility::Role mAccessibilityRole = Dali::Accessibility::Role::UNKNOWN;
527
528   std::vector<std::vector<Accessibility::Address>> mAccessibilityRelations;
529   bool                                             mAccessibilityAnimated = false;
530
531   // Gesture Detection
532   PinchGestureDetector     mPinchGestureDetector;
533   PanGestureDetector       mPanGestureDetector;
534   TapGestureDetector       mTapGestureDetector;
535   LongPressGestureDetector mLongPressGestureDetector;
536
537   // Tooltip
538   TooltipPtr mTooltip;
539
540   InputMethodContext mInputMethodContext;
541   CallbackBase*      mIdleCallback; ///< The idle callback to emit the resource ready signal.
542   AutofillItem       mAutofillItem;
543   Toolkit::AutofillContainer mAutofillContainer;
544
545   ControlBehaviour mFlags : CONTROL_BEHAVIOUR_FLAG_COUNT; ///< Flags passed in from constructor.
546   bool             mIsKeyboardNavigationSupported : 1;    ///< Stores whether keyboard navigation is supported by the control.
547   bool             mIsKeyboardFocusGroup : 1;             ///< Stores whether the control is a focus group.
548   bool             mIsEmittingResourceReadySignal : 1;    ///< True during ResourceReady().
549   bool             mNeedToEmitResourceReady : 1;          ///< True if need to emit the resource ready signal again.
550   bool             mIsAutofillEnabled : 1;                ///< Stroes whether the Autofill functionality is enabled.
551
552   RegisteredVisualContainer mRemoveVisuals; ///< List of visuals that are being replaced by another visual once ready
553
554   // Properties - these need to be members of Internal::Control::Impl as they access private methods/data of Internal::Control and Internal::Control::Impl.
555   static const PropertyRegistration PROPERTY_1;
556   static const PropertyRegistration PROPERTY_2;
557   static const PropertyRegistration PROPERTY_3;
558   static const PropertyRegistration PROPERTY_4;
559   static const PropertyRegistration PROPERTY_5;
560   static const PropertyRegistration PROPERTY_6;
561   static const PropertyRegistration PROPERTY_7;
562   static const PropertyRegistration PROPERTY_8;
563   static const PropertyRegistration PROPERTY_9;
564   static const PropertyRegistration PROPERTY_10;
565   static const PropertyRegistration PROPERTY_11;
566   static const PropertyRegistration PROPERTY_12;
567   static const PropertyRegistration PROPERTY_13;
568   static const PropertyRegistration PROPERTY_14;
569   static const PropertyRegistration PROPERTY_15;
570   static const PropertyRegistration PROPERTY_16;
571   static const PropertyRegistration PROPERTY_17;
572   static const PropertyRegistration PROPERTY_18;
573   static const PropertyRegistration PROPERTY_19;
574   static const PropertyRegistration PROPERTY_20;
575   static const PropertyRegistration PROPERTY_21;
576   static const PropertyRegistration PROPERTY_22;
577
578   /**
579    * The method acquires Accessible handle from Actor object
580    * @param  actor Actor object
581    * @return       handle to Accessible object
582    */
583   static Dali::Accessibility::Accessible* GetAccessibilityObject(Dali::Actor actor);
584   Dali::Accessibility::Accessible*        GetAccessibilityObject();
585
586   void AccessibilityRegister();
587   void AccessibilityDeregister();
588
589   struct AccessibleImpl : public virtual Dali::Accessibility::Accessible,
590                           public virtual Dali::Accessibility::Component,
591                           public virtual Dali::Accessibility::Collection,
592                           public virtual Dali::Accessibility::Action
593   {
594     Dali::Actor self;
595     bool        modal = false, root = false;
596
597     AccessibleImpl(Dali::Actor self, Dali::Accessibility::Role role, bool modal = false);
598
599     std::string                         GetName() override;
600     virtual std::string                 GetNameRaw();
601     std::string                         GetDescription() override;
602     virtual std::string                 GetDescriptionRaw();
603     Dali::Accessibility::Accessible*    GetParent() override;
604     size_t                              GetChildCount() override;
605     Dali::Accessibility::Accessible*    GetChildAtIndex(size_t index) override;
606     size_t                              GetIndexInParent() override;
607     Dali::Accessibility::Role           GetRole() override;
608     Dali::Accessibility::States         GetStates() override;
609     Dali::Accessibility::Attributes     GetAttributes() override;
610     Dali::Rect<>                        GetExtents(Dali::Accessibility::CoordType ctype) override;
611     Dali::Accessibility::ComponentLayer GetLayer() override;
612     int16_t                             GetMdiZOrder() override;
613     bool                                GrabFocus() override;
614     double                              GetAlpha() override;
615     bool                                GrabHighlight() override;
616     bool                                ClearHighlight() override;
617
618     std::string                                GetActionName(size_t index) override;
619     std::string                                GetLocalizedActionName(size_t index) override;
620     std::string                                GetActionDescription(size_t index) override;
621     size_t                                     GetActionCount() override;
622     std::string                                GetActionKeyBinding(size_t index) override;
623     bool                                       DoAction(size_t index) override;
624     bool                                       DoAction(const std::string& name) override;
625     bool                                       DoGesture(const Dali::Accessibility::GestureInfo& gestureInfo) override;
626     std::vector<Dali::Accessibility::Relation> GetRelationSet() override;
627
628     virtual Dali::Accessibility::States CalculateStates();
629     virtual void                        EnsureChildVisible(Actor child);
630     virtual void                        EnsureSelfVisible();
631     virtual Property::Index             GetNamePropertyIndex();
632     virtual Property::Index             GetDescriptionPropertyIndex();
633   };
634
635   std::function<std::unique_ptr<Dali::Accessibility::Accessible>(Actor)> accessibilityConstructor;
636   std::unique_ptr<Dali::Accessibility::Accessible>                       accessibilityObject;
637   Dali::PropertyNotification                                             accessibilityNotificationPosition, accessibilityNotificationSize, accessibilityNotificationCulled;
638   bool                                                                   accessibilityNotificationSet = false;
639   static void                                                            PositionOrSizeChangedCallback(PropertyNotification&);
640   static void                                                            CulledChangedCallback(PropertyNotification&);
641 };
642
643 } // namespace Internal
644
645 } // namespace Toolkit
646
647 } // namespace Dali
648
649 #endif // DALI_TOOLKIT_CONTROL_DATA_IMPL_H