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

Unified Diff: remoting/host/screen_resolution.cc

Issue 47653003: Make DesktopResizer use ScreenResolution to facilitate DPI-awareness. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « remoting/host/screen_resolution.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/screen_resolution.cc
diff --git a/remoting/host/screen_resolution.cc b/remoting/host/screen_resolution.cc
index b792cefc582be87d2f83c017bfbf00843bb1e9af..ff3c4777112f445f74d8cc9f69491012e2641f32 100644
--- a/remoting/host/screen_resolution.cc
+++ b/remoting/host/screen_resolution.cc
@@ -43,4 +43,8 @@ bool ScreenResolution::IsEmpty() const {
return dimensions_.is_empty() || dpi_.is_zero();
}
+bool ScreenResolution::Equals(const ScreenResolution& other) const {
+ return dimensions_.equals(other.dimensions()) && dpi_.equals(other.dpi());
+}
+
} // namespace remoting
« no previous file with comments | « remoting/host/screen_resolution.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698