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

Side by Side Diff: chrome/browser/chromeos/display/display_preferences.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 unified diff | Download patch | Annotate | Revision Log
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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 class PrefRegistrySimple; 10 class PrefRegistrySimple;
(...skipping 13 matching lines...) Expand all
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698