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

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

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 #include "ui/display/chromeos/x11/display_snapshot_x11.h" 5 #include "ui/display/chromeos/x11/display_snapshot_x11.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "ui/display/chromeos/x11/display_mode_x11.h" 8 #include "ui/display/chromeos/x11/display_mode_x11.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 DisplaySnapshotX11::DisplaySnapshotX11( 12 DisplaySnapshotX11::DisplaySnapshotX11(
13 int64_t display_id, 13 int64_t display_id,
14 const gfx::Point& origin, 14 const gfx::Point& origin,
15 const gfx::Size& physical_size, 15 const gfx::Size& physical_size,
16 DisplayConnectionType type, 16 DisplayConnectionType type,
17 bool is_aspect_preserving_scaling, 17 bool is_aspect_preserving_scaling,
18 bool has_overscan, 18 bool has_overscan,
19 std::string display_name, 19 std::string display_name,
20 const std::vector<const DisplayMode*>& modes, 20 const std::vector<const DisplayMode*>& modes,
21 const std::vector<uint8_t>& edid,
22 const DisplayMode* current_mode, 21 const DisplayMode* current_mode,
23 const DisplayMode* native_mode, 22 const DisplayMode* native_mode,
24 RROutput output, 23 RROutput output,
25 RRCrtc crtc, 24 RRCrtc crtc,
26 int index) 25 int index)
27 : DisplaySnapshot(display_id, 26 : DisplaySnapshot(display_id,
28 origin, 27 origin,
29 physical_size, 28 physical_size,
30 type, 29 type,
31 is_aspect_preserving_scaling, 30 is_aspect_preserving_scaling,
32 has_overscan, 31 has_overscan,
33 display_name, 32 display_name,
34 // TODO(jdufault): Figure out if we can get the file 33 // TODO(jdufault): Figure out if we can get the file
35 // descriptor that maps to the device. 34 // descriptor that maps to the device.
36 base::FilePath(), 35 base::FilePath(),
37 modes, 36 modes,
38 edid,
39 current_mode, 37 current_mode,
40 native_mode), 38 native_mode),
41 output_(output), 39 output_(output),
42 crtc_(crtc), 40 crtc_(crtc),
43 index_(index) {} 41 index_(index) {}
44 42
45 DisplaySnapshotX11::~DisplaySnapshotX11() {} 43 DisplaySnapshotX11::~DisplaySnapshotX11() {}
46 44
47 std::string DisplaySnapshotX11::ToString() const { 45 std::string DisplaySnapshotX11::ToString() const {
48 return base::StringPrintf( 46 return base::StringPrintf(
49 "[type=%d, output=%ld, crtc=%ld, mode=%ld, dim=%dx%d]", 47 "[type=%d, output=%ld, crtc=%ld, mode=%ld, dim=%dx%d]",
50 type_, 48 type_,
51 output_, 49 output_,
52 crtc_, 50 crtc_,
53 current_mode_ 51 current_mode_
54 ? static_cast<const DisplayModeX11*>(current_mode_)->mode_id() 52 ? static_cast<const DisplayModeX11*>(current_mode_)->mode_id()
55 : 0, 53 : 0,
56 physical_size_.width(), 54 physical_size_.width(),
57 physical_size_.height()); 55 physical_size_.height());
58 } 56 }
59 57
60 } // namespace ui 58 } // namespace ui
OLDNEW
« no previous file with comments | « ui/display/chromeos/x11/display_snapshot_x11.h ('k') | ui/display/chromeos/x11/native_display_delegate_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698