screen_android.cc 758 B

12345678910111213141516171819202122
  1. // Copyright 2017 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. #include "ui/display/screen.h"
  5. #include "base/notreached.h"
  6. namespace display {
  7. // static
  8. gfx::NativeWindow Screen::GetWindowForView(gfx::NativeView view) {
  9. // Android cannot use this method to convert |NativeView| to |NativeWindow|
  10. // since it causes cyclic dependency. |GetDisplayNearestView| should be
  11. // overriden directly.
  12. NOTREACHED() << "Wrong screen instance is used. Make sure to use the correct "
  13. "Screen instance that has proper implementation of "
  14. "|GetDisplayNearestView| for Android.";
  15. return nullptr;
  16. }
  17. } // namespace display