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

Side by Side Diff: ui/ozone/common/native_display_delegate_ozone.cc

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 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/ozone/common/native_display_delegate_ozone.h ('k') | ui/ozone/common/stub_overlay_manager.h » ('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 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.
4
5 #include "ui/ozone/common/native_display_delegate_ozone.h"
6
7 #include "base/logging.h"
8 #include "ui/ozone/common/display_snapshot_proxy.h"
9 #include "ui/ozone/common/display_util.h"
10
11 namespace ui {
12
13 NativeDisplayDelegateOzone::NativeDisplayDelegateOzone() {
14 }
15
16 NativeDisplayDelegateOzone::~NativeDisplayDelegateOzone() {
17 }
18
19 void NativeDisplayDelegateOzone::Initialize() {
20 DisplaySnapshot_Params params;
21 if (CreateSnapshotFromCommandLine(&params)) {
22 DCHECK_NE(DISPLAY_CONNECTION_TYPE_NONE, params.type);
23 displays_.push_back(new DisplaySnapshotProxy(params));
24 }
25 }
26
27 void NativeDisplayDelegateOzone::GrabServer() {
28 NOTIMPLEMENTED();
29 }
30
31 void NativeDisplayDelegateOzone::UngrabServer() {
32 NOTIMPLEMENTED();
33 }
34
35 void NativeDisplayDelegateOzone::TakeDisplayControl(
36 const DisplayControlCallback& callback) {
37 NOTIMPLEMENTED();
38 callback.Run(false);
39 }
40
41 void NativeDisplayDelegateOzone::RelinquishDisplayControl(
42 const DisplayControlCallback& callback) {
43 NOTIMPLEMENTED();
44 callback.Run(false);
45 }
46
47 void NativeDisplayDelegateOzone::SyncWithServer() {
48 NOTIMPLEMENTED();
49 }
50
51 void NativeDisplayDelegateOzone::SetBackgroundColor(uint32_t color_argb) {
52 NOTIMPLEMENTED();
53 }
54
55 void NativeDisplayDelegateOzone::ForceDPMSOn() {
56 NOTIMPLEMENTED();
57 }
58
59 void NativeDisplayDelegateOzone::GetDisplays(
60 const GetDisplaysCallback& callback) {
61 callback.Run(displays_.get());
62 }
63
64 void NativeDisplayDelegateOzone::AddMode(const ui::DisplaySnapshot& output,
65 const ui::DisplayMode* mode) {
66 NOTIMPLEMENTED();
67 }
68
69 void NativeDisplayDelegateOzone::Configure(const ui::DisplaySnapshot& output,
70 const ui::DisplayMode* mode,
71 const gfx::Point& origin,
72 const ConfigureCallback& callback) {
73 NOTIMPLEMENTED();
74 callback.Run(true);
75 }
76
77 void NativeDisplayDelegateOzone::CreateFrameBuffer(const gfx::Size& size) {
78 NOTIMPLEMENTED();
79 }
80
81 void NativeDisplayDelegateOzone::GetHDCPState(
82 const ui::DisplaySnapshot& output,
83 const GetHDCPStateCallback& callback) {
84 NOTIMPLEMENTED();
85 callback.Run(false, HDCP_STATE_UNDESIRED);
86 }
87
88 void NativeDisplayDelegateOzone::SetHDCPState(
89 const ui::DisplaySnapshot& output,
90 ui::HDCPState state,
91 const SetHDCPStateCallback& callback) {
92 NOTIMPLEMENTED();
93 callback.Run(false);
94 }
95
96 std::vector<ui::ColorCalibrationProfile>
97 NativeDisplayDelegateOzone::GetAvailableColorCalibrationProfiles(
98 const ui::DisplaySnapshot& output) {
99 NOTIMPLEMENTED();
100 return std::vector<ui::ColorCalibrationProfile>();
101 }
102
103 bool NativeDisplayDelegateOzone::SetColorCalibrationProfile(
104 const ui::DisplaySnapshot& output,
105 ui::ColorCalibrationProfile new_profile) {
106 NOTIMPLEMENTED();
107 return false;
108 }
109
110 bool NativeDisplayDelegateOzone::SetGammaRamp(
111 const ui::DisplaySnapshot& output,
112 const std::vector<GammaRampRGBEntry>& lut) {
113 NOTIMPLEMENTED();
114 return false;
115 }
116
117 void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) {
118 NOTIMPLEMENTED();
119 }
120
121 void NativeDisplayDelegateOzone::RemoveObserver(
122 NativeDisplayObserver* observer) {
123 NOTIMPLEMENTED();
124 }
125
126 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/common/native_display_delegate_ozone.h ('k') | ui/ozone/common/stub_overlay_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698