summaryrefslogtreecommitdiff
path: root/chromium/ui/display/screen_android.cc
blob: 4f13d4e12350e8be44b3ea1bfd0b56f0650e76c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2017 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/display/screen.h"

#include "base/notreached.h"

namespace display {

// static
gfx::NativeWindow Screen::GetWindowForView(gfx::NativeView view) {
  // Android cannot use this method to convert |NativeView| to |NativeWindow|
  // since it causes cyclic dependency. |GetDisplayNearestView| should be
  // overriden directly.
  NOTREACHED() << "Wrong screen instance is used. Make sure to use the correct "
                  "Screen instance that has proper implementation of "
                  "|GetDisplayNearestView| for Android.";
  return nullptr;
}

}  // namespace display