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

Unified Diff: ui/gfx/screen.h

Issue 618413002: Check for NULL NativeView in linux/mac Screen::GetDisplayNearestWindow(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment to screen.h Created 6 years, 2 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 | « no previous file | ui/gfx/screen_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/screen.h
diff --git a/ui/gfx/screen.h b/ui/gfx/screen.h
index 1d36d1b51cbefb9bff481219a7bddb6596b6875c..e6a38a6fdc72cef1d5911545e08fb6be4b1dfdbd 100644
--- a/ui/gfx/screen.h
+++ b/ui/gfx/screen.h
@@ -71,6 +71,8 @@ class GFX_EXPORT Screen {
virtual std::vector<gfx::Display> GetAllDisplays() const = 0;
// Returns the display nearest the specified window.
+ // If the window is NULL or the window is not rooted to a display this will
lazyboy 2014/10/02 16:16:21 I've added this comment, if that's what you meant.
+ // return the primary display.
virtual gfx::Display GetDisplayNearestWindow(NativeView view) const = 0;
// Returns the display nearest the specified point.
« no previous file with comments | « no previous file | ui/gfx/screen_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698