1 // Copyright 2014 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.
5 #ifndef UI_OZONE_COMMON_CHROMEOS_NATIVE_DISPLAY_DELEGATE_OZONE_H_
6 #define UI_OZONE_COMMON_CHROMEOS_NATIVE_DISPLAY_DELEGATE_OZONE_H_
8 #include "base/macros.h"
9 #include "ui/display/types/chromeos/native_display_delegate.h"
13 class NativeDisplayDelegateOzone
: public NativeDisplayDelegate
{
15 NativeDisplayDelegateOzone();
16 virtual ~NativeDisplayDelegateOzone();
18 // NativeDisplayDelegate overrides:
19 virtual void Initialize() OVERRIDE
;
20 virtual void GrabServer() OVERRIDE
;
21 virtual void UngrabServer() OVERRIDE
;
22 virtual void SyncWithServer() OVERRIDE
;
23 virtual void SetBackgroundColor(uint32_t color_argb
) OVERRIDE
;
24 virtual void ForceDPMSOn() OVERRIDE
;
25 virtual std::vector
<ui::DisplaySnapshot
*> GetDisplays() OVERRIDE
;
26 virtual void AddMode(const ui::DisplaySnapshot
& output
,
27 const ui::DisplayMode
* mode
) OVERRIDE
;
28 virtual bool Configure(const ui::DisplaySnapshot
& output
,
29 const ui::DisplayMode
* mode
,
30 const gfx::Point
& origin
) OVERRIDE
;
31 virtual void CreateFrameBuffer(const gfx::Size
& size
) OVERRIDE
;
32 virtual bool GetHDCPState(const ui::DisplaySnapshot
& output
,
33 ui::HDCPState
* state
) OVERRIDE
;
34 virtual bool SetHDCPState(const ui::DisplaySnapshot
& output
,
35 ui::HDCPState state
) OVERRIDE
;
36 virtual std::vector
<ui::ColorCalibrationProfile
>
37 GetAvailableColorCalibrationProfiles(
38 const ui::DisplaySnapshot
& output
) OVERRIDE
;
39 virtual bool SetColorCalibrationProfile(
40 const ui::DisplaySnapshot
& output
,
41 ui::ColorCalibrationProfile new_profile
) OVERRIDE
;
42 virtual void AddObserver(NativeDisplayObserver
* observer
) OVERRIDE
;
43 virtual void RemoveObserver(NativeDisplayObserver
* observer
) OVERRIDE
;
46 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateOzone
);
51 #endif // UI_OZONE_COMMON_CHROMEOS_NATIVE_DISPLAY_DELEGATE_OZONE_H_