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

Side by Side Diff: ui/ozone/common/display_util.cc

Issue 1636153002: 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: more comments 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/ozone/common/display_util.h" 5 #include "ui/ozone/common/display_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 params.origin = display.origin(); 47 params.origin = display.origin();
48 params.physical_size = display.physical_size(); 48 params.physical_size = display.physical_size();
49 params.type = display.type(); 49 params.type = display.type();
50 params.is_aspect_preserving_scaling = display.is_aspect_preserving_scaling(); 50 params.is_aspect_preserving_scaling = display.is_aspect_preserving_scaling();
51 params.has_overscan = display.has_overscan(); 51 params.has_overscan = display.has_overscan();
52 params.display_name = display.display_name(); 52 params.display_name = display.display_name();
53 params.sys_path = display.sys_path(); 53 params.sys_path = display.sys_path();
54 for (size_t i = 0; i < display.modes().size(); ++i) 54 for (size_t i = 0; i < display.modes().size(); ++i)
55 params.modes.push_back(GetDisplayModeParams(*display.modes()[i])); 55 params.modes.push_back(GetDisplayModeParams(*display.modes()[i]));
56 56
57 params.edid = display.edid();
58
57 params.has_current_mode = display.current_mode() != NULL; 59 params.has_current_mode = display.current_mode() != NULL;
58 if (params.has_current_mode) 60 if (params.has_current_mode)
59 params.current_mode = GetDisplayModeParams(*display.current_mode()); 61 params.current_mode = GetDisplayModeParams(*display.current_mode());
60 62
61 params.has_native_mode = display.native_mode() != NULL; 63 params.has_native_mode = display.native_mode() != NULL;
62 if (params.has_native_mode) 64 if (params.has_native_mode)
63 params.native_mode = GetDisplayModeParams(*display.native_mode()); 65 params.native_mode = GetDisplayModeParams(*display.native_mode());
64 66
65 params.product_id = display.product_id(); 67 params.product_id = display.product_id();
66 params.string_representation = display.ToString(); 68 params.string_representation = display.ToString();
(...skipping 29 matching lines...) Expand all
96 snapshot_out->physical_size = gfx::Size(physical_width, physical_height); 98 snapshot_out->physical_size = gfx::Size(physical_width, physical_height);
97 snapshot_out->has_current_mode = true; 99 snapshot_out->has_current_mode = true;
98 snapshot_out->current_mode = mode_param; 100 snapshot_out->current_mode = mode_param;
99 snapshot_out->has_native_mode = true; 101 snapshot_out->has_native_mode = true;
100 snapshot_out->native_mode = mode_param; 102 snapshot_out->native_mode = mode_param;
101 snapshot_out->product_id = kDummyProductId; 103 snapshot_out->product_id = kDummyProductId;
102 return true; 104 return true;
103 } 105 }
104 106
105 } // namespace ui 107 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/common/display_snapshot_proxy.cc ('k') | ui/ozone/common/gpu/ozone_gpu_message_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698