| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "third_party/cros_system_api/dbus/service_constants.h" | 10 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 11 #include "ui/display/manager/display_layout.h" | 11 #include "ui/display/manager/display_layout.h" |
| 12 | 12 |
| 13 class PrefRegistrySimple; | 13 class PrefRegistrySimple; |
| 14 | 14 |
| 15 namespace gfx { | 15 namespace gfx { |
| 16 class Display; | |
| 17 class Insets; | 16 class Insets; |
| 18 } | 17 } |
| 19 | 18 |
| 20 namespace chromeos { | 19 namespace chromeos { |
| 21 | 20 |
| 22 // Registers the prefs associated with display settings and stored | 21 // Registers the prefs associated with display settings and stored |
| 23 // into Local State. | 22 // into Local State. |
| 24 void RegisterDisplayLocalStatePrefs(PrefRegistrySimple* registry); | 23 void RegisterDisplayLocalStatePrefs(PrefRegistrySimple* registry); |
| 25 | 24 |
| 26 // Stores the current displays prefereces (both primary display id and | 25 // Stores the current displays prefereces (both primary display id and |
| (...skipping 12 matching lines...) Expand all Loading... |
| 39 // Stores the display layout for given display pairs for tests. | 38 // Stores the display layout for given display pairs for tests. |
| 40 void StoreDisplayLayoutPrefForTest(const display::DisplayIdList& list, | 39 void StoreDisplayLayoutPrefForTest(const display::DisplayIdList& list, |
| 41 const display::DisplayLayout& layout); | 40 const display::DisplayLayout& layout); |
| 42 | 41 |
| 43 // Stores the given |power_state| for tests. | 42 // Stores the given |power_state| for tests. |
| 44 void StoreDisplayPowerStateForTest(DisplayPowerState power_state); | 43 void StoreDisplayPowerStateForTest(DisplayPowerState power_state); |
| 45 | 44 |
| 46 } // namespace chromeos | 45 } // namespace chromeos |
| 47 | 46 |
| 48 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_DISPLAY_PREFERENCES_H_ | 47 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_DISPLAY_PREFERENCES_H_ |
| OLD | NEW |