| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/ui/webui/options/chromeos/display_overscan_handler.h" | 5 #include "chrome/browser/ui/webui/options/chromeos/display_overscan_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "ash/display/display_controller.h" | 9 #include "ash/display/display_controller.h" |
| 10 #include "ash/screen_util.h" | 10 #include "ash/screen_util.h" |
| 11 #include "ash/shell.h" | 11 #include "ash/shell.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "chrome/browser/chromeos/display/overscan_calibrator.h" | 16 #include "chrome/browser/chromeos/display/overscan_calibrator.h" |
| 17 #include "chrome/grit/generated_resources.h" |
| 17 #include "content/public/browser/web_ui.h" | 18 #include "content/public/browser/web_ui.h" |
| 18 #include "grit/generated_resources.h" | |
| 19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
| 20 #include "ui/gfx/display.h" | 20 #include "ui/gfx/display.h" |
| 21 #include "ui/gfx/screen.h" | 21 #include "ui/gfx/screen.h" |
| 22 | 22 |
| 23 namespace chromeos { | 23 namespace chromeos { |
| 24 namespace options { | 24 namespace options { |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 // The value for the orientation of overscan operations. | 27 // The value for the orientation of overscan operations. |
| 28 const char kOrientationHorizontal[] = "horizontal"; | 28 const char kOrientationHorizontal[] = "horizontal"; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 LOG(ERROR) << "The orientation must be '" << kOrientationHorizontal | 194 LOG(ERROR) << "The orientation must be '" << kOrientationHorizontal |
| 195 << "' or '" << kOrientationVertical << "': " | 195 << "' or '" << kOrientationVertical << "': " |
| 196 << orientation; | 196 << orientation; |
| 197 return; | 197 return; |
| 198 } | 198 } |
| 199 overscan_calibrator_->UpdateInsets(insets); | 199 overscan_calibrator_->UpdateInsets(insets); |
| 200 } | 200 } |
| 201 | 201 |
| 202 } // namespace options | 202 } // namespace options |
| 203 } // namespace chromeos | 203 } // namespace chromeos |
| OLD | NEW |