Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Unified Diff: ui/display/screen_android.cc

Issue 2747143005: Revert of Add display::GetDisplayNearestView (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/display/screen.cc ('k') | ui/display/screen_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/screen_android.cc
diff --git a/ui/display/screen_android.cc b/ui/display/screen_android.cc
deleted file mode 100644
index cfb564306f0ca81ba536d6e6164e9477c29b3629..0000000000000000000000000000000000000000
--- a/ui/display/screen_android.cc
+++ /dev/null
@@ -1,22 +0,0 @@
-// 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/logging.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
« no previous file with comments | « ui/display/screen.cc ('k') | ui/display/screen_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698