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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef UI_OZONE_PLATFORM_DRI_CHROMEOS_DISPLAY_MESSAGE_HANDLER_H_
6 #define UI_OZONE_PLATFORM_DRI_CHROMEOS_DISPLAY_MESSAGE_HANDLER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "ui/ozone/public/gpu_platform_support.h"
10
11 namespace gfx {
12 class Point;
13 }
14
15 namespace ui {
16
17 class NativeDisplayDelegateDri;
18
19 struct DisplayMode_Params;
20 struct DisplaySnapshot_Params;
21
22 class DisplayMessageHandler : public GpuPlatformSupport {
spang 2014/07/08 17:26:21 I'm not super happy about reusing the main interfa
23 public:
24 DisplayMessageHandler(scoped_ptr<NativeDisplayDelegateDri> ndd);
25 virtual ~DisplayMessageHandler();
26
27 // GpuPlatformSupport:
28 virtual void OnChannelEstablished(IPC::Sender* sender) OVERRIDE;
29
30 // IPC::Listener:
31 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
32
33 private:
34 void OnForceDPMSOn();
35 void OnRefreshNativeDisplays();
36 void OnConfigureNativeDisplay(int64_t id,
37 const DisplayMode_Params& mode,
38 const gfx::Point& origin);
39 void OnDisableNativeDisplay(int64_t id);
40
41 IPC::Sender* sender_;
42 scoped_ptr<NativeDisplayDelegateDri> ndd_;
43
44 DISALLOW_COPY_AND_ASSIGN(DisplayMessageHandler);
45 };
46
47 } // namespace ui
48
49 #endif // UI_OZONE_PLATFORM_DRI_CHROMEOS_DISPLAY_MESSAGE_HANDLER_H_
OLDNEW
« 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