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

Unified Diff: chrome/browser/metrics/display_utils_aura.cc

Issue 8382019: Move DisplayUtils methods into gfx::Screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove DCHECKS Created 9 years, 2 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/metrics/display_utils_aura.cc
diff --git a/chrome/browser/metrics/display_utils_aura.cc b/chrome/browser/metrics/display_utils_aura.cc
deleted file mode 100644
index 791c973341e7d6d79293aa5a75c709b0236268c0..0000000000000000000000000000000000000000
--- a/chrome/browser/metrics/display_utils_aura.cc
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) 2011 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 "chrome/browser/metrics/display_utils.h"
-
-#include "content/browser/browser_thread.h"
-#include "ui/gfx/screen.h"
-
-// static
-void DisplayUtils::GetPrimaryDisplayDimensions(int* width, int* height) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- gfx::Rect bounds =
- gfx::Screen::GetMonitorAreaNearestPoint(gfx::Point());
- *width = bounds.width();
- *height = bounds.height();
-}
-
-// static
-int DisplayUtils::GetDisplayCount() {
- NOTIMPLEMENTED();
- return 1;
-}

Powered by Google App Engine
This is Rietveld 408576698