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

Unified Diff: ui/base/layout_mac.mm

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? Created 5 years, 11 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
« no previous file with comments | « ui/base/layout.cc ('k') | ui/base/layout_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/layout_mac.mm
diff --git a/ui/base/layout_mac.mm b/ui/base/layout_mac.mm
deleted file mode 100644
index 62331e99f0d79311bb60d26761a56adffb4402d2..0000000000000000000000000000000000000000
--- a/ui/base/layout_mac.mm
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/base/layout.h"
-
-#include <Cocoa/Cocoa.h>
-
-#include "base/mac/sdk_forward_declarations.h"
-
-namespace {
-
-float GetScaleFactorScaleForNativeView(gfx::NativeView view) {
- if (NSWindow* window = [view window]) {
- if ([window respondsToSelector:@selector(backingScaleFactor)])
- return [window backingScaleFactor];
- return [window userSpaceScaleFactor];
- }
-
- NSArray* screens = [NSScreen screens];
- if (![screens count])
- return 1.0f;
-
- NSScreen* screen = [screens objectAtIndex:0];
- if ([screen respondsToSelector:@selector(backingScaleFactor)])
- return [screen backingScaleFactor];
- return [screen userSpaceScaleFactor];
-}
-
-} // namespace
-
-namespace ui {
-
-float GetScaleFactorForNativeView(gfx::NativeView view) {
- return GetScaleFactorScaleForNativeView(view);
-}
-
-} // namespace ui
« no previous file with comments | « ui/base/layout.cc ('k') | ui/base/layout_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698