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

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

Issue 2638903003: Updates touch calibration API and plumbs through the native touch calibration method (Closed)
Patch Set: Created 3 years, 11 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 113 }
114 114
115 bool DisplayInfoProvider::OverscanCalibrationReset(const std::string& id) { 115 bool DisplayInfoProvider::OverscanCalibrationReset(const std::string& id) {
116 return false; 116 return false;
117 } 117 }
118 118
119 bool DisplayInfoProvider::OverscanCalibrationComplete(const std::string& id) { 119 bool DisplayInfoProvider::OverscanCalibrationComplete(const std::string& id) {
120 return false; 120 return false;
121 } 121 }
122 122
123 bool DisplayInfoProvider::TouchCalibrationStart(const std::string& id) { 123 bool DisplayInfoProvider::StartNativeTouchCalibration(const std::string& id,
124 std::string* error) {
124 NOTREACHED(); // Implemented on Chrome OS only in override. 125 NOTREACHED(); // Implemented on Chrome OS only in override.
125 return false; 126 return false;
126 } 127 }
127 128
128 bool DisplayInfoProvider::TouchCalibrationSet( 129 bool DisplayInfoProvider::StartCustomTouchCalibration(const std::string& id,
129 const std::string& id, 130 std::string* error) {
131 NOTREACHED(); // Implemented on Chrome OS only in override.
132 return false;
133 }
134
135 bool DisplayInfoProvider::CompleteCustomTouchCalibration(
130 const api::system_display::TouchCalibrationPairQuad& pairs, 136 const api::system_display::TouchCalibrationPairQuad& pairs,
131 const api::system_display::Bounds& bounds, 137 const api::system_display::Bounds& bounds,
132 std::string* error) { 138 std::string* error) {
133 NOTREACHED(); // Implemented on Chrome OS only in override. 139 NOTREACHED(); // Implemented on Chrome OS only in override.
134 return false; 140 return false;
135 } 141 }
136 142
137 bool DisplayInfoProvider::TouchCalibrationReset(const std::string& id, 143 bool DisplayInfoProvider::ResetTouchCalibration(const std::string& id,
138 std::string* error) { 144 std::string* error) {
139 NOTREACHED(); // Implemented on Chrome OS only in override. 145 NOTREACHED(); // Implemented on Chrome OS only in override.
140 return false; 146 return false;
141 } 147 }
142 148
143 bool DisplayInfoProvider::IsTouchCalibrationActive(std::string* error) { 149 bool DisplayInfoProvider::IsNativeTouchCalibrationActive(std::string* error) {
144 NOTREACHED(); // Implemented on Chrome OS only in override. 150 NOTREACHED(); // Implemented on Chrome OS only in override.
145 return true; 151 return true;
146 } 152 }
147 153
148 DisplayInfoProvider::DisplayInfoProvider() { 154 DisplayInfoProvider::DisplayInfoProvider() {
149 } 155 }
150 156
151 } // namespace extensions 157 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698