summaryrefslogtreecommitdiffstats
path: root/ui/gfx/screen_android.cc
blob: a2e5a5ddb7aec36dbb0e8095c2749c095f6f29ac (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
29
30
31
32
33
34
35
36
37
// 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/display.h"

namespace gfx {

// static
bool Screen::IsDIPEnabled() {
  return false;
}

// static
gfx::Display Screen::GetPrimaryDisplay() {
  NOTIMPLEMENTED() << "crbug.com/117839 tracks implementation";
  return gfx::Display(0, gfx::Rect(0, 0, 1, 1));
}

// static
gfx::Display Screen::GetDisplayNearestWindow(gfx::NativeView view) {
  return GetPrimaryDisplay();
}

// static
gfx::Display Screen::GetDisplayNearestPoint(const gfx::Point& point) {
  return GetPrimaryDisplay();
}

int Screen::GetNumDisplays() {
  return 1;
}

}  // namespace gfx