Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ozone / ui / gfx / ozone_display.h
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.
4
5 #ifndef OZONE_UI_GFX_OZONE_DISPLAY_H_
6 #define OZONE_UI_GFX_OZONE_DISPLAY_H_
7
8 #include "ozone/platform/ozone_export_wayland.h"
9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/gfx/ozone/surface_factory_ozone.h"
11
12 namespace gfx {
13
14 class OZONE_WAYLAND_EXPORT OzoneDisplay : public gfx::SurfaceFactoryOzone {
15  public:
16   OzoneDisplay();
17   virtual ~OzoneDisplay();
18
19   // Returns the static instance last set using SetInstance().
20   static OzoneDisplay* GetInstance();
21
22   // Sets the implementation delegate. Ownership is retained by the caller.
23   static void SetInstance(OzoneDisplay* instance);
24
25   virtual void LookAheadOutputGeometry();
26
27  private:
28   static OzoneDisplay* instance_;
29   DISALLOW_COPY_AND_ASSIGN(OzoneDisplay);
30 };
31
32 }  // namespace gfx
33
34 #endif  // OZONE_UI_GFX_OZONE_DISPLAY_H_