{
Window* window = new Window();
window->mIsTransparent = windowData.GetTransparency();
+ window->mIsFrontBufferRendering = windowData.GetFrontBufferRendering();
window->Initialize(surface, windowData.GetPositionSize(), name, className, windowData.GetWindowType());
return window;
}
mWindowRotationAcknowledgement(false),
mFocused(false),
mIsWindowRotating(false),
- mIsEnabledUserGeometry(false)
+ mIsEnabledUserGeometry(false),
+ mIsEmittedWindowCreatedEvent(false),
+ mIsFrontBufferRendering(false)
{
}
// For Debugging
mNativeWindowId = mWindowBase->GetNativeWindowId();
+
+ if(mIsFrontBufferRendering)
+ {
+ SetFrontBufferRendering(mIsFrontBufferRendering);
+ }
}
void Window::SetRenderNotification(TriggerEventInterface* renderNotification)
mEventHandler = EventHandlerPtr(new EventHandler(mWindowSurface->GetWindowBase(), *mAdaptor));
mEventHandler->AddObserver(*this);
- // Add Window to bridge for ATSPI
- auto bridge = Accessibility::Bridge::GetCurrentBridge();
- if(bridge->IsUp())
+ if(mWindowBase->GetType() == WindowType::IME)
{
- auto rootLayer = mScene.GetRootLayer();
- auto accessible = Accessibility::Accessible::Get(rootLayer);
- bridge->AddTopLevelWindow(accessible);
-
- // Emit Window create event
- // Create and Destory signal only emit in multi-window environment, so it does not emit on default layer.
- bridge->Emit(accessible, Accessibility::WindowEvent::CREATE);
+ mWindowBase->InitializeIme();
+ mWindowSurface->InitializeImeSurface();
}
+ // Add Window to bridge for ATSPI
+ auto bridge = Accessibility::Bridge::GetCurrentBridge();
+
bridge->EnabledSignal().Connect(this, &Window::OnAccessibilityEnabled);
bridge->DisabledSignal().Connect(this, &Window::OnAccessibilityDisabled);
+ if(bridge->IsUp())
+ {
+ OnAccessibilityEnabled();
+ }
+ else
+ {
+ OnAccessibilityDisabled();
+ }
+
// If you call the 'Show' before creating the adaptor, the application cannot know the app resource id.
// The show must be called after the adaptor is initialized.
Show();
auto accessible = Accessibility::Accessible::Get(rootLayer);
bridge->AddTopLevelWindow(accessible);
+ DALI_LOG_RELEASE_INFO("Window (%p), WinId (%d), Accessibility is enabled\n", this, mNativeWindowId);
+
+ Dali::Window handle(this);
+ if(!mIsEmittedWindowCreatedEvent)
+ {
+ DALI_LOG_RELEASE_INFO("Window (%p), WinId (%d), Emit Accessbility Window Created Event\n", this, mNativeWindowId);
+ bridge->WindowCreated(handle);
+ mIsEmittedWindowCreatedEvent = true;
+ }
+
if(!mVisible || mIconified)
{
return;
}
- Dali::Window handle(this);
bridge->WindowShown(handle);
if(mFocused)
{
+ DALI_LOG_RELEASE_INFO("Window (%p), WinId (%d), Emit Accessbility Window Focused Event\n", this, mNativeWindowId);
bridge->WindowFocused(handle);
}
}
auto rootLayer = mScene.GetRootLayer();
auto accessible = Accessibility::Accessible::Get(rootLayer);
bridge->RemoveTopLevelWindow(accessible);
+ DALI_LOG_RELEASE_INFO("Window (%p), WinId (%d), Accessibility is disabled\n", this, mNativeWindowId);
}
void Window::OnMoveCompleted(Dali::Window::WindowPosition& position)
return mWindowBase->KeyboardUnGrab();
}
+void Window::SetFullScreen(bool fullscreen)
+{
+ mWindowBase->SetFullScreen(fullscreen);
+}
+
+bool Window::GetFullScreen()
+{
+ return mWindowBase->GetFullScreen();
+}
+
+void Window::SetFrontBufferRendering(bool enable)
+{
+ mWindowBase->SetFrontBufferRendering(enable);
+ mWindowSurface->SetFrontBufferRendering(enable);
+}
+
+bool Window::GetFrontBufferRendering()
+{
+ return mWindowBase->GetFrontBufferRendering();
+}
+
} // namespace Adaptor
} // namespace Internal