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

Unified Diff: ash/display/display_change_observer_x11.h

Issue 21297003: Add ability to set resolution on external display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
Index: ash/display/display_change_observer_x11.h
diff --git a/ash/display/display_change_observer_x11.h b/ash/display/display_change_observer_x11.h
index 3d13e0d0147c44d71ccfe21a6d6f4edb872dab8e..ace04fa51a133c3166b7521aeaa2d0333552035a 100644
--- a/ash/display/display_change_observer_x11.h
+++ b/ash/display/display_change_observer_x11.h
@@ -31,6 +31,10 @@ class DisplayChangeObserverX11
// chromeos::OutputConfigurator::StateController overrides:
virtual chromeos::OutputState GetStateForDisplayIds(
const std::vector<int64>& outputs) const OVERRIDE;
+ virtual bool GetResolutionForDisplayId(
+ int64 display_id,
+ size_t* width,
Daniel Erat 2013/07/31 17:34:05 why size_t? are you worried that these won't fit i
oshima 2013/07/31 21:59:49 sorry I forgot to fix this. I first thought this i
+ size_t* height) const OVERRIDE;
// Overriden from chromeos::OutputConfigurator::Observer:
virtual void OnDisplayModeChanged() OVERRIDE;
@@ -48,12 +52,6 @@ class DisplayChangeObserverX11
DISALLOW_COPY_AND_ASSIGN(DisplayChangeObserverX11);
};
-// Returns true if the size info in the output_info isn't valid
-// and should be ignored. This is exposed for testing.
-// |mm_width| and |mm_height| are given in millimeters.
-ASH_EXPORT bool ShouldIgnoreSize(unsigned long mm_width,
- unsigned long mm_height);
-
} // namespace internal
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698