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

Unified Diff: ui/display/screen.h

Issue 2361283002: Add GetDisplayWithDisplayId to display::Screen. (Closed)
Patch Set: move unittest Created 4 years, 1 month 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/BUILD.gn ('k') | ui/display/screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/screen.h
diff --git a/ui/display/screen.h b/ui/display/screen.h
index a59dfb22b47d236dc5e367f058cd4c3c686d9d25..3e1b0a0f13de434872dad1f469cd2831aac1a33d 100644
--- a/ui/display/screen.h
+++ b/ui/display/screen.h
@@ -88,6 +88,12 @@ class DISPLAY_EXPORT Screen {
virtual gfx::Rect DIPToScreenRectInWindow(gfx::NativeView view,
const gfx::Rect& dip_rect) const;
+ // Returns true if the display with |display_id| is found and returns that
+ // display in |display|. Otherwise returns false and |display| remains
+ // untouched.
+ bool GetDisplayWithDisplayId(int64_t display_id,
+ display::Display* display) const;
+
private:
DISALLOW_COPY_AND_ASSIGN(Screen);
};
« no previous file with comments | « ui/display/BUILD.gn ('k') | ui/display/screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698