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

Side by Side Diff: chrome/browser/chromeos/display/overscan_calibrator.cc

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: fix windows build Created 4 years, 1 month 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 (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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
11 #include "ash/display/display_manager.h"
12 #include "ash/display/window_tree_host_manager.h" 11 #include "ash/display/window_tree_host_manager.h"
13 #include "ash/public/cpp/shell_window_ids.h" 12 #include "ash/public/cpp/shell_window_ids.h"
14 #include "ash/shell.h" 13 #include "ash/shell.h"
15 #include "third_party/skia/include/core/SkColor.h" 14 #include "third_party/skia/include/core/SkColor.h"
16 #include "third_party/skia/include/core/SkPaint.h" 15 #include "third_party/skia/include/core/SkPaint.h"
17 #include "third_party/skia/include/core/SkPath.h" 16 #include "third_party/skia/include/core/SkPath.h"
18 #include "ui/aura/window.h" 17 #include "ui/aura/window.h"
19 #include "ui/compositor/layer.h" 18 #include "ui/compositor/layer.h"
20 #include "ui/compositor/paint_recorder.h" 19 #include "ui/compositor/paint_recorder.h"
20 #include "ui/display/manager/display_manager.h"
21 #include "ui/display/manager/managed_display_info.h" 21 #include "ui/display/manager/managed_display_info.h"
22 #include "ui/gfx/canvas.h" 22 #include "ui/gfx/canvas.h"
23 23
24 namespace chromeos { 24 namespace chromeos {
25 namespace { 25 namespace {
26 26
27 // The opacity for the arrows of the overscan calibration. 27 // The opacity for the arrows of the overscan calibration.
28 const float kArrowOpacity = 0.8; 28 const float kArrowOpacity = 0.8;
29 29
30 // The height in pixel for the arrows to show the overscan calibration. 30 // The height in pixel for the arrows to show the overscan calibration.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 const gfx::Rect& damage_rect_in_dip) { 152 const gfx::Rect& damage_rect_in_dip) {
153 } 153 }
154 154
155 void OverscanCalibrator::OnDeviceScaleFactorChanged( 155 void OverscanCalibrator::OnDeviceScaleFactorChanged(
156 float device_scale_factor) { 156 float device_scale_factor) {
157 // TODO(mukai): Cancel the overscan calibration when the device 157 // TODO(mukai): Cancel the overscan calibration when the device
158 // configuration has changed. 158 // configuration has changed.
159 } 159 }
160 160
161 } // namespace chromeos 161 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698