Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: ui/views/widget/desktop_aura/desktop_factory_ozone_wayland.h

Issue 2024953007: Make DesktopFactoryOzone instances to respect --ozone-platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make DesktopFactoryOzone instances to respect --ozone-platform Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/desktop_aura/desktop_factory_ozone_wayland.h
diff --git a/ui/views/widget/desktop_aura/desktop_factory_ozone_wayland.h b/ui/views/widget/desktop_aura/desktop_factory_ozone_wayland.h
new file mode 100644
index 0000000000000000000000000000000000000000..ac18647f3c5016d1dc2bee073fbe7d6ea7362881
--- /dev/null
+++ b/ui/views/widget/desktop_aura/desktop_factory_ozone_wayland.h
@@ -0,0 +1,41 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_OZONE_PLATFORM_WAYLAND_DESKTOP_FACTORY_OZONE_WAYLAND_H_
+#define UI_OZONE_PLATFORM_WAYLAND_DESKTOP_FACTORY_OZONE_WAYLAND_H_
+
+#include "ui/views/views_export.h"
+#include "ui/views/widget/desktop_aura/desktop_factory_ozone.h"
+
+namespace display {
+class Screen;
+}
+
+namespace views {
+class DesktopNativeWidgetAura;
+class DesktopWindowTreeHost;
+
+namespace internal {
+class NativeWidgetDelegate;
+}
+
+class VIEWS_EXPORT DesktopFactoryOzoneWayland : public DesktopFactoryOzone {
+ public:
+
+ // Delegates implementation of DesktopWindowTreeHost::Create externally to
+ // Ozone implementation.
+ DesktopWindowTreeHost* CreateWindowTreeHost(
+ internal::NativeWidgetDelegate* native_widget_delegate,
+ DesktopNativeWidgetAura* desktop_native_widget_aura) override;
+
+ // Delegates implementation of DesktopScreen externally to
+ // Ozone implementation.
+ display::Screen* CreateDesktopScreen() override;
+};
+
+views::DesktopFactoryOzone* CreateDesktopFactoryOzoneWayland();
+
+} // namespace views
+
+#endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_FACTORY_OZONE_H_

Powered by Google App Engine
This is Rietveld 408576698