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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_factory_ozone.h

Issue 2830933006: Obsolete the ozone code path in ui/views/ (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/widget/desktop_aura/desktop_factory_ozone.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. 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.
4
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_FACTORY_OZONE_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_FACTORY_OZONE_H_
7
8 #include "ui/views/views_export.h"
9
10 namespace display {
11 class Screen;
12 }
13
14 namespace views {
15 class DesktopNativeWidgetAura;
16 class DesktopWindowTreeHost;
17
18 namespace internal {
19 class NativeWidgetDelegate;
20 }
21
22 class VIEWS_EXPORT DesktopFactoryOzone {
23 public:
24 DesktopFactoryOzone();
25 virtual ~DesktopFactoryOzone();
26
27 // Returns the instance.
28 static DesktopFactoryOzone* GetInstance();
29
30 // Sets the implementation delegate. Ownership is retained by the caller.
31 static void SetInstance(DesktopFactoryOzone* impl);
32
33 // Delegates implementation of DesktopWindowTreeHost::Create externally to
34 // Ozone implementation.
35 virtual DesktopWindowTreeHost* CreateWindowTreeHost(
36 internal::NativeWidgetDelegate* native_widget_delegate,
37 DesktopNativeWidgetAura* desktop_native_widget_aura) = 0;
38
39 // Delegates implementation of DesktopScreen externally to
40 // Ozone implementation.
41 virtual display::Screen* CreateDesktopScreen() = 0;
42
43 private:
44 static DesktopFactoryOzone* impl_; // not owned
45 };
46
47 } // namespace views
48
49 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_FACTORY_OZONE_H_
OLDNEW
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/widget/desktop_aura/desktop_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698