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