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

Unified Diff: chrome/browser/chromeos/display_preferences.h

Issue 10870036: Allow storing display preferences per device. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/extended_desktop_unittest.cc ('k') | chrome/browser/chromeos/display_preferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/display_preferences.h
diff --git a/chrome/browser/chromeos/display_preferences.h b/chrome/browser/chromeos/display_preferences.h
new file mode 100644
index 0000000000000000000000000000000000000000..bb0682f26a7cef77922fcfe9b13b2234f9eab1aa
--- /dev/null
+++ b/chrome/browser/chromeos/display_preferences.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
satorux1 2012/08/29 04:06:09 we no longer want to add new files in chrome/brows
Jun Mukai 2012/08/29 05:38:51 Then I would rather want to put it chrome/browser/
satorux1 2012/08/29 17:55:07 sounds good. please go ahead.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_DISPLAY_PREFERENCES_H_
+#define CHROME_BROWSER_CHROMEOS_DISPLAY_PREFERENCES_H_
+
+class PrefService;
+namespace gfx {
+class Display;
+}
+
+namespace chromeos {
+
+// Registers the prefs associated with display settings.
+void RegisterDisplayPrefs(PrefService* pref_service);
+
+// Sets or updates the display layout data to the specified |display| and
+// |pref_service|.
+void SetDisplayLayoutPref(PrefService* pref_service,
+ const gfx::Display& display,
+ int layout,
+ int offset);
+
+// Checks the current display settings values and notifies them to the system.
+void NotifyDisplayPrefChanged(PrefService* pref_service);
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_DISPLAY_PREFERENCES_H_
« no previous file with comments | « ash/extended_desktop_unittest.cc ('k') | chrome/browser/chromeos/display_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698