blob: 54c20006a6a63886ff5085a38b931c970773c9d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// 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/gfx/screen.h"
#include "base/logging.h"
#include "ui/gfx/monitor.h"
namespace gfx {
// static
gfx::Monitor Screen::GetPrimaryMonitor() {
NOTIMPLEMENTED() << "crbug.com/117839 tracks implementation";
return gfx::Monitor(0, gfx::Rect(0, 0, 1, 1));
}
// static
gfx::Monitor Screen::GetMonitorNearestWindow(gfx::NativeView view) {
return GetPrimaryMonitor();
}
// static
int Screen::GetNumMonitors() {
return 1;
}
} // namespace gfx
|