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

Side by Side Diff: ui/display/types/display_snapshot.h

Issue 1671223002: Revert of Give user ability to file a feedback report from the display error notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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_TYPES_DISPLAY_SNAPSHOT_H_ 5 #ifndef UI_DISPLAY_TYPES_DISPLAY_SNAPSHOT_H_
6 #define UI_DISPLAY_TYPES_DISPLAY_SNAPSHOT_H_ 6 #define UI_DISPLAY_TYPES_DISPLAY_SNAPSHOT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 DisplaySnapshot(int64_t display_id, 26 DisplaySnapshot(int64_t display_id,
27 const gfx::Point& origin, 27 const gfx::Point& origin,
28 const gfx::Size& physical_size, 28 const gfx::Size& physical_size,
29 DisplayConnectionType type, 29 DisplayConnectionType type,
30 bool is_aspect_preserving_scaling, 30 bool is_aspect_preserving_scaling,
31 bool has_overscan, 31 bool has_overscan,
32 std::string display_name, 32 std::string display_name,
33 const base::FilePath& sys_path, 33 const base::FilePath& sys_path,
34 const std::vector<const DisplayMode*>& modes, 34 const std::vector<const DisplayMode*>& modes,
35 const std::vector<uint8_t>& edid,
36 const DisplayMode* current_mode, 35 const DisplayMode* current_mode,
37 const DisplayMode* native_mode); 36 const DisplayMode* native_mode);
38 virtual ~DisplaySnapshot(); 37 virtual ~DisplaySnapshot();
39 38
40 const gfx::Point& origin() const { return origin_; } 39 const gfx::Point& origin() const { return origin_; }
41 const gfx::Size& physical_size() const { return physical_size_; } 40 const gfx::Size& physical_size() const { return physical_size_; }
42 ui::DisplayConnectionType type() const { return type_; } 41 ui::DisplayConnectionType type() const { return type_; }
43 bool is_aspect_preserving_scaling() const { 42 bool is_aspect_preserving_scaling() const {
44 return is_aspect_preserving_scaling_; 43 return is_aspect_preserving_scaling_;
45 } 44 }
46 bool has_overscan() const { return has_overscan_; } 45 bool has_overscan() const { return has_overscan_; }
47 std::string display_name() const { return display_name_; } 46 std::string display_name() const { return display_name_; }
48 const base::FilePath& sys_path() const { return sys_path_; } 47 const base::FilePath& sys_path() const { return sys_path_; }
49 48
50 int64_t display_id() const { return display_id_; } 49 int64_t display_id() const { return display_id_; }
51 50
52 const DisplayMode* current_mode() const { return current_mode_; } 51 const DisplayMode* current_mode() const { return current_mode_; }
53 const DisplayMode* native_mode() const { return native_mode_; } 52 const DisplayMode* native_mode() const { return native_mode_; }
54 int64_t product_id() const { return product_id_; } 53 int64_t product_id() const { return product_id_; }
55 54
56 const std::vector<const DisplayMode*>& modes() const { return modes_; } 55 const std::vector<const DisplayMode*>& modes() const { return modes_; }
57 const std::vector<uint8_t>& edid() const { return edid_; }
58 56
59 void set_current_mode(const DisplayMode* mode) { current_mode_ = mode; } 57 void set_current_mode(const DisplayMode* mode) { current_mode_ = mode; }
60 void set_origin(const gfx::Point& origin) { origin_ = origin; } 58 void set_origin(const gfx::Point& origin) { origin_ = origin; }
61 void add_mode(const DisplayMode* mode) { modes_.push_back(mode); } 59 void add_mode(const DisplayMode* mode) { modes_.push_back(mode); }
62 60
63 // Returns a textual representation of this display state. 61 // Returns a textual representation of this display state.
64 virtual std::string ToString() const = 0; 62 virtual std::string ToString() const = 0;
65 63
66 // Used when no product id known. 64 // Used when no product id known.
67 static const int64_t kInvalidProductID = -1; 65 static const int64_t kInvalidProductID = -1;
(...skipping 12 matching lines...) Expand all
80 bool is_aspect_preserving_scaling_; 78 bool is_aspect_preserving_scaling_;
81 79
82 bool has_overscan_; 80 bool has_overscan_;
83 81
84 std::string display_name_; 82 std::string display_name_;
85 83
86 base::FilePath sys_path_; 84 base::FilePath sys_path_;
87 85
88 std::vector<const DisplayMode*> modes_; // Not owned. 86 std::vector<const DisplayMode*> modes_; // Not owned.
89 87
90 // The display's EDID. It can be empty if nothing extracted such as in the
91 // case of a virtual display.
92 std::vector<uint8_t> edid_;
93
94 // Mode currently being used by the output. 88 // Mode currently being used by the output.
95 const DisplayMode* current_mode_; 89 const DisplayMode* current_mode_;
96 90
97 // "Best" mode supported by the output. 91 // "Best" mode supported by the output.
98 const DisplayMode* native_mode_; 92 const DisplayMode* native_mode_;
99 93
100 // Combination of manufacturer and product code. 94 // Combination of manufacturer and product code.
101 int64_t product_id_; 95 int64_t product_id_;
102 96
103 DISALLOW_COPY_AND_ASSIGN(DisplaySnapshot); 97 DISALLOW_COPY_AND_ASSIGN(DisplaySnapshot);
104 }; 98 };
105 99
106 } // namespace ui 100 } // namespace ui
107 101
108 #endif // UI_DISPLAY_TYPES_DISPLAY_SNAPSHOT_H_ 102 #endif // UI_DISPLAY_TYPES_DISPLAY_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « ui/display/chromeos/x11/native_display_event_dispatcher_x11_unittest.cc ('k') | ui/display/types/display_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698