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

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

Issue 29263007: linux and chromeos: Turn on -Wunused-const-variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 7 years, 2 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 (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"
11 #include "ash/shell_window_ids.h" 11 #include "ash/shell_window_ids.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "ui/aura/window.h" 13 #include "ui/aura/window.h"
14 #include "ui/compositor/layer.h" 14 #include "ui/compositor/layer.h"
15 #include "ui/gfx/canvas.h" 15 #include "ui/gfx/canvas.h"
16 16
17 namespace chromeos { 17 namespace chromeos {
18 namespace { 18 namespace {
19 19
20 // The opacity for the grey out borders.
21 const float kBorderOpacity = 0.5;
22
23 // The opacity for the arrows of the overscan calibration. 20 // The opacity for the arrows of the overscan calibration.
24 const float kArrowOpacity = 0.8; 21 const float kArrowOpacity = 0.8;
25 22
26 // The height in pixel for the arrows to show the overscan calibration. 23 // The height in pixel for the arrows to show the overscan calibration.
27 const int kCalibrationArrowHeight = 50; 24 const int kCalibrationArrowHeight = 50;
28 25
29 // The gap between the boundary and calibration arrows. 26 // The gap between the boundary and calibration arrows.
30 const int kArrowGapWidth = 20; 27 const int kArrowGapWidth = 20;
31 28
32 // Draw the arrow for the overscan calibration to |canvas|. 29 // Draw the arrow for the overscan calibration to |canvas|.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 float device_scale_factor) { 135 float device_scale_factor) {
139 // TODO(mukai): Cancel the overscan calibration when the device 136 // TODO(mukai): Cancel the overscan calibration when the device
140 // configuration has changed. 137 // configuration has changed.
141 } 138 }
142 139
143 base::Closure OverscanCalibrator::PrepareForLayerBoundsChange() { 140 base::Closure OverscanCalibrator::PrepareForLayerBoundsChange() {
144 return base::Closure(); 141 return base::Closure();
145 } 142 }
146 143
147 } // namespace chromeos 144 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698