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

Unified Diff: chrome/browser/chromeos/display/overscan_calibrator.h

Issue 12505005: Store rotation/ui scale to local state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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: chrome/browser/chromeos/display/overscan_calibrator.h
diff --git a/chrome/browser/chromeos/display/overscan_calibrator.h b/chrome/browser/chromeos/display/overscan_calibrator.h
index cc03b78e8739806a0322f3a8df7e9b5464a804dc..f879098818d6ada4c2d922203e4c5321606d7288 100644
--- a/chrome/browser/chromeos/display/overscan_calibrator.h
+++ b/chrome/browser/chromeos/display/overscan_calibrator.h
@@ -29,6 +29,11 @@ class OverscanCalibrator : public ui::LayerDelegate {
// Commits the current insets data to the system.
void Commit();
+ // Reset the overscan insets to default value. If the display has
+ // overscan, the default value is the display's default overscan
+ // value. Otherwise, the default value is the old |initial_insets|.
+ void Reset();
+
// Updates the insets and redraw the visual feedback.
void UpdateInsets(const gfx::Insets& insets);
@@ -49,6 +54,9 @@ class OverscanCalibrator : public ui::LayerDelegate {
// The insets initially given. Stored so we can undo the insets later.
gfx::Insets initial_insets_;
+ // The insets claimed by the display.
+ gfx::Insets native_insets_;
+
// Whether the current insets are committed to the system or not.
bool committed_;

Powered by Google App Engine
This is Rietveld 408576698