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

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

Issue 1915363002: Rename gfx::Display/Screen to display::Display/Screen in views/wm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanups Created 4 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_FACTORY_OZONE_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_FACTORY_OZONE_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_FACTORY_OZONE_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_FACTORY_OZONE_H_
7 7
8 #include "ui/views/views_export.h" 8 #include "ui/views/views_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 class Rect; 11 class Rect;
12 class Screen; 12 class Screen;
13 } 13 }
14 14
15 namespace display {
16 using Screen = gfx::Screen;
17 }
18
15 namespace views { 19 namespace views {
16 class DesktopNativeWidgetAura; 20 class DesktopNativeWidgetAura;
17 class DesktopWindowTreeHost; 21 class DesktopWindowTreeHost;
18 22
19 namespace internal { 23 namespace internal {
20 class NativeWidgetDelegate; 24 class NativeWidgetDelegate;
21 } 25 }
22 26
23 class VIEWS_EXPORT DesktopFactoryOzone { 27 class VIEWS_EXPORT DesktopFactoryOzone {
24 public: 28 public:
25 DesktopFactoryOzone(); 29 DesktopFactoryOzone();
26 virtual ~DesktopFactoryOzone(); 30 virtual ~DesktopFactoryOzone();
27 31
28 // Returns the instance. 32 // Returns the instance.
29 static DesktopFactoryOzone* GetInstance(); 33 static DesktopFactoryOzone* GetInstance();
30 34
31 // Sets the implementation delegate. Ownership is retained by the caller. 35 // Sets the implementation delegate. Ownership is retained by the caller.
32 static void SetInstance(DesktopFactoryOzone* impl); 36 static void SetInstance(DesktopFactoryOzone* impl);
33 37
34 // Delegates implementation of DesktopWindowTreeHost::Create externally to 38 // Delegates implementation of DesktopWindowTreeHost::Create externally to
35 // Ozone implementation. 39 // Ozone implementation.
36 virtual DesktopWindowTreeHost* CreateWindowTreeHost( 40 virtual DesktopWindowTreeHost* CreateWindowTreeHost(
37 internal::NativeWidgetDelegate* native_widget_delegate, 41 internal::NativeWidgetDelegate* native_widget_delegate,
38 DesktopNativeWidgetAura* desktop_native_widget_aura) = 0; 42 DesktopNativeWidgetAura* desktop_native_widget_aura) = 0;
39 43
40 // Delegates implementation of DesktopScreen externally to 44 // Delegates implementation of DesktopScreen externally to
41 // Ozone implementation. 45 // Ozone implementation.
42 virtual gfx::Screen* CreateDesktopScreen() = 0; 46 virtual display::Screen* CreateDesktopScreen() = 0;
43 47
44 private: 48 private:
45 static DesktopFactoryOzone* impl_; // not owned 49 static DesktopFactoryOzone* impl_; // not owned
46 }; 50 };
47 51
48 } // namespace views 52 } // namespace views
49 53
50 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_FACTORY_OZONE_H_ 54 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_FACTORY_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698