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

Unified Diff: ui/display/screen.h

Issue 2489873002: Change GetAllDisplays() in all screens to return a const vector&. (Closed)
Patch Set: roll back to rebase as dummy_screen_android is reverted 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/mac/screen_mac.mm ('k') | ui/display/screen_base.h » ('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 79a0035d2565e9aa4b27d5723591ecd4397f403b..a59dfb22b47d236dc5e367f058cd4c3c686d9d25 100644
--- a/ui/display/screen.h
+++ b/ui/display/screen.h
@@ -53,7 +53,7 @@ class DISPLAY_EXPORT Screen {
virtual int GetNumDisplays() const = 0;
// Returns the list of displays that are currently available.
- virtual std::vector<display::Display> GetAllDisplays() const = 0;
+ virtual const std::vector<display::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
« no previous file with comments | « ui/display/mac/screen_mac.mm ('k') | ui/display/screen_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698