[Tizen](ATSPI) squashed implementation
[platform/core/uifw/dali-adaptor.git] / dali / internal / adaptor / common / adaptor-impl.h
1 #ifndef DALI_INTERNAL_ADAPTOR_IMPL_H
2 #define DALI_INTERNAL_ADAPTOR_IMPL_H
3
4 /*
5  * Copyright (c) 2019 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/public-api/common/vector-wrapper.h>
23 #include <dali/public-api/common/view-mode.h>
24 #include <dali/public-api/math/rect.h>
25 #include <dali/public-api/signals/callback.h>
26 #include <dali/public-api/math/uint-16-pair.h>
27 #include <dali/integration-api/render-controller.h>
28
29 // INTERNAL INCLUDES
30 #include <dali/integration-api/adaptor.h>
31 #include <dali/integration-api/scene.h>
32
33 #ifdef DALI_ADAPTOR_COMPILATION
34 #include <dali/integration-api/scene-holder-impl.h>
35 #else
36 #include <dali/integration-api/adaptors/scene-holder-impl.h>
37 #endif
38
39 #include <dali/public-api/adaptor-framework/tts-player.h>
40 #include <dali/devel-api/adaptor-framework/clipboard.h>
41
42 #include <dali/internal/graphics/common/graphics-interface.h>
43
44 #include <dali/internal/legacy/common/tizen-platform-abstraction.h>
45 #include <dali/internal/adaptor/common/adaptor-internal-services.h>
46 #include <dali/internal/system/common/environment-options.h>
47 #include <dali/internal/system/common/core-event-interface.h>
48 #include <dali/internal/window-system/common/damage-observer.h>
49 #include <dali/internal/window-system/common/window-visibility-observer.h>
50 #include <dali/internal/system/common/kernel-trace.h>
51 #include <dali/internal/system/common/system-trace.h>
52 #include <dali/integration-api/trigger-event-factory.h>
53 #include <dali/internal/network/common/socket-factory.h>
54
55 #include <string>
56
57 namespace Dali
58 {
59
60 class RenderSurfaceInterface;
61 namespace Accessibility
62 {
63 class Bridge;
64 }
65
66 namespace Integration
67 {
68 class Core;
69 class GlAbstraction;
70 class Processor;
71 }
72
73 namespace Internal
74 {
75
76 namespace Adaptor
77 {
78 class DisplayConnection;
79 class GraphicsFactory;
80 class GlImplementation;
81 class GlSyncImplementation;
82 class ThreadController;
83 class TriggerEvent;
84 class CallbackManager;
85 class FeedbackPluginProxy;
86 class FeedbackController;
87 class VSyncMonitor;
88 class PerformanceInterface;
89 class LifeCycleObserver;
90 class ObjectProfiler;
91 class SceneHolder;
92
93 /**
94  * Implementation of the Adaptor class.
95  */
96 class Adaptor : public Integration::RenderController,
97                 public AdaptorInternalServices,
98                 public CoreEventInterface,
99                 public DamageObserver,
100                 public WindowVisibilityObserver
101 {
102 public:
103
104   using AdaptorSignalType =  Dali::Adaptor::AdaptorSignalType;
105   using WindowCreatedSignalType = Dali::Adaptor::WindowCreatedSignalType;
106
107   using SurfaceSize = Uint16Pair;          ///< Surface size type
108
109   /**
110    * Creates a New Adaptor
111    * @param[in]  window              The window handle
112    * @param[in]  surface             A render surface can be one of the following
113    *                                  - Pixmap, adaptor will use existing Pixmap to draw on to
114    *                                  - Window, adaptor will use existing Window to draw on to
115    * @param[in]  configuration       The context loss configuration ( to choose resource discard policy )
116    * @param[in]  environmentOptions  A pointer to the environment options. If NULL then one is created.
117    */
118   static Dali::Adaptor* New( Dali::Integration::SceneHolder window,
119                              Dali::RenderSurfaceInterface* surface,
120                              Dali::Configuration::ContextLoss configuration,
121                              EnvironmentOptions* environmentOptions );
122
123   /**
124    * Creates a New Adaptor
125    * @param[in]  window              The window handle
126    * @param[in]  configuration       The context loss configuration ( to choose resource discard policy )
127    * @param[in]  environmentOptions  A pointer to the environment options. If NULL then one is created.
128    */
129   static Dali::Adaptor* New( Dali::Integration::SceneHolder window,
130                              Dali::Configuration::ContextLoss configuration,
131                              EnvironmentOptions* environmentOptions );
132
133   /**
134    * Creates a New Adaptor
135    * @param[in]  graphicsFactory     A factory that creates the graphics interface
136    * @param[in]  window              The window handle
137    * @param[in]  surface             A render surface can be one of the following
138    *                                  - Pixmap, adaptor will use existing Pixmap to draw on to
139    *                                  - Window, adaptor will use existing Window to draw on to
140    * @param[in]  configuration       The context loss configuration ( to choose resource discard policy )
141    * @param[in]  environmentOptions  A pointer to the environment options. If NULL then one is created.
142    */
143   static Dali::Adaptor* New( GraphicsFactory& graphicsFactory,
144                              Dali::Integration::SceneHolder window,
145                              Dali::RenderSurfaceInterface* surface,
146                              Dali::Configuration::ContextLoss configuration,
147                              EnvironmentOptions* environmentOptions );
148
149   /**
150    * Creates a New Adaptor
151    * @param[in]  graphicsFactory     A factory that creates the graphics interface
152    * @param[in]  window              The window handle
153    * @param[in]  configuration       The context loss configuration ( to choose resource discard policy )
154    * @param[in]  environmentOptions  A pointer to the environment options. If NULL then one is created.
155    */
156   static Dali::Adaptor* New( GraphicsFactory& graphicsFactory,
157                              Dali::Integration::SceneHolder window,
158                              Dali::Configuration::ContextLoss configuration,
159                              EnvironmentOptions* environmentOptions );
160
161   /**
162    * 2-step initialisation, this should be called after creating an adaptor instance.
163    * @param[in]  graphicsFactory     A factory that creates the graphics interface
164    * @param[in]  configuration       The context loss configuration ( to choose resource discard policy )
165    */
166   void Initialize( GraphicsFactory& graphicsFactory, Dali::Configuration::ContextLoss configuration );
167
168   /**
169    * Virtual destructor.
170    */
171   virtual ~Adaptor();
172
173   /**
174    * @copydoc Dali::Adaptor::Get()
175    */
176   static Dali::Adaptor& Get();
177
178   /**
179    * @copydoc Dali::Adaptor::IsAvailable()
180    */
181   static bool IsAvailable();
182
183   /**
184    * @copydoc Dali::Core::SceneCreated();
185    */
186   void SceneCreated();
187
188   static std::string GetApplicationPackageName();
189
190 public: // AdaptorInternalServices implementation
191   /**
192    * @copydoc Dali::Adaptor::Start()
193    */
194   virtual void Start();
195
196   /**
197    * @copydoc Dali::Adaptor::Pause()
198    */
199   virtual void Pause();
200
201   /**
202    * @copydoc Dali::Adaptor::Resume()
203    */
204   virtual void Resume();
205
206   /**
207    * @copydoc Dali::Adaptor::Stop()
208    */
209   virtual void Stop();
210
211   /**
212    * @copydoc Dali::Adaptor::ContextLost()
213    */
214   virtual void ContextLost();
215
216   /**
217    * @copydoc Dali::Adaptor::ContextRegained()
218    */
219   virtual void ContextRegained();
220
221   /**
222    * @copydoc Dali::EventFeeder::FeedTouchPoint()
223    */
224   virtual void FeedTouchPoint( TouchPoint& point, int timeStamp );
225
226   /**
227    * @copydoc Dali::EventFeeder::FeedWheelEvent()
228    */
229   virtual void FeedWheelEvent( WheelEvent& wheelEvent );
230
231   /**
232    * @copydoc Dali::EventFeeder::FeedKeyEvent()
233    */
234   virtual void FeedKeyEvent( KeyEvent& keyEvent );
235
236   /**
237    * @copydoc Dali::Adaptor::ReplaceSurface()
238    */
239   virtual void ReplaceSurface( Dali::Integration::SceneHolder window, Dali::RenderSurfaceInterface& surface );
240
241   /**
242    * @copydoc Dali::Adaptor::GetSurface()
243    */
244   virtual Dali::RenderSurfaceInterface& GetSurface() const;
245
246   /**
247    * @copydoc Dali::Adaptor::ReleaseSurfaceLock()
248    */
249   virtual void ReleaseSurfaceLock();
250
251   /**
252    * Retrieve the TtsPlayer.
253    * @param[in] mode The mode of TtsPlayer
254    * @return A handle to the TtsPlayer.
255    */
256   virtual Dali::TtsPlayer GetTtsPlayer(Dali::TtsPlayer::Mode mode);
257
258   /**
259    * @copydoc Dali::Adaptor::AddIdle()
260    */
261   virtual bool AddIdle( CallbackBase* callback, bool hasReturnValue, bool forceAdd );
262
263   /**
264    * Adds a new Window instance to the Adaptor
265    * @param[in]  childWindow The child window instance
266    * @param[in]  childWindowName The child window title/name
267    * @param[in]  childWindowClassName The class name that the child window belongs to
268    * @param[in]  childWindowMode The mode of the child window
269    */
270   virtual bool AddWindow( Dali::Integration::SceneHolder childWindow,
271                           const std::string& childWindowName,
272                           const std::string& childWindowClassName,
273                           bool childWindowMode );
274
275   /**
276    * Removes an existing Window instance from the Adaptor
277    * @param[in]  window The Window instance
278    */
279   virtual bool RemoveWindow( Dali::Integration::SceneHolder* childWindow );
280
281   /**
282    * Removes an existing Window instance from the Adaptor
283    * @param[in]  windowName The Window name
284    * @note If two Windows have the same name, the first one that matches will be removed
285    */
286   virtual bool RemoveWindow( std::string childWindowName );
287
288   /**
289    * @copydoc Dali::Adaptor::RemoveIdle()
290    */
291   virtual void RemoveIdle( CallbackBase* callback );
292
293   /**
294    * Sets a pre-render callback.
295    */
296   void SetPreRenderCallback( CallbackBase* callback );
297
298   /**
299    * Removes an existing Window instance from the Adaptor
300    * @param[in]  childWindow The Window instance
301    */
302   bool RemoveWindow( Dali::Internal::Adaptor::SceneHolder* childWindow );
303
304   /**
305    * @brief Deletes the rendering surface
306    * @param[in] surface to delete
307    */
308   void DeleteSurface( Dali::RenderSurfaceInterface& surface );
309
310   /**
311    * @brief Retrieve the window that the given actor is added to.
312    *
313    * @param[in] actor The actor
314    * @return The window the actor is added to or a null pointer if the actor is not added to any widnow.
315    */
316   Dali::Internal::Adaptor::SceneHolder* GetWindow( Dali::Actor& actor );
317
318   /**
319    * @copydoc Dali::Adaptor::GetWindows()
320    */
321   Dali::WindowContainer GetWindows() const;
322
323   /**
324    * @copydoc Dali::Adaptor::GetSceneHolders()
325    */
326   Dali::SceneHolderList GetSceneHolders() const;
327
328 public:
329
330   /**
331    * @return the Core instance
332    */
333   virtual Dali::Integration::Core& GetCore();
334
335   /**
336    * @copydoc Dali::Adaptor::SetRenderRefreshRate()
337    */
338   void SetRenderRefreshRate( unsigned int numberOfVSyncsPerRender );
339
340   /**
341    * Return the PlatformAbstraction.
342    * @return The PlatformAbstraction.
343    */
344   Integration::PlatformAbstraction& GetPlatformAbstraction() const;
345
346   /**
347    * Destroy the TtsPlayer of specific mode.
348    * @param[in] mode The mode of TtsPlayer to destroy
349    */
350   void DestroyTtsPlayer(Dali::TtsPlayer::Mode mode);
351
352   /**
353    * Gets native window handle
354    *
355    * @return native window handle
356    */
357   Any GetNativeWindowHandle();
358
359   /**
360    * @brief Retrieve native window handle that the given actor is added to.
361    *
362    * @param[in] actor The actor
363    * @return native window handle
364    */
365   Any GetNativeWindowHandle( Dali::Actor actor );
366
367   /**
368    * Get the native display associated with the graphics backend
369    *
370    * @return A handle to the native display
371    */
372   Any GetGraphicsDisplay();
373
374   /**
375    * Sets use remote surface for Surface output
376    * @param[in] useRemoteSurface True if the remote surface is used
377    */
378   void SetUseRemoteSurface(bool useRemoteSurface);
379
380 public:
381
382   /**
383    * Adds an adaptor observer so that we can observe the adaptor's lifetime events.
384    * @param[in]  observer  The observer.
385    * @note Observers should remove themselves when they are destroyed.
386    */
387   void AddObserver( LifeCycleObserver& observer );
388
389   /**
390    * Removes the observer from the adaptor.
391    * @param[in]  observer  The observer to remove.
392    * @note Observers should remove themselves when they are destroyed.
393    */
394   void RemoveObserver( LifeCycleObserver& observer );
395
396   /**
397    * Emits the Notification event to the Dali core.
398    */
399   void SendNotificationEvent();
400
401   /**
402    * Request adaptor to update once
403    */
404   void RequestUpdateOnce();
405
406   /**
407    * @copydoc Dali::Adaptor::NotifySceneCreated()
408    */
409   void NotifySceneCreated();
410
411   /**
412    * @copydoc Dali::Adaptor::NotifyLanguageChanged()
413    */
414   void NotifyLanguageChanged();
415
416   /**
417    * Gets AppId of current application
418    */
419   void GetAppId( std::string& appId );
420
421   /**
422    * @copydoc Dali::Adaptor::SurfaceResizePrepare
423    */
424   void SurfaceResizePrepare( Dali::RenderSurfaceInterface* surface, SurfaceSize surfaceSize );
425
426   /**
427    * @copydoc Dali::Adaptor::SurfaceResizeComplete
428    */
429   void SurfaceResizeComplete( Dali::RenderSurfaceInterface* surface, SurfaceSize surfaceSize );
430
431   /**
432    * Sets layout direction of root by system language
433    * @param[in] locale System locale
434    */
435   void SetRootLayoutDirection( std::string locale );
436
437   /**
438    * @copydoc Dali::Adaptor::RenderOnce
439    */
440   void RenderOnce();
441
442   /**
443    * @copydoc Dali::Adaptor::GetLogFactory
444    */
445   const LogFactoryInterface& GetLogFactory();
446
447   /**
448    * @copydoc Dali::Adaptor::RegisterProcessor
449    */
450   void RegisterProcessor( Integration::Processor& processor );
451
452   /**
453    * @coydoc Dali::Adaptor::UnregisterProcessor
454    */
455   void UnregisterProcessor( Integration::Processor& processor );
456
457 public:  //AdaptorInternalServices
458
459   /**
460    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetPlatformAbstractionInterface()
461    */
462   virtual Dali::Integration::PlatformAbstraction& GetPlatformAbstractionInterface();
463
464   /**
465    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetDisplayConnectionInterface()
466    */
467   virtual Dali::DisplayConnection& GetDisplayConnectionInterface();
468
469   /**
470    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetGraphicsInterface()
471    */
472   virtual GraphicsInterface& GetGraphicsInterface();
473
474   /**
475    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetTriggerEventInterface()
476    */
477   virtual TriggerEventInterface& GetProcessCoreEventsTrigger();
478
479   /**
480    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetTriggerEventFactoryInterface()
481    */
482   virtual TriggerEventFactoryInterface& GetTriggerEventFactoryInterface();
483
484   /**
485    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetSocketFactoryInterface()
486    */
487   virtual SocketFactoryInterface& GetSocketFactoryInterface();
488
489   /**
490    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetRenderSurfaceInterface()
491    */
492   virtual Dali::RenderSurfaceInterface* GetRenderSurfaceInterface();
493
494   /**
495    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetPerformanceInterface()
496    */
497   virtual PerformanceInterface* GetPerformanceInterface();
498
499   /**
500    * copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetKernelTraceInterface()
501    */
502   virtual TraceInterface& GetKernelTraceInterface();
503
504   /**
505    * copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetSystemTraceInterface()
506    */
507   virtual TraceInterface& GetSystemTraceInterface();
508
509 public: // Signals
510
511   /**
512    * @copydoc Dali::Adaptor::SignalResized
513    */
514   AdaptorSignalType& ResizedSignal()
515   {
516     return mResizedSignal;
517   }
518
519   /**
520    * @copydoc Dali::Adaptor::LanguageChangedSignal
521    */
522   AdaptorSignalType& LanguageChangedSignal()
523   {
524     return mLanguageChangedSignal;
525   }
526
527   /**
528    * @copydoc Dali::Adaptor::WindowCreatedSignal
529    */
530   WindowCreatedSignalType& WindowCreatedSignal()
531   {
532     return mWindowCreatedSignal;
533   }
534
535 public: // From Dali::Internal::Adaptor::CoreEventInterface
536
537   /**
538    * @copydoc Dali::Internal::Adaptor:CoreEventInterface:::ProcessCoreEvents()
539    */
540   virtual void ProcessCoreEvents();
541
542 private: // From Dali::Internal::Adaptor::CoreEventInterface
543
544   /**
545    * @copydoc Dali::Internal::Adaptor::CoreEventInterface::QueueCoreEvent()
546    */
547   virtual void QueueCoreEvent(const Dali::Integration::Event& event);
548
549 private: // From Dali::Integration::RenderController
550
551   /**
552    * @copydoc Dali::Integration::RenderController::RequestUpdate()
553    */
554   virtual void RequestUpdate( bool forceUpdate );
555
556   /**
557    * @copydoc Dali::Integration::RenderController::RequestProcessEventsOnIdle()
558    */
559   virtual void RequestProcessEventsOnIdle( bool forceProcess );
560
561 public: // From Dali::Internal::Adaptor::WindowVisibilityObserver
562
563   /**
564    * Called when the window becomes fully or partially visible.
565    */
566   virtual void OnWindowShown();
567
568   /**
569    * Called when the window is fully hidden.
570    */
571   virtual void OnWindowHidden();
572
573 private: // From Dali::Internal::Adaptor::DamageObserver
574
575   /**
576    * @copydoc Dali::Internal::Adaptor::DamageObserver::OnDamaged()
577    */
578   void OnDamaged( const DamageArea& area );
579
580 private:
581
582   // Undefined
583   Adaptor(const Adaptor&) = delete;
584   Adaptor& operator=(Adaptor&) = delete;
585
586 private:
587
588   /**
589    * Assigns the render surface to the adaptor
590    *
591    */
592   void SetSurface(Dali::RenderSurfaceInterface *surface);
593
594   /**
595    * called after surface is created
596    */
597   void SurfaceInitialized();
598
599   /**
600    * Sends an notification message from main loop idle handler
601    */
602   bool ProcessCoreEventsFromIdle();
603
604   /**
605    * Gets path for data/resource storage.
606    * @param[out] path Path for data/resource storage
607    */
608   void GetDataStoragePath(std::string& path);
609
610   /**
611    * Sets up system information if needs
612    */
613   void SetupSystemInformation();
614
615   /**
616    * Adds a callback to be run when entering an idle state.
617    *
618    * A callback of the following type should be used:
619    * @code
620    *   bool MyFunction();
621    * @endcode
622    * This callback will be called repeatedly as long as it returns true. A return of 0 deletes this callback.
623    */
624   bool AddIdleEnterer( CallbackBase* callback, bool forceAdd );
625
626   /**
627    * Removes a previously added the idle enterer callback.
628    */
629   void RemoveIdleEnterer( CallbackBase* callback );
630
631 private:
632
633   /**
634    * Constructor
635    * @param[in]  window       window handle
636    * @param[in]  adaptor      The public adaptor
637    * @param[in]  surface      A render surface can be one of the following
638    *                          - Pixmap, adaptor will use existing Pixmap to draw on to
639    *                          - Window, adaptor will use existing Window to draw on to
640    * @param[in]  environmentOptions  A pointer to the environment options. If NULL then one is created.
641    */
642   Adaptor( Dali::Integration::SceneHolder window, Dali::Adaptor& adaptor, Dali::RenderSurfaceInterface* surface, EnvironmentOptions* environmentOptions );
643
644 private: // Types
645
646   enum State
647   {
648     READY,                     ///< Initial state before Adaptor::Start is called.
649     RUNNING,                   ///< Adaptor is running.
650     PAUSED,                    ///< Adaptor has been paused.
651     PAUSED_WHILE_HIDDEN,       ///< Adaptor is paused while window is hidden (& cannot be resumed until window is shown).
652     PAUSED_WHILE_INITIALIZING, ///< Adaptor is paused while application is initializing.
653     STOPPED,                   ///< Adaptor has been stopped.
654   };
655
656   // There is no weak handle for BaseHandle in DALi, but we can't ref count the window here,
657   // so we have to store the raw pointer.
658   using WindowContainer = std::vector<Dali::Internal::Adaptor::SceneHolder*>;
659   using ObserverContainer = std::vector<LifeCycleObserver*>;
660
661 private: // Data
662
663   AdaptorSignalType                     mResizedSignal;               ///< Resized signal.
664   AdaptorSignalType                     mLanguageChangedSignal;       ///< Language changed signal.
665   WindowCreatedSignalType               mWindowCreatedSignal;    ///< Window created signal.
666
667   Dali::Adaptor&                        mAdaptor;                     ///< Reference to public adaptor instance.
668   State                                 mState;                       ///< Current state of the adaptor
669   Dali::Integration::Core*              mCore;                        ///< Dali Core
670   ThreadController*                     mThreadController;            ///< Controls the threads
671
672   GraphicsInterface*                    mGraphics;                    ///< Graphics interface
673   Dali::DisplayConnection*              mDisplayConnection;           ///< Display connection
674   WindowContainer                       mWindows;                     ///< A container of all the Windows that are currently created
675
676   TizenPlatform::TizenPlatformAbstraction* mPlatformAbstraction;      ///< Platform abstraction
677
678   CallbackManager*                      mCallbackManager;             ///< Used to install callbacks
679   bool                                  mNotificationOnIdleInstalled; ///< whether the idle handler is installed to send an notification event
680   TriggerEventInterface*                mNotificationTrigger;         ///< Notification event trigger
681   FeedbackPluginProxy*                  mDaliFeedbackPlugin;          ///< Used to access feedback support
682   FeedbackController*                   mFeedbackController;          ///< Plays feedback effects for Dali-Toolkit UI Controls.
683   Dali::TtsPlayer                       mTtsPlayers[Dali::TtsPlayer::MODE_NUM];                   ///< Provides TTS support
684   ObserverContainer                     mObservers;                   ///< A list of adaptor observer pointers
685   EnvironmentOptions*                   mEnvironmentOptions;          ///< environment options
686   PerformanceInterface*                 mPerformanceInterface;        ///< Performance interface
687   KernelTrace                           mKernelTracer;                ///< Kernel tracer
688   SystemTrace                           mSystemTracer;                ///< System tracer
689   TriggerEventFactory                   mTriggerEventFactory;         ///< Trigger event factory
690   ObjectProfiler*                       mObjectProfiler;              ///< Tracks object lifetime for profiling
691   SocketFactory                         mSocketFactory;               ///< Socket factory
692   const bool                            mEnvironmentOptionsOwned:1;   ///< Whether we own the EnvironmentOptions (and thus, need to delete it)
693   bool                                  mUseRemoteSurface;            ///< whether the remoteSurface is used or not
694
695   class AccessibilityObserver : public ConnectionTracker
696   {
697   public:
698     void OnAccessibleKeyEvent( const KeyEvent& event );
699   };
700   AccessibilityObserver accessibilityObserver;
701
702 public:
703   inline static Adaptor& GetImplementation(Dali::Adaptor& adaptor) { return *adaptor.mImpl; }
704 };
705
706 } // namespace Internal
707
708 } // namespace Adaptor
709
710 } // namespace Dali
711
712 #endif // DALI_INTERNAL_ADAPTOR_IMPL_H