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

Unified Diff: chrome/browser/ui/ash/chrome_launcher_prefs.h

Issue 10445043: browser: Handle the registration of ChromeLauncher prefs outside of views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/ui/ash/chrome_launcher_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/chrome_launcher_prefs.h
diff --git a/chrome/browser/ui/ash/chrome_launcher_prefs.h b/chrome/browser/ui/ash/chrome_launcher_prefs.h
new file mode 100644
index 0000000000000000000000000000000000000000..03af3d8979bf2ed44232e6d1901bb4e78ac2c4e9
--- /dev/null
+++ b/chrome/browser/ui/ash/chrome_launcher_prefs.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_
+#define CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_
+#pragma once
+
+#include <string>
+
+class PrefService;
+
+namespace base {
+class DictionaryValue;
+}
+
+namespace ash {
+
+// Path within the dictionary entries in the prefs::kPinnedLauncherApps list
+// specifying the extension ID of the app to be pinned by that entry.
+extern const char kPinnedAppsPrefAppIDPath[];
+
+// Values used for prefs::kShelfAutoHideBehavior.
+extern const char kShelfAutoHideBehaviorAlways[];
+extern const char kShelfAutoHideBehaviorDefault[];
+extern const char kShelfAutoHideBehaviorNever[];
+
+void RegisterChromeLauncherUserPrefs(PrefService* user_prefs);
+
+base::DictionaryValue* CreateAppDict(const std::string& app_id);
+
+} // namespace ash
+
+#endif // CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/ui/ash/chrome_launcher_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698