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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.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/ash/launcher/chrome_mash_shelf_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc b/chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc
index 64f664b3e8845cc20567ba1130fa80a57a8c1c4a..c212264dee2d6905d9526ed14ee3a44f522900b3 100644
--- a/chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc
@@ -11,7 +11,7 @@
#include "services/shell/public/cpp/connector.h"
#include "skia/public/type_converters.h"
#include "ui/base/resource/resource_bundle.h"
-#include "ui/gfx/screen.h"
+#include "ui/display/screen.h"
class ChromeShelfItemDelegate : public mash::shelf::mojom::ShelfItemDelegate {
public:
@@ -64,7 +64,7 @@ void ChromeMashShelfController::Init() {
// Set shelf alignment and auto-hide behavior from preferences.
Profile* profile = ProfileManager::GetActiveUserProfile();
- int64_t display_id = gfx::Screen::GetScreen()->GetPrimaryDisplay().id();
+ int64_t display_id = display::Screen::GetScreen()->GetPrimaryDisplay().id();
shelf_controller_->SetAlignment(static_cast<mash::shelf::mojom::Alignment>(
ash::GetShelfAlignmentPref(profile->GetPrefs(), display_id)));
shelf_controller_->SetAutoHideBehavior(
@@ -94,15 +94,16 @@ void ChromeMashShelfController::Init() {
void ChromeMashShelfController::OnAlignmentChanged(
mash::shelf::mojom::Alignment alignment) {
- ash::SetShelfAlignmentPref(ProfileManager::GetActiveUserProfile()->GetPrefs(),
- gfx::Screen::GetScreen()->GetPrimaryDisplay().id(),
- static_cast<ash::wm::ShelfAlignment>(alignment));
+ ash::SetShelfAlignmentPref(
+ ProfileManager::GetActiveUserProfile()->GetPrefs(),
+ display::Screen::GetScreen()->GetPrimaryDisplay().id(),
+ static_cast<ash::wm::ShelfAlignment>(alignment));
}
void ChromeMashShelfController::OnAutoHideBehaviorChanged(
mash::shelf::mojom::AutoHideBehavior auto_hide) {
ash::SetShelfAutoHideBehaviorPref(
ProfileManager::GetActiveUserProfile()->GetPrefs(),
- gfx::Screen::GetScreen()->GetPrimaryDisplay().id(),
+ display::Screen::GetScreen()->GetPrimaryDisplay().id(),
static_cast<ash::ShelfAutoHideBehavior>(auto_hide));
}

Powered by Google App Engine
This is Rietveld 408576698