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

Unified Diff: remoting/host/screen_resolution.h

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/resizing_host_observer_unittest.cc ('k') | remoting/host/screen_resolution.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/screen_resolution.h
diff --git a/remoting/host/screen_resolution.h b/remoting/host/screen_resolution.h
index 81690db701a2a877789514bd8cd364ffb66bb441..8adc25e3d69e155ff03fd955ea67ba71f1dc6ebe 100644
--- a/remoting/host/screen_resolution.h
+++ b/remoting/host/screen_resolution.h
@@ -32,6 +32,9 @@ class ScreenResolution {
// IsValid() returns false.
bool IsEmpty() const;
+ // Returns true if the dimensions and DPI of the two resolutions match.
+ bool Equals(const ScreenResolution& other) const;
+
private:
webrtc::DesktopSize dimensions_;
webrtc::DesktopVector dpi_;
« no previous file with comments | « remoting/host/resizing_host_observer_unittest.cc ('k') | remoting/host/screen_resolution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698