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

Side by Side Diff: extensions/browser/api/system_display/display_info_provider.cc

Issue 2002773002: Add overscanCalibration methods to system_display.idl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix non-chromeos + tests Created 4 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "extensions/browser/api/system_display/display_info_provider.h" 5 #include "extensions/browser/api/system_display/display_info_provider.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "extensions/common/api/system_display.h" 8 #include "extensions/common/api/system_display.h"
9 #include "ui/display/display.h" 9 #include "ui/display/display.h"
10 #include "ui/display/screen.h" 10 #include "ui/display/screen.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 DisplayUnitInfoList all_displays; 82 DisplayUnitInfoList all_displays;
83 for (const display::Display& display : displays) { 83 for (const display::Display& display : displays) {
84 api::system_display::DisplayUnitInfo unit = 84 api::system_display::DisplayUnitInfo unit =
85 CreateDisplayUnitInfo(display, primary_id); 85 CreateDisplayUnitInfo(display, primary_id);
86 UpdateDisplayUnitInfoForPlatform(display, &unit); 86 UpdateDisplayUnitInfoForPlatform(display, &unit);
87 all_displays.push_back(std::move(unit)); 87 all_displays.push_back(std::move(unit));
88 } 88 }
89 return all_displays; 89 return all_displays;
90 } 90 }
91 91
92 bool DisplayInfoProvider::OverscanCalibrationStart(const std::string& id) {
93 return false;
94 }
95
96 bool DisplayInfoProvider::OverscanCalibrationAdjust(
97 const std::string& id,
98 const api::system_display::Insets& delta) {
99 return false;
100 }
101
102 bool DisplayInfoProvider::OverscanCalibrationReset(const std::string& id) {
103 return false;
104 }
105
106 bool DisplayInfoProvider::OverscanCalibrationComplete(const std::string& id) {
107 return false;
108 }
109
92 DisplayInfoProvider::DisplayInfoProvider() { 110 DisplayInfoProvider::DisplayInfoProvider() {
93 } 111 }
94 112
95 } // namespace extensions 113 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698