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

Unified Diff: ui/ozone/common/native_display_delegate_ozone.h

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/gpu/ozone_gpu_message_params.cc ('k') | ui/ozone/common/native_display_delegate_ozone.cc » ('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.h
diff --git a/ui/ozone/common/native_display_delegate_ozone.h b/ui/ozone/common/native_display_delegate_ozone.h
new file mode 100644
index 0000000000000000000000000000000000000000..e057ea07ba56f1573c1053cd8183ea79f176be39
--- /dev/null
+++ b/ui/ozone/common/native_display_delegate_ozone.h
@@ -0,0 +1,61 @@
+// 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.
+
+#ifndef UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_
+#define UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_vector.h"
+#include "ui/display/types/native_display_delegate.h"
+
+namespace ui {
+
+class NativeDisplayDelegateOzone : public NativeDisplayDelegate {
+ public:
+ NativeDisplayDelegateOzone();
+ ~NativeDisplayDelegateOzone() override;
+
+ // NativeDisplayDelegate overrides:
+ void Initialize() override;
+ void GrabServer() override;
+ void UngrabServer() override;
+ void TakeDisplayControl(const DisplayControlCallback& callback) override;
+ void RelinquishDisplayControl(
+ const DisplayControlCallback& callback) override;
+ void SyncWithServer() override;
+ void SetBackgroundColor(uint32_t color_argb) override;
+ void ForceDPMSOn() override;
+ void GetDisplays(const GetDisplaysCallback& callback) override;
+ void AddMode(const ui::DisplaySnapshot& output,
+ const ui::DisplayMode* mode) override;
+ void Configure(const ui::DisplaySnapshot& output,
+ const ui::DisplayMode* mode,
+ const gfx::Point& origin,
+ const ConfigureCallback& callback) override;
+ void CreateFrameBuffer(const gfx::Size& size) override;
+ void GetHDCPState(const ui::DisplaySnapshot& output,
+ const GetHDCPStateCallback& callback) override;
+ void SetHDCPState(const ui::DisplaySnapshot& output,
+ ui::HDCPState state,
+ const SetHDCPStateCallback& callback) override;
+ std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles(
+ const ui::DisplaySnapshot& output) override;
+ bool SetColorCalibrationProfile(
+ const ui::DisplaySnapshot& output,
+ ui::ColorCalibrationProfile new_profile) override;
+ bool SetGammaRamp(const ui::DisplaySnapshot& output,
+ const std::vector<GammaRampRGBEntry>& lut) override;
+
+ void AddObserver(NativeDisplayObserver* observer) override;
+ void RemoveObserver(NativeDisplayObserver* observer) override;
+
+ private:
+ ScopedVector<DisplaySnapshot> displays_;
+
+ DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateOzone);
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_COMMON_NATIVE_DISPLAY_DELEGATE_OZONE_H_
« no previous file with comments | « ui/ozone/common/gpu/ozone_gpu_message_params.cc ('k') | ui/ozone/common/native_display_delegate_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698