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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/common/native_display_delegate_ozone.cc
diff --git a/ui/ozone/common/native_display_delegate_ozone.cc b/ui/ozone/common/native_display_delegate_ozone.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a7f7d1f900fb0bb1d519ff740f71863e23d67b2a
--- /dev/null
+++ b/ui/ozone/common/native_display_delegate_ozone.cc
@@ -0,0 +1,126 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/ozone/common/native_display_delegate_ozone.h"
+
+#include "base/logging.h"
+#include "ui/ozone/common/display_snapshot_proxy.h"
+#include "ui/ozone/common/display_util.h"
+
+namespace ui {
+
+NativeDisplayDelegateOzone::NativeDisplayDelegateOzone() {
+}
+
+NativeDisplayDelegateOzone::~NativeDisplayDelegateOzone() {
+}
+
+void NativeDisplayDelegateOzone::Initialize() {
+ DisplaySnapshot_Params params;
+ if (CreateSnapshotFromCommandLine(&params)) {
+ DCHECK_NE(DISPLAY_CONNECTION_TYPE_NONE, params.type);
+ displays_.push_back(new DisplaySnapshotProxy(params));
+ }
+}
+
+void NativeDisplayDelegateOzone::GrabServer() {
+ NOTIMPLEMENTED();
+}
+
+void NativeDisplayDelegateOzone::UngrabServer() {
+ NOTIMPLEMENTED();
+}
+
+void NativeDisplayDelegateOzone::TakeDisplayControl(
+ const DisplayControlCallback& callback) {
+ NOTIMPLEMENTED();
+ callback.Run(false);
+}
+
+void NativeDisplayDelegateOzone::RelinquishDisplayControl(
+ const DisplayControlCallback& callback) {
+ NOTIMPLEMENTED();
+ callback.Run(false);
+}
+
+void NativeDisplayDelegateOzone::SyncWithServer() {
+ NOTIMPLEMENTED();
+}
+
+void NativeDisplayDelegateOzone::SetBackgroundColor(uint32_t color_argb) {
+ NOTIMPLEMENTED();
+}
+
+void NativeDisplayDelegateOzone::ForceDPMSOn() {
+ NOTIMPLEMENTED();
+}
+
+void NativeDisplayDelegateOzone::GetDisplays(
+ const GetDisplaysCallback& callback) {
+ callback.Run(displays_.get());
+}
+
+void NativeDisplayDelegateOzone::AddMode(const ui::DisplaySnapshot& output,
+ const ui::DisplayMode* mode) {
+ NOTIMPLEMENTED();
+}
+
+void NativeDisplayDelegateOzone::Configure(const ui::DisplaySnapshot& output,
+ const ui::DisplayMode* mode,
+ const gfx::Point& origin,
+ const ConfigureCallback& callback) {
+ NOTIMPLEMENTED();
+ callback.Run(true);
+}
+
+void NativeDisplayDelegateOzone::CreateFrameBuffer(const gfx::Size& size) {
+ NOTIMPLEMENTED();
+}
+
+void NativeDisplayDelegateOzone::GetHDCPState(
+ const ui::DisplaySnapshot& output,
+ const GetHDCPStateCallback& callback) {
+ NOTIMPLEMENTED();
+ callback.Run(false, HDCP_STATE_UNDESIRED);
+}
+
+void NativeDisplayDelegateOzone::SetHDCPState(
+ const ui::DisplaySnapshot& output,
+ ui::HDCPState state,
+ const SetHDCPStateCallback& callback) {
+ NOTIMPLEMENTED();
+ callback.Run(false);
+}
+
+std::vector<ui::ColorCalibrationProfile>
+NativeDisplayDelegateOzone::GetAvailableColorCalibrationProfiles(
+ const ui::DisplaySnapshot& output) {
+ NOTIMPLEMENTED();
+ return std::vector<ui::ColorCalibrationProfile>();
+}
+
+bool NativeDisplayDelegateOzone::SetColorCalibrationProfile(
+ const ui::DisplaySnapshot& output,
+ ui::ColorCalibrationProfile new_profile) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool NativeDisplayDelegateOzone::SetGammaRamp(
+ const ui::DisplaySnapshot& output,
+ const std::vector<GammaRampRGBEntry>& lut) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+void NativeDisplayDelegateOzone::AddObserver(NativeDisplayObserver* observer) {
+ NOTIMPLEMENTED();
+}
+
+void NativeDisplayDelegateOzone::RemoveObserver(
+ NativeDisplayObserver* observer) {
+ NOTIMPLEMENTED();
+}
+
+} // namespace ui
« 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