• Home
  • Raw
  • Download

Lines Matching refs:path

26 bool CrosSettings::IsCrosSettings(const std::string& path) {  in IsCrosSettings()  argument
27 return StartsWithASCII(path, kCrosSettingsPrefix, true); in IsCrosSettings()
30 void CrosSettings::FireObservers(const char* path) { in FireObservers() argument
32 std::string path_str(path); in FireObservers()
47 void CrosSettings::Set(const std::string& path, Value* in_value) { in Set() argument
50 provider = GetProvider(path); in Set()
52 provider->Set(path, in_value); in Set()
56 void CrosSettings::SetBoolean(const std::string& path, bool in_value) { in SetBoolean() argument
58 Set(path, Value::CreateBooleanValue(in_value)); in SetBoolean()
61 void CrosSettings::SetInteger(const std::string& path, int in_value) { in SetInteger() argument
63 Set(path, Value::CreateIntegerValue(in_value)); in SetInteger()
66 void CrosSettings::SetDouble(const std::string& path, double in_value) { in SetDouble() argument
68 Set(path, Value::CreateDoubleValue(in_value)); in SetDouble()
71 void CrosSettings::SetString(const std::string& path, in SetString() argument
74 Set(path, Value::CreateStringValue(in_value)); in SetString()
94 void CrosSettings::AddSettingsObserver(const char* path, in AddSettingsObserver() argument
96 DCHECK(path); in AddSettingsObserver()
100 if (!GetProvider(std::string(path))) { in AddSettingsObserver()
102 << path; in AddSettingsObserver()
109 settings_observers_.find(path); in AddSettingsObserver()
112 settings_observers_[path] = observer_list; in AddSettingsObserver()
121 DCHECK(existing_obs != obs) << path << " observer already registered"; in AddSettingsObserver()
130 void CrosSettings::RemoveSettingsObserver(const char* path, in RemoveSettingsObserver() argument
135 settings_observers_.find(path); in RemoveSettingsObserver()
145 const std::string& path) const { in GetProvider()
147 if (providers_[i]->HandlesSetting(path)) { in GetProvider()
154 bool CrosSettings::Get(const std::string& path, Value** out_value) const { in Get() argument
157 provider = GetProvider(path); in Get()
159 return provider->Get(path, out_value); in Get()
164 bool CrosSettings::GetBoolean(const std::string& path, in GetBoolean() argument
168 if (!Get(path, &value)) in GetBoolean()
174 bool CrosSettings::GetInteger(const std::string& path, in GetInteger() argument
178 if (!Get(path, &value)) in GetInteger()
184 bool CrosSettings::GetDouble(const std::string& path, in GetDouble() argument
188 if (!Get(path, &value)) in GetDouble()
194 bool CrosSettings::GetString(const std::string& path, in GetString() argument
198 if (!Get(path, &value)) in GetString()