Chromium Code Reviews| 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_ |