OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/display/overscan_calibrator.h" | 5 #include "chrome/browser/chromeos/display/overscan_calibrator.h" |
6 | 6 |
7 #include "ash/display/display_controller.h" | 7 #include "ash/display/display_controller.h" |
8 #include "ash/display/display_info.h" | 8 #include "ash/display/display_info.h" |
9 #include "ash/display/display_manager.h" | 9 #include "ash/display/display_manager.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 gfx::Point center = inner_bounds.CenterPoint(); | 126 gfx::Point center = inner_bounds.CenterPoint(); |
127 int vertical_offset = inner_bounds.height() / 2 - kArrowGapWidth; | 127 int vertical_offset = inner_bounds.height() / 2 - kArrowGapWidth; |
128 int horizontal_offset = inner_bounds.width() / 2 - kArrowGapWidth; | 128 int horizontal_offset = inner_bounds.width() / 2 - kArrowGapWidth; |
129 | 129 |
130 DrawTriangle(center.x(), center.y() + vertical_offset, 0, canvas); | 130 DrawTriangle(center.x(), center.y() + vertical_offset, 0, canvas); |
131 DrawTriangle(center.x(), center.y() - vertical_offset, 180, canvas); | 131 DrawTriangle(center.x(), center.y() - vertical_offset, 180, canvas); |
132 DrawTriangle(center.x() - horizontal_offset, center.y(), 90, canvas); | 132 DrawTriangle(center.x() - horizontal_offset, center.y(), 90, canvas); |
133 DrawTriangle(center.x() + horizontal_offset, center.y(), -90, canvas); | 133 DrawTriangle(center.x() + horizontal_offset, center.y(), -90, canvas); |
134 } | 134 } |
135 | 135 |
| 136 void OverscanCalibrator::OnDelegatedFrameDamage( |
| 137 const gfx::Rect& damage_rect_in_dip) { |
| 138 } |
| 139 |
136 void OverscanCalibrator::OnDeviceScaleFactorChanged( | 140 void OverscanCalibrator::OnDeviceScaleFactorChanged( |
137 float device_scale_factor) { | 141 float device_scale_factor) { |
138 // TODO(mukai): Cancel the overscan calibration when the device | 142 // TODO(mukai): Cancel the overscan calibration when the device |
139 // configuration has changed. | 143 // configuration has changed. |
140 } | 144 } |
141 | 145 |
142 base::Closure OverscanCalibrator::PrepareForLayerBoundsChange() { | 146 base::Closure OverscanCalibrator::PrepareForLayerBoundsChange() { |
143 return base::Closure(); | 147 return base::Closure(); |
144 } | 148 } |
145 | 149 |
146 } // namespace chromeos | 150 } // namespace chromeos |
OLD | NEW |