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

Side by Side Diff: ui/wayland/wayland_screen.h

Issue 7457023: Adding a Wayland basic toolkit (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 WAYLAND_SCREEN_H_
6 #define WAYLAND_SCREEN_H_
7
8 #include <list>
9 #include <stdint.h>
10
11 #include "wayland_geometry_utils.h"
12
13 struct wl_output;
14
15 class WaylandDisplay;
16
17 class WaylandScreen {
18 public:
19 WaylandScreen(WaylandDisplay* display, uint32_t id);
20 ~WaylandScreen();
21
22 Rectangle GetAllocation() const;
23
24 private:
25 struct Mode {
26 int32_t width, height, refresh, flags;
27 };
28
29 struct wl_output* output_;
30 WaylandDisplay* display_;
31 Point position_;
32
33 typedef std::list<Mode> Modes;
34 Modes modes_;
35
36 static const struct wl_output_listener output_listener;
37
38 static void OutputHandleGeometry(void* data,
39 struct wl_output* output,
40 int32_t x,
41 int32_t y,
42 int32_t physical_width,
43 int32_t physical_height,
44 int32_t subpixel,
45 const char* make,
46 const char* model);
47 static void OutputHandleMode(void* data,
48 struct wl_output* wl_output,
49 uint32_t flags,
50 int32_t width,
51 int32_t height,
52 int32_t refresh);
53 };
54
55 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698