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

Unified Diff: chrome/browser/chromeos/login/helper.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/chromeos/login/helper.cc
diff --git a/chrome/browser/chromeos/login/helper.cc b/chrome/browser/chromeos/login/helper.cc
index 85e4283483b7cf04c3a70d459c783894e193e4f7..acaba4ab7e793255da447bc36a6736ecab9655da 100644
--- a/chrome/browser/chromeos/login/helper.cc
+++ b/chrome/browser/chromeos/login/helper.cc
@@ -27,8 +27,8 @@
#include "extensions/browser/guest_view/web_view/web_view_guest.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/display/screen.h"
#include "ui/gfx/image/image_skia.h"
-#include "ui/gfx/screen.h"
namespace chromeos {
@@ -87,7 +87,7 @@ content::StoragePartition* GetPartition(content::WebContents* embedder,
} // namespace
gfx::Rect CalculateScreenBounds(const gfx::Size& size) {
- gfx::Rect bounds = gfx::Screen::GetScreen()->GetPrimaryDisplay().bounds();
+ gfx::Rect bounds = display::Screen::GetScreen()->GetPrimaryDisplay().bounds();
if (!size.IsEmpty()) {
int horizontal_diff = bounds.width() - size.width();
int vertical_diff = bounds.height() - size.height();
@@ -100,7 +100,7 @@ int GetCurrentUserImageSize() {
// The biggest size that the profile picture is displayed at is currently
// 220px, used for the big preview on OOBE and Change Picture options page.
static const int kBaseUserImageSize = 220;
- float scale_factor = gfx::Display::GetForcedDeviceScaleFactor();
+ float scale_factor = display::Display::GetForcedDeviceScaleFactor();
if (scale_factor > 1.0f)
return static_cast<int>(scale_factor * kBaseUserImageSize);
return kBaseUserImageSize * gfx::ImageSkia::GetMaxSupportedScale();

Powered by Google App Engine
This is Rietveld 408576698