| OLD | NEW |
| 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 Loading... |
| 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::ShowNativeTouchCalibration( |
| 124 const std::string& id, |
| 125 std::string* error, |
| 126 const TouchCalibrationCallback& callback) { |
| 124 NOTREACHED(); // Implemented on Chrome OS only in override. | 127 NOTREACHED(); // Implemented on Chrome OS only in override. |
| 125 return false; | 128 return false; |
| 126 } | 129 } |
| 127 | 130 |
| 128 bool DisplayInfoProvider::TouchCalibrationSet( | 131 bool DisplayInfoProvider::StartCustomTouchCalibration(const std::string& id, |
| 129 const std::string& id, | 132 std::string* error) { |
| 133 NOTREACHED(); // Implemented on Chrome OS only in override. |
| 134 return false; |
| 135 } |
| 136 |
| 137 bool DisplayInfoProvider::CompleteCustomTouchCalibration( |
| 130 const api::system_display::TouchCalibrationPairQuad& pairs, | 138 const api::system_display::TouchCalibrationPairQuad& pairs, |
| 131 const api::system_display::Bounds& bounds, | 139 const api::system_display::Bounds& bounds, |
| 132 std::string* error) { | 140 std::string* error) { |
| 133 NOTREACHED(); // Implemented on Chrome OS only in override. | 141 NOTREACHED(); // Implemented on Chrome OS only in override. |
| 134 return false; | 142 return false; |
| 135 } | 143 } |
| 136 | 144 |
| 137 bool DisplayInfoProvider::TouchCalibrationReset(const std::string& id, | 145 bool DisplayInfoProvider::ClearTouchCalibration(const std::string& id, |
| 138 std::string* error) { | 146 std::string* error) { |
| 139 NOTREACHED(); // Implemented on Chrome OS only in override. | 147 NOTREACHED(); // Implemented on Chrome OS only in override. |
| 140 return false; | 148 return false; |
| 141 } | 149 } |
| 142 | 150 |
| 143 bool DisplayInfoProvider::IsTouchCalibrationActive(std::string* error) { | 151 bool DisplayInfoProvider::IsNativeTouchCalibrationActive(std::string* error) { |
| 144 NOTREACHED(); // Implemented on Chrome OS only in override. | 152 NOTREACHED(); // Implemented on Chrome OS only in override. |
| 145 return true; | 153 return true; |
| 146 } | 154 } |
| 147 | 155 |
| 148 DisplayInfoProvider::DisplayInfoProvider() { | 156 DisplayInfoProvider::DisplayInfoProvider() { |
| 149 } | 157 } |
| 150 | 158 |
| 151 } // namespace extensions | 159 } // namespace extensions |
| OLD | NEW |