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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
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"
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 {
16 class Insets;
17 }
18
19 namespace chromeos { 15 namespace chromeos {
20 16
21 // Registers the prefs associated with display settings and stored 17 // Registers the prefs associated with display settings and stored
22 // into Local State. 18 // into Local State.
23 void RegisterDisplayLocalStatePrefs(PrefRegistrySimple* registry); 19 void RegisterDisplayLocalStatePrefs(PrefRegistrySimple* registry);
24 20
25 // Stores the current displays prefereces (both primary display id and 21 // Stores the current displays prefereces (both primary display id and
26 // dispay layout). 22 // dispay layout).
27 void StoreDisplayPrefs(); 23 void StoreDisplayPrefs();
28 24
29 // If there is an internal display, stores |rotation_lock| along with the 25 // If there is an internal display, stores |rotation_lock| along with the
30 // current rotation of the internal display. Otherwise no data is stored. 26 // current rotation of the internal display. Otherwise no data is stored.
31 void StoreDisplayRotationPrefs(bool rotation_lock); 27 void StoreDisplayRotationPrefs(bool rotation_lock);
32 28
33 // Load display preferences from Local Store. |first_run_after_boot| is used 29 // Load display preferences from Local Store. |first_run_after_boot| is used
34 // determine if a certain preference should be applied at boot time or 30 // determine if a certain preference should be applied at boot time or
35 // restart. 31 // restart.
36 void LoadDisplayPreferences(bool first_run_after_boot); 32 void LoadDisplayPreferences(bool first_run_after_boot);
37 33
38 // Stores the display layout for given display pairs for tests. 34 // Stores the display layout for given display pairs for tests.
39 void StoreDisplayLayoutPrefForTest(const display::DisplayIdList& list, 35 void StoreDisplayLayoutPrefForTest(const display::DisplayIdList& list,
40 const display::DisplayLayout& layout); 36 const display::DisplayLayout& layout);
41 37
42 // Stores the given |power_state| for tests. 38 // Stores the given |power_state| for tests.
43 void StoreDisplayPowerStateForTest(DisplayPowerState power_state); 39 void StoreDisplayPowerStateForTest(DisplayPowerState power_state);
44 40
45 } // namespace chromeos 41 } // namespace chromeos
46 42
47 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_DISPLAY_PREFERENCES_H_ 43 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_DISPLAY_PREFERENCES_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/chrome_browser_main_chromeos.h ('k') | chrome/browser/chromeos/drive/download_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698