| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/metrics/display_utils.h" | |
| 6 | |
| 7 #include "content/browser/browser_thread.h" | |
| 8 #include "ui/gfx/screen.h" | |
| 9 | |
| 10 // static | |
| 11 void DisplayUtils::GetPrimaryDisplayDimensions(int* width, int* height) { | |
| 12 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | |
| 13 gfx::Rect bounds = | |
| 14 gfx::Screen::GetMonitorAreaNearestPoint(gfx::Point()); | |
| 15 *width = bounds.width(); | |
| 16 *height = bounds.height(); | |
| 17 } | |
| 18 | |
| 19 // static | |
| 20 int DisplayUtils::GetDisplayCount() { | |
| 21 NOTIMPLEMENTED(); | |
| 22 return 1; | |
| 23 } | |
| OLD | NEW |