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

Side by Side Diff: chrome/browser/chromeos/display/display_preferences.h

Issue 1594683002: Introduce DisplayConfigurationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_576375_display1b1
Patch Set: Rebase Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « ash/test/shell_test_api.cc ('k') | chrome/browser/chromeos/display/display_preferences.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 16 matching lines...) Expand all
27 void RegisterDisplayLocalStatePrefs(PrefRegistrySimple* registry); 27 void RegisterDisplayLocalStatePrefs(PrefRegistrySimple* registry);
28 28
29 // Stores the current displays prefereces (both primary display id and 29 // Stores the current displays prefereces (both primary display id and
30 // dispay layout). 30 // dispay layout).
31 void StoreDisplayPrefs(); 31 void StoreDisplayPrefs();
32 32
33 // If there is an internal display, stores |rotation_lock| along with the 33 // If there is an internal display, stores |rotation_lock| along with the
34 // current rotation of the internal display. Otherwise no data is stored. 34 // current rotation of the internal display. Otherwise no data is stored.
35 void StoreDisplayRotationPrefs(bool rotation_lock); 35 void StoreDisplayRotationPrefs(bool rotation_lock);
36 36
37 // Sets the display layout for the current displays.
38 void SetCurrentDisplayLayout(const ash::DisplayLayout& layout);
39
40 // Load display preferences from Local Store. |first_run_after_boot| is used 37 // Load display preferences from Local Store. |first_run_after_boot| is used
41 // determine if a certain preference should be applied at boot time or 38 // determine if a certain preference should be applied at boot time or
42 // restart. 39 // restart.
43 void LoadDisplayPreferences(bool first_run_after_boot); 40 void LoadDisplayPreferences(bool first_run_after_boot);
44 41
45 // Stores the display layout for given display pairs for tests. 42 // Stores the display layout for given display pairs for tests.
46 void StoreDisplayLayoutPrefForTest(int64_t id1, 43 void StoreDisplayLayoutPrefForTest(int64_t id1,
47 int64_t id2, 44 int64_t id2,
48 const ash::DisplayLayout& layout); 45 const ash::DisplayLayout& layout);
49 46
50 // Stores the given |power_state| for tests. 47 // Stores the given |power_state| for tests.
51 void StoreDisplayPowerStateForTest(DisplayPowerState power_state); 48 void StoreDisplayPowerStateForTest(DisplayPowerState power_state);
52 49
53 } // namespace chromeos 50 } // namespace chromeos
54 51
55 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_DISPLAY_PREFERENCES_H_ 52 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_DISPLAY_PREFERENCES_H_
OLDNEW
« no previous file with comments | « ash/test/shell_test_api.cc ('k') | chrome/browser/chromeos/display/display_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698