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

Unified Diff: chrome/browser/ui/webui/options/chromeos/display_overscan_handler.cc

Issue 1920263003: Rename gfx::Display/Screen to display::Display/Screen in chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/chromeos/display_overscan_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/display_overscan_handler.cc b/chrome/browser/ui/webui/options/chromeos/display_overscan_handler.cc
index dfc67814edcddcd5ba91c59f768a2fc510c4655b..8924c11b8982cf56b42da13d7b809c82fd8b41d9 100644
--- a/chrome/browser/ui/webui/options/chromeos/display_overscan_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/display_overscan_handler.cc
@@ -17,8 +17,8 @@
#include "chrome/grit/generated_resources.h"
#include "content/public/browser/web_ui.h"
#include "ui/base/l10n/l10n_util.h"
-#include "ui/gfx/display.h"
-#include "ui/gfx/screen.h"
+#include "ui/display/display.h"
+#include "ui/display/screen.h"
namespace chromeos {
namespace options {
@@ -31,11 +31,11 @@ const char kOrientationVertical[] = "vertical";
}
DisplayOverscanHandler::DisplayOverscanHandler() {
- gfx::Screen::GetScreen()->AddObserver(this);
+ display::Screen::GetScreen()->AddObserver(this);
}
DisplayOverscanHandler::~DisplayOverscanHandler() {
- gfx::Screen::GetScreen()->RemoveObserver(this);
+ display::Screen::GetScreen()->RemoveObserver(this);
}
void DisplayOverscanHandler::GetLocalizedValues(
@@ -81,7 +81,8 @@ void DisplayOverscanHandler::RegisterMessages() {
base::Unretained(this)));
}
-void DisplayOverscanHandler::OnDisplayAdded(const gfx::Display& new_display) {
+void DisplayOverscanHandler::OnDisplayAdded(
+ const display::Display& new_display) {
if (!overscan_calibrator_)
return;
@@ -89,7 +90,8 @@ void DisplayOverscanHandler::OnDisplayAdded(const gfx::Display& new_display) {
"options.DisplayOverscan.onOverscanCanceled");
}
-void DisplayOverscanHandler::OnDisplayRemoved(const gfx::Display& old_display) {
+void DisplayOverscanHandler::OnDisplayRemoved(
+ const display::Display& old_display) {
if (!overscan_calibrator_)
return;
@@ -97,12 +99,11 @@ void DisplayOverscanHandler::OnDisplayRemoved(const gfx::Display& old_display) {
"options.DisplayOverscan.onOverscanCanceled");
}
-void DisplayOverscanHandler::OnDisplayMetricsChanged(const gfx::Display&,
- uint32_t) {
-}
+void DisplayOverscanHandler::OnDisplayMetricsChanged(const display::Display&,
+ uint32_t) {}
void DisplayOverscanHandler::HandleStart(const base::ListValue* args) {
- int64_t display_id = gfx::Display::kInvalidDisplayID;
+ int64_t display_id = display::Display::kInvalidDisplayID;
std::string id_value;
if (!args->GetString(0, &id_value)) {
LOG(ERROR) << "Can't find ID";
@@ -110,12 +111,12 @@ void DisplayOverscanHandler::HandleStart(const base::ListValue* args) {
}
if (!base::StringToInt64(id_value, &display_id) ||
- display_id == gfx::Display::kInvalidDisplayID) {
+ display_id == display::Display::kInvalidDisplayID) {
LOG(ERROR) << "Invalid parameter: " << id_value;
return;
}
- const gfx::Display& display =
+ const display::Display& display =
ash::Shell::GetInstance()->display_manager()->GetDisplayForId(display_id);
DCHECK(display.is_valid());
if (!display.is_valid())
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/display_overscan_handler.h ('k') | chrome/browser/ui/window_sizer/window_sizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698