| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_DISPLAY_DISPLAY_PREFERENCES_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DISPLAY_DISPLAY_PREFERENCES_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_DISPLAY_PREFERENCES_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_DISPLAY_PREFERENCES_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 class PrefRegistrySimple; | 10 class PrefRegistrySimple; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // into Local State. | 24 // into Local State. |
| 25 void RegisterDisplayLocalStatePrefs(PrefRegistrySimple* registry); | 25 void RegisterDisplayLocalStatePrefs(PrefRegistrySimple* registry); |
| 26 | 26 |
| 27 // Stores the current displays prefereces (both primary display id and | 27 // Stores the current displays prefereces (both primary display id and |
| 28 // dispay layout). | 28 // dispay layout). |
| 29 void StoreDisplayPrefs(); | 29 void StoreDisplayPrefs(); |
| 30 | 30 |
| 31 // Sets the display layout for the current displays and default. | 31 // Sets the display layout for the current displays and default. |
| 32 void SetCurrentAndDefaultDisplayLayout(const ash::DisplayLayout& layout); | 32 void SetCurrentAndDefaultDisplayLayout(const ash::DisplayLayout& layout); |
| 33 | 33 |
| 34 // Sets and saves the overscan preference for the specified |display| to Local | 34 // Load display preferences from Local Store. |
| 35 // State. | 35 void LoadDisplayPreferences(); |
| 36 void SetAndStoreDisplayOverscan(const gfx::Display& display, | |
| 37 const gfx::Insets& insets); | |
| 38 | |
| 39 // Checks the current display settings in Local State and notifies them to the | |
| 40 // system. | |
| 41 void NotifyDisplayLocalStatePrefChanged(); | |
| 42 | 36 |
| 43 // Stores the display layout for given display pairs. | 37 // Stores the display layout for given display pairs. |
| 44 void StoreDisplayLayoutPrefForTest(int64 id1, | 38 void StoreDisplayLayoutPrefForTest(int64 id1, |
| 45 int64 id2, | 39 int64 id2, |
| 46 const ash::DisplayLayout& layout); | 40 const ash::DisplayLayout& layout); |
| 47 | 41 |
| 48 } // namespace chromeos | 42 } // namespace chromeos |
| 49 | 43 |
| 50 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_DISPLAY_PREFERENCES_H_ | 44 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_DISPLAY_PREFERENCES_H_ |
| OLD | NEW |