1 // Copyright 2013 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ozone/impl/desktop_factory_wayland.h"
7 #include "ozone/impl/desktop_root_window_host_wayland.h"
9 namespace ozonewayland {
11 DesktopFactoryWayland::DesktopFactoryWayland() {
12 LOG(INFO) << "Ozone: DesktopFactoryWayland";
13 views::DesktopFactoryOzone::SetInstance(this);
16 DesktopFactoryWayland::~DesktopFactoryWayland() {
17 views::DesktopFactoryOzone::SetInstance(NULL);
20 views::DesktopRootWindowHost* DesktopFactoryWayland::CreateRootWindowHost(
21 views::internal::NativeWidgetDelegate* native_widget_delegate,
22 views::DesktopNativeWidgetAura* desktop_native_widget_aura) {
23 return new DesktopRootWindowHostWayland(native_widget_delegate,
24 desktop_native_widget_aura);
27 } // namespace ozonewayland