Searched refs:pref (Results 26 - 50 of 274) sorted by relevance

1234567891011

/external/chromium_org/athena/main/
H A Dathena_frame_view.cc65 gfx::Size pref = frame_->client_view()->GetPreferredSize(); local
66 gfx::Rect bounds(0, 0, pref.width(), pref.height());
/external/chromium_org/chrome/browser/metrics/
H A Dmetrics_reporting_state.cc99 const PrefService::Preference* pref = local
101 return pref && !pref->IsManaged();
H A Dchromeos_metrics_provider.cc89 PrefService* pref = g_browser_process->local_state(); local
90 DCHECK(pref);
91 int value = pref->GetInteger(path);
92 pref->SetInteger(path, value + 1);
176 PrefService* pref = g_browser_process->local_state(); local
177 int count = pref->GetInteger(prefs::kStabilityOtherUserCrashCount);
180 pref->SetInteger(prefs::kStabilityOtherUserCrashCount, 0);
183 count = pref->GetInteger(prefs::kStabilityKernelCrashCount);
186 pref->SetInteger(prefs::kStabilityKernelCrashCount, 0);
189 count = pref
[all...]
/external/chromium_org/chrome/browser/prefs/
H A Dsession_startup_pref.cc52 void URLListToPref(const base::ListValue* url_list, SessionStartupPref* pref) { argument
53 pref->urls.clear();
58 pref->urls.push_back(fixed_url);
98 const SessionStartupPref& pref) {
100 SetStartupPref(profile->GetPrefs(), pref);
105 const SessionStartupPref& pref) {
109 prefs->SetInteger(prefs::kRestoreOnStartup, TypeToPrefValue(pref.type));
113 // user changes the startup type pref.
114 // Ownership of the ListValue retains with the pref service.
119 for (size_t i = 0; i < pref
96 SetStartupPref( Profile* profile, const SessionStartupPref& pref) argument
104 SetStartupPref(PrefService* prefs, const SessionStartupPref& pref) argument
[all...]
/external/chromium_org/sync/internal_api/
H A Dsync_backup_manager_unittest.cc123 ReadNode pref(&trans);
125 pref.InitByClientTagLookup(SEARCH_ENGINES, "test"));
126 EXPECT_FALSE(pref.GetEntry()->GetId().ServerKnows());
127 EXPECT_TRUE(pref.GetEntry()->GetIsUnsynced());
135 ReadNode pref(&trans);
137 pref.InitByClientTagLookup(SEARCH_ENGINES, "test"));
138 EXPECT_TRUE(pref.GetEntry()->GetId().ServerKnows());
139 EXPECT_FALSE(pref.GetEntry()->GetIsUnsynced());
157 ReadNode pref(&trans);
159 pref
[all...]
/external/chromium_org/chrome/browser/resources/options/
H A Dpref_ui.js65 // Listen for pref changes.
66 Preferences.getInstance().addEventListener(this.pref, function(event) {
78 * updates the associated pref.
88 * Handles changes to the pref. If a custom change handler does not suppress
108 * invoked next that updates the associated pref. If it returns true, the
132 cr.defineProperty(PrefInputElement, 'pref', cr.PropertyKind.ATTR);
187 * Update the associated pref when when the user makes changes to the
193 Preferences.setBooleanPref(this.pref, value,
198 * Update the checkbox state when the associated pref changes.
211 * Whether the mapping between checkbox state and associated pref i
[all...]
/external/chromium_org/chrome/browser/chromeos/policy/
H A Drecommendation_restorer.cc98 const PrefService::Preference* pref = local
100 if (!pref) {
105 if (!pref->GetRecommendedValue() || !pref->HasUserSetting())
120 pref_change_registrar_.prefs()->ClearPref(pref->name().c_str());
143 // There should be a separate timer for each pref. However, in the common
146 // if there was a separate timer per pref, they would all be reset at that
150 // for the affected pref only.
H A Dlogin_screen_default_policy_browsertest.cc202 const PrefService::Preference* pref = local
204 ASSERT_TRUE(pref);
205 EXPECT_FALSE(pref->IsManaged());
206 EXPECT_FALSE(pref->IsDefaultValue());
207 EXPECT_TRUE(base::Value::Equals(&recommended_value, pref->GetValue()));
209 pref->GetRecommendedValue()));
228 const PrefService::Preference* pref = local
230 ASSERT_TRUE(pref);
231 EXPECT_FALSE(pref->IsManaged());
232 EXPECT_TRUE(pref
[all...]
/external/chromium_org/ui/gfx/win/
H A Dhwnd_util.cc136 const Size& pref) {
137 DCHECK(window && pref.width() > 0 && pref.height() > 0);
161 if (pref.width() < (center_bounds.right - center_bounds.left)) {
163 (center_bounds.right - center_bounds.left - pref.width()) / 2;
165 window_bounds.right = window_bounds.left + pref.width();
168 if (pref.height() < (center_bounds.bottom - center_bounds.top)) {
170 (center_bounds.bottom - center_bounds.top - pref.height()) / 2;
172 window_bounds.bottom = window_bounds.top + pref.height();
183 window_bounds.right = window_bounds.left + pref
134 CenterAndSizeWindow(HWND parent, HWND window, const Size& pref) argument
[all...]
/external/chromium_org/chrome/browser/ui/webui/chromeos/
H A Dsalsa_ui.cc120 const PrefService::Preference* pref = local
123 if (pref->GetType() == value->GetType()) {
125 } else if (pref->GetType() == base::Value::TYPE_DOUBLE &&
146 const PrefService::Preference* pref = local
149 if (!pref)
156 pref->IsDefaultValue() ? NULL : pref->GetValue()->DeepCopy();
/external/chromium_org/chrome/browser/chromeos/login/saml/
H A Dsaml_offline_signin_limiter_unittest.cc113 const PrefService::Preference* pref = local
115 ASSERT_TRUE(pref);
116 EXPECT_FALSE(pref->HasUserSetting());
132 pref = prefs->FindPreference(prefs::kSAMLLastGAIASignInTime);
133 ASSERT_TRUE(pref);
134 EXPECT_FALSE(pref->HasUserSetting());
157 const PrefService::Preference* pref = local
159 ASSERT_TRUE(pref);
160 EXPECT_FALSE(pref->HasUserSetting());
176 pref
201 const PrefService::Preference* pref = local
245 const PrefService::Preference* pref = local
274 const PrefService::Preference* pref = local
306 const PrefService::Preference* pref = local
[all...]
/external/chromium_org/chrome/browser/policy/
H A Dpolicy_prefs_browsertest.cc66 // setting indicators for a pref affected by a policy work correctly. This is
90 // Contains the testing details for a single pref affected by a policy. This is
94 PrefMapping(const std::string& pref, argument
100 : pref_(pref),
108 const std::string& pref() const { return pref_; } function in class:policy::__anon4415::PrefMapping
309 std::string pref; local
311 !pref_mapping_dict->GetString("pref", &pref)) {
329 PrefMapping* pref_mapping = new PrefMapping(pref,
564 if (StartsWithASCII((*pref_mapping)->pref(), kCrosSettingsPrefi
575 const PrefService::Preference* pref = local
719 const PrefService::Preference* pref = local
[all...]
/external/chromium_org/third_party/skia/src/images/
H A DSkImageDecoder.cpp159 bool SkImageDecoder::decode(SkStream* stream, SkBitmap* bm, SkColorType pref, Mode mode) { argument
163 fDefaultPref = pref;
175 bool SkImageDecoder::decodeSubset(SkBitmap* bm, const SkIRect& rect, SkColorType pref) { argument
179 fDefaultPref = pref;
240 bool SkImageDecoder::DecodeFile(const char file[], SkBitmap* bm, SkColorType pref, Mode mode, argument
247 if (SkImageDecoder::DecodeStream(stream, bm, pref, mode, format)) {
255 bool SkImageDecoder::DecodeMemory(const void* buffer, size_t size, SkBitmap* bm, SkColorType pref, argument
263 return SkImageDecoder::DecodeStream(&stream, bm, pref, mode, format);
266 bool SkImageDecoder::DecodeStream(SkStreamRewindable* stream, SkBitmap* bm, SkColorType pref, argument
275 success = codec->decode(stream, bm, pref, mod
[all...]
/external/skia/src/images/
H A DSkImageDecoder.cpp183 SkImageDecoder::Result SkImageDecoder::decode(SkStream* stream, SkBitmap* bm, SkColorType pref, argument
188 fDefaultPref = pref;
200 bool SkImageDecoder::decodeSubset(SkBitmap* bm, const SkIRect& rect, SkColorType pref) { argument
204 fDefaultPref = pref;
265 bool SkImageDecoder::DecodeFile(const char file[], SkBitmap* bm, SkColorType pref, Mode mode, argument
272 if (SkImageDecoder::DecodeStream(stream, bm, pref, mode, format)) {
280 bool SkImageDecoder::DecodeMemory(const void* buffer, size_t size, SkBitmap* bm, SkColorType pref, argument
288 return SkImageDecoder::DecodeStream(&stream, bm, pref, mode, format);
291 bool SkImageDecoder::DecodeStream(SkStreamRewindable* stream, SkBitmap* bm, SkColorType pref, argument
300 success = codec->decode(stream, bm, pref, mod
[all...]
/external/chromium_org/base/prefs/
H A Dpref_service_unittest.cc21 const char kPrefName[] = "pref.name";
41 // Setting the pref to the same value should not set the pref value a second
47 // Clearing the pref should cause the pref to fire.
53 // Clearing the pref again should not cause the pref to fire.
100 // Now try adding a second pref observer.
133 // the user pref file, it uses the correct fallback value instead.
142 const PrefService::Preference* pref local
160 const PrefService::Preference* pref = prefs.FindPreference(kPrefName); local
[all...]
H A Dpref_service.cc96 NOTREACHED() << "Trying to read an unregistered pref: " << path;
111 NOTREACHED() << "Trying to read an unregistered pref: " << path;
126 NOTREACHED() << "Trying to read an unregistered pref: " << path;
141 NOTREACHED() << "Trying to read an unregistered pref: " << path;
156 NOTREACHED() << "Trying to read an unregistered pref: " << path;
165 const Preference* pref = FindPreference(path); local
166 return pref && !pref->IsDefaultValue();
229 const Preference* pref = FindPreference(pref_name); local
230 return pref
234 const Preference* pref = FindPreference(pref_name); local
257 const Preference* pref = FindPreference(path); local
328 const Preference* pref = FindPreference(path); local
407 const Preference* pref = FindPreference(path); local
443 const Preference* pref = FindPreference(path); local
[all...]
/external/chromium_org/chrome/browser/resources/options/chromeos/
H A Dproxy_rules_list.js21 pref: 'cros.session.proxy.ignorelist',
35 // Listens to pref changes.
36 Preferences.getInstance().addEventListener(this.pref,
100 Preferences.setListPref(this.pref, this.dataModel.slice(), true);
/external/chromium_org/components/data_reduction_proxy/browser/
H A Ddata_reduction_proxy_statistics_prefs.cc66 void DataReductionProxyStatisticsPrefs::InitInt64Pref(const char* pref) { argument
67 int64 pref_value = pref_service_->GetInt64(pref);
68 pref_map_[pref] = pref_value;
71 void DataReductionProxyStatisticsPrefs::InitListPref(const char* pref) { argument
73 pref_service_->GetList(pref)->DeepCopy());
74 list_pref_map_.add(pref, pref_value.Pass());
/external/chromium_org/chrome/browser/chromeos/settings/
H A Dstub_cros_settings_provider_unittest.cc43 const base::Value* pref = provider_->Get(prefName); local
44 ASSERT_TRUE(pref);
45 ASSERT_TRUE(pref->Equals(value));
/external/chromium_org/chrome/browser/spellchecker/
H A Dspelling_service_client_unittest.cc303 PrefService* pref = profile_.GetPrefs(); local
304 pref->SetBoolean(prefs::kEnableContinuousSpellcheck, true);
305 pref->SetBoolean(prefs::kSpellCheckUseSpellingService, true);
313 pref->SetString(prefs::kSpellCheckDictionary, kTests[i].language);
334 PrefService* pref = profile_.GetPrefs(); local
335 pref->SetBoolean(prefs::kEnableContinuousSpellcheck, false);
336 pref->SetBoolean(prefs::kSpellCheckUseSpellingService, false);
340 pref->SetBoolean(prefs::kEnableContinuousSpellcheck, true);
341 pref->SetBoolean(prefs::kSpellCheckUseSpellingService, true);
348 pref
[all...]
/external/chromium_org/ui/views/controls/tabbed_pane/
H A Dtabbed_pane_unittest.cc50 gfx::Size pref(tabbed_pane->GetPreferredSize());
51 EXPECT_GE(pref.width(), 20);
52 EXPECT_GT(pref.height(), 10);
/external/chromium_org/chrome/browser/chromeos/extensions/
H A Dinfo_private_api.h32 // Gets boolean |pref| value from PrefService.
33 bool GetBooleanPrefValue(const char* pref);
/external/chromium_org/chrome/browser/supervised_user/
H A Dsupervised_user_pref_store.cc122 for (std::vector<std::string>::const_iterator pref(changed_prefs.begin());
123 pref != changed_prefs.end();
124 ++pref) {
125 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(*pref));
/external/chromium_org/chrome/browser/ui/webui/
H A Dgesture_config_ui.cc59 const PrefService::Preference* pref = local
64 base::FundamentalValue js_pref_default(pref->IsDefaultValue());
92 const PrefService::Preference* pref = local
94 switch (pref->GetType()) {
/external/chromium_org/components/policy/core/browser/
H A Dconfiguration_policy_pref_store.cc104 for (std::vector<std::string>::const_iterator pref(changed_prefs.begin());
105 pref != changed_prefs.end();
106 ++pref) {
108 OnPrefValueChanged(*pref));

Completed in 907 milliseconds

1234567891011