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

Side by Side Diff: ui/display/chromeos/x11/display_snapshot_x11.h

Issue 187073002: Refactoring display configuration state to allow generic state objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 9 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 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_DISPLAY_CHROMEOS_X11_DISPLAY_SNAPSHOT_X11_H_
6 #define UI_DISPLAY_CHROMEOS_X11_DISPLAY_SNAPSHOT_X11_H_
7
8 #include "ui/display/chromeos/display_snapshot.h"
9
10 // Forward declare from Xlib and Xrandr.
11 typedef unsigned long XID;
12 typedef XID RROutput;
13 typedef XID RRCrtc;
14
15 namespace ui {
16
17 class DISPLAY_EXPORT DisplaySnapshotX11 : public DisplaySnapshot {
18 public:
19 DisplaySnapshotX11(int64_t display_id,
20 bool has_proper_display_id,
21 const gfx::Point& origin,
22 const gfx::Size& physical_size,
23 OutputType type,
24 bool is_aspect_preserving_scaling,
25 const std::vector<const DisplayMode*>& modes,
26 const DisplayMode* current_mode,
27 const DisplayMode* native_mode,
28 RROutput output,
29 RRCrtc crtc,
30 int index);
31 virtual ~DisplaySnapshotX11();
32
33 RROutput output() const { return output_; }
34 RRCrtc crtc() const { return crtc_; }
35 int index() const { return index_; }
36
37 // DisplaySnapshot overrides:
38 virtual std::string GetDisplayName() OVERRIDE;
39 virtual bool GetOverscanFlag() OVERRIDE;
40 virtual std::string ToString() const OVERRIDE;
41
42 private:
43 RROutput output_;
44
45 // CRTC that should be used for this output. Not necessarily the CRTC
46 // that XRandR reports is currently being used.
47 RRCrtc crtc_;
48
49 // This output's index in the array returned by XRandR. Stable even as
50 // outputs are connected or disconnected.
51 int index_;
52
53 DISALLOW_COPY_AND_ASSIGN(DisplaySnapshotX11);
54 };
55
56 } // namespace ui
57
58 #endif // UI_DISPLAY_CHROMEOS_X11_DISPLAY_SNAPSHOT_X11_H_
OLDNEW
« no previous file with comments | « ui/display/chromeos/x11/display_mode_x11.cc ('k') | ui/display/chromeos/x11/display_snapshot_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698