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

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

Issue 667753002: Treat displays with and without EDID the same way (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_DISPLAY_CHROMEOS_X11_DISPLAY_SNAPSHOT_X11_H_ 5 #ifndef UI_DISPLAY_CHROMEOS_X11_DISPLAY_SNAPSHOT_X11_H_
6 #define UI_DISPLAY_CHROMEOS_X11_DISPLAY_SNAPSHOT_X11_H_ 6 #define UI_DISPLAY_CHROMEOS_X11_DISPLAY_SNAPSHOT_X11_H_
7 7
8 #include "ui/display/display_export.h" 8 #include "ui/display/display_export.h"
9 #include "ui/display/types/display_snapshot.h" 9 #include "ui/display/types/display_snapshot.h"
10 10
11 // Forward declare from Xlib and Xrandr. 11 // Forward declare from Xlib and Xrandr.
12 typedef unsigned long XID; 12 typedef unsigned long XID;
13 typedef XID RROutput; 13 typedef XID RROutput;
14 typedef XID RRCrtc; 14 typedef XID RRCrtc;
15 15
16 namespace ui { 16 namespace ui {
17 17
18 class DISPLAY_EXPORT DisplaySnapshotX11 : public DisplaySnapshot { 18 class DISPLAY_EXPORT DisplaySnapshotX11 : public DisplaySnapshot {
19 public: 19 public:
20 DisplaySnapshotX11(int64_t display_id, 20 DisplaySnapshotX11(int64_t display_id,
21 bool has_proper_display_id,
22 const gfx::Point& origin, 21 const gfx::Point& origin,
23 const gfx::Size& physical_size, 22 const gfx::Size& physical_size,
24 DisplayConnectionType type, 23 DisplayConnectionType type,
25 bool is_aspect_preserving_scaling, 24 bool is_aspect_preserving_scaling,
26 bool has_overscan, 25 bool has_overscan,
27 std::string display_name, 26 std::string display_name,
28 const std::vector<const DisplayMode*>& modes, 27 const std::vector<const DisplayMode*>& modes,
29 const DisplayMode* current_mode, 28 const DisplayMode* current_mode,
30 const DisplayMode* native_mode, 29 const DisplayMode* native_mode,
31 RROutput output, 30 RROutput output,
(...skipping 18 matching lines...) Expand all
50 // This output's index in the array returned by XRandR. Stable even as 49 // This output's index in the array returned by XRandR. Stable even as
51 // outputs are connected or disconnected. 50 // outputs are connected or disconnected.
52 int index_; 51 int index_;
53 52
54 DISALLOW_COPY_AND_ASSIGN(DisplaySnapshotX11); 53 DISALLOW_COPY_AND_ASSIGN(DisplaySnapshotX11);
55 }; 54 };
56 55
57 } // namespace ui 56 } // namespace ui
58 57
59 #endif // UI_DISPLAY_CHROMEOS_X11_DISPLAY_SNAPSHOT_X11_H_ 58 #endif // UI_DISPLAY_CHROMEOS_X11_DISPLAY_SNAPSHOT_X11_H_
OLDNEW
« no previous file with comments | « ui/display/chromeos/test/test_display_snapshot.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