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.
5 #ifndef UI_OZONE_PLATFORM_DRI_CHROMEOS_DISPLAY_MESSAGE_HANDLER_H_
6 #define UI_OZONE_PLATFORM_DRI_CHROMEOS_DISPLAY_MESSAGE_HANDLER_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "ui/ozone/public/gpu_platform_support.h"
17 class NativeDisplayDelegateDri;
19 struct DisplayMode_Params;
20 struct DisplaySnapshot_Params;
22 class DisplayMessageHandler : public GpuPlatformSupport {
24 DisplayMessageHandler(scoped_ptr<NativeDisplayDelegateDri> ndd);
25 virtual ~DisplayMessageHandler();
27 // GpuPlatformSupport:
28 virtual void OnChannelEstablished(IPC::Sender* sender) OVERRIDE;
31 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
35 void OnRefreshNativeDisplays(
36 const std::vector<DisplaySnapshot_Params>& cached_displays);
37 void OnConfigureNativeDisplay(int64_t id,
38 const DisplayMode_Params& mode,
39 const gfx::Point& origin);
40 void OnDisableNativeDisplay(int64_t id);
43 scoped_ptr<NativeDisplayDelegateDri> ndd_;
45 DISALLOW_COPY_AND_ASSIGN(DisplayMessageHandler);
50 #endif // UI_OZONE_PLATFORM_DRI_CHROMEOS_DISPLAY_MESSAGE_HANDLER_H_