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

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

Issue 18163006: Add persisted preference for projection touch HUD (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolved clang compile errors + Resolved linux_chromeos trybot failure Created 7 years, 5 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/shell_observer.h ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/preferences.h
diff --git a/chrome/browser/chromeos/preferences.h b/chrome/browser/chromeos/preferences.h
index 4f15b8493b2616befba9f4db0e5ccef432e24c8b..970013d16db41b1c7cbc8f170977b081d4814506 100644
--- a/chrome/browser/chromeos/preferences.h
+++ b/chrome/browser/chromeos/preferences.h
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "ash/shell_observer.h"
#include "base/compiler_specific.h"
#include "base/prefs/pref_member.h"
#include "chrome/browser/chromeos/language_preferences.h"
@@ -31,7 +32,8 @@ class InputMethodManager;
// is first initialized, it will initialize the OS settings to what's stored in
// the preferences. These include touchpad settings, etc.
// When the preferences change, we change the settings to reflect the new value.
-class Preferences : public PrefServiceSyncableObserver {
+class Preferences : public PrefServiceSyncableObserver,
+ public ash::ShellObserver {
public:
Preferences();
explicit Preferences(
@@ -106,6 +108,9 @@ class Preferences : public PrefServiceSyncableObserver {
// PrefServiceSyncableObserver implementation.
virtual void OnIsSyncingChanged() OVERRIDE;
+ // Overriden from ash::ShellObserver.
+ virtual void OnTouchHudProjectionToggled(bool enabled) OVERRIDE;
+
PrefServiceSyncable* prefs_;
input_method::InputMethodManager* input_method_manager_;
@@ -131,6 +136,7 @@ class Preferences : public PrefServiceSyncableObserver {
FilePathPrefMember download_default_directory_;
FilePathPrefMember select_file_last_directory_;
FilePathPrefMember save_file_default_directory_;
+ BooleanPrefMember touch_hud_projection_enabled_;
// Input method preferences.
StringPrefMember preferred_languages_;
« no previous file with comments | « ash/shell_observer.h ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698