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

Unified Diff: ui/ozone/platform/dri/chromeos/display_message_handler.h

Issue 377753002: [Ozone-GBM] Add basic support for display configuration over IPC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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/ozone.gyp ('k') | ui/ozone/platform/dri/chromeos/display_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/chromeos/display_message_handler.h
diff --git a/ui/ozone/platform/dri/chromeos/display_message_handler.h b/ui/ozone/platform/dri/chromeos/display_message_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..4f67ca335e62322ab96de3de620f910b8d7b36a7
--- /dev/null
+++ b/ui/ozone/platform/dri/chromeos/display_message_handler.h
@@ -0,0 +1,49 @@
+// 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_PLATFORM_DRI_CHROMEOS_DISPLAY_MESSAGE_HANDLER_H_
+#define UI_OZONE_PLATFORM_DRI_CHROMEOS_DISPLAY_MESSAGE_HANDLER_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "ui/ozone/public/gpu_platform_support.h"
+
+namespace gfx {
+class Point;
+}
+
+namespace ui {
+
+class NativeDisplayDelegateDri;
+
+struct DisplayMode_Params;
+struct DisplaySnapshot_Params;
+
+class DisplayMessageHandler : public GpuPlatformSupport {
spang 2014/07/08 17:26:21 I'm not super happy about reusing the main interfa
+ public:
+ DisplayMessageHandler(scoped_ptr<NativeDisplayDelegateDri> ndd);
+ virtual ~DisplayMessageHandler();
+
+ // GpuPlatformSupport:
+ virtual void OnChannelEstablished(IPC::Sender* sender) OVERRIDE;
+
+ // IPC::Listener:
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ private:
+ void OnForceDPMSOn();
+ void OnRefreshNativeDisplays();
+ void OnConfigureNativeDisplay(int64_t id,
+ const DisplayMode_Params& mode,
+ const gfx::Point& origin);
+ void OnDisableNativeDisplay(int64_t id);
+
+ IPC::Sender* sender_;
+ scoped_ptr<NativeDisplayDelegateDri> ndd_;
+
+ DISALLOW_COPY_AND_ASSIGN(DisplayMessageHandler);
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PLATFORM_DRI_CHROMEOS_DISPLAY_MESSAGE_HANDLER_H_
« no previous file with comments | « ui/ozone/ozone.gyp ('k') | ui/ozone/platform/dri/chromeos/display_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698