Searched refs:pref (Results 1 - 25 of 274) sorted by relevance

1234567891011

/external/chromium_org/chrome/browser/resources/options/
H A Dpreferences.js211 var pref = this.registeredPreferences_[name];
212 pref.action = 'set';
213 pref.type = type;
214 pref.value = value;
217 // Decorate pref value as CoreOptionsHandler::CreateValueForPref() does.
219 if (pref.orig) {
220 event.value.recommendedValue = pref.orig.recommendedValue;
221 event.value.disabled = pref.orig.disabled;
233 var pref = this.registeredPreferences_[name];
234 pref
[all...]
H A Dconfirm_dialog.js10 * Boolean |pref| to |true|, asking for confirmation. If the user clicks OK,
19 * @param {string} pref The pref that requires confirmation.
21 * @param {string=} opt_confirmedPref A pref used to remember whether the
24 * will pop up every time the user attempts to set |pref| to |true|.
27 function ConfirmDialog(name, title, pageDivName, okButton, cancelButton, pref,
32 this.pref = pref;
49 * Handle changes to |pref|. Only uncommitted changes are relevant as these
63 Preferences.getInstance().commitPref(this.pref, thi
[all...]
H A Dsettings_dialog.js46 var els = this.pageDiv.querySelectorAll('[dialog-pref]');
48 if (els[i].pref)
49 prefs.commitPref(els[i].pref, els[i].metric);
60 var els = this.pageDiv.querySelectorAll('[dialog-pref]');
62 if (els[i].pref)
63 prefs.rollbackPref(els[i].pref);
H A Dhotword_confirm_dialog.js12 * Boolean |pref| to |true|, asking for confirmation. It will first check for
27 $('hotword-search-enable')['pref'], // pref
40 * Handle changes to |pref|. Only uncommitted changes are relevant as these
59 Preferences.getInstance().commitPref(this.pref, this.metric);
74 this.pref, this.onPrefChanged_.bind(this));
/external/chromium_org/base/prefs/
H A Dpref_change_registrar.cc37 DCHECK(!IsObserved(path)) << "Already had this pref registered.";
63 bool PrefChangeRegistrar::IsObserved(const std::string& pref) { argument
64 return observers_.find(pref) != observers_.end();
70 const PrefService::Preference* pref = local
72 if (pref && pref->IsManaged())
79 const std::string& pref) {
80 if (IsObserved(pref))
81 observers_[pref].Run(pref);
78 OnPreferenceChanged(PrefService* service, const std::string& pref) argument
[all...]
H A Dmock_pref_change_callback.h22 const PrefService::Preference* pref = local
24 if (!pref)
27 const base::Value* actual_value = pref->GetValue();
/external/chromium_org/chrome/common/extensions/docs/examples/api/preferences/allowThirdPartyCookies/
H A Dpopup.js6 var pref = chrome.privacy.websites.thirdPartyCookiesAllowed; variable
54 console.log('pref.get result:' + JSON.stringify(settings));
67 console.log('pref.onChange event:' + JSON.stringify(settings));
77 pref.get({'incognito': true}, updateUIFromGet);
82 pref.get({}, updateUIFromGet);
83 pref.onChange.addListener(updateUIFromOnChange);
104 pref.set({'value': enabled, 'scope': scope});
116 pref.clear({'incognito': true});
119 pref.get({'incognito': true}, function(settings) {
120 pref
[all...]
/external/chromium_org/chrome/common/extensions/docs/examples/api/preferences/enableReferrer/
H A Dpopup.js6 var pref = chrome.privacy.websites.referrersEnabled; variable
54 console.log('pref.get result:' + JSON.stringify(settings));
67 console.log('pref.onChange event:' + JSON.stringify(settings));
77 pref.get({'incognito': true}, updateUIFromGet);
82 pref.get({}, updateUIFromGet);
83 pref.onChange.addListener(updateUIFromOnChange);
104 pref.set({'value': enabled, 'scope': scope});
116 pref.clear({'incognito': true});
119 pref.get({'incognito': true}, function(settings) {
120 pref
[all...]
/external/svox/pico/src/com/svox/pico/
H A DEngineSettings.java60 Preference pref = findPreference(available.get(i));
61 pref.setTitle(loc.getDisplayLanguage() + " (" + loc.getDisplayCountry() + ")");
62 pref.setSummary(R.string.installed);
63 pref.setEnabled(false);
71 Preference pref = findPreference(unavailableLang);
72 pref.setTitle(loc.getDisplayLanguage() + " (" + loc.getDisplayCountry() + ")");
73 pref.setSummary(R.string.not_installed);
74 pref.setEnabled(true);
75 pref.setOnPreferenceClickListener(new OnPreferenceClickListener(){
/external/chromium_org/chrome/browser/metrics/
H A Dchrome_stability_metrics_provider.cc39 PrefService* pref = g_browser_process->local_state(); local
40 DCHECK(pref);
41 int value = pref->GetInteger(path);
42 pref->SetInteger(path, value + 1);
46 PrefService* pref = g_browser_process->local_state(); local
47 DCHECK(pref);
48 int64 value = pref->GetInt64(path);
49 pref->SetInt64(path, value + 1);
94 PrefService* pref = g_browser_process->local_state(); local
98 int count = pref
[all...]
/external/chromium_org/chrome/browser/prefs/
H A Dsession_startup_pref_unittest.cc26 // Make the tests independent of the Mac startup pref migration (see
101 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local
105 EXPECT_EQ(SessionStartupPref::LAST, pref.type);
106 EXPECT_EQ(0U, pref.urls.size());
108 EXPECT_EQ(SessionStartupPref::URLS, pref.type);
109 EXPECT_EQ(1U, pref.urls.size());
110 EXPECT_EQ(GURL("http://chromium.org/"), pref.urls[0]);
128 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local
132 EXPECT_EQ(SessionStartupPref::LAST, pref.type);
134 EXPECT_EQ(SessionStartupPref::DEFAULT, pref
155 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local
179 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local
196 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local
[all...]
H A Dpref_model_associator_unittest.cc37 const PrefService::Preference* pref = local
39 ASSERT_TRUE(pref);
40 base::Value::Type type = pref->GetType();
77 const PrefService::Preference* pref = local
81 PrefModelAssociator::MergePreference(pref->name(),
82 *pref->GetValue(),
89 const PrefService::Preference* pref = local
92 PrefModelAssociator::MergePreference(pref->name(),
93 *pref->GetValue(),
106 const PrefService::Preference* pref local
125 const PrefService::Preference* pref = local
144 const PrefService::Preference* pref = local
168 const PrefService::Preference* pref = local
191 const PrefService::Preference* pref = local
226 const PrefService::Preference* pref = local
244 const PrefService::Preference* pref = local
264 const PrefService::Preference* pref = local
374 MergeListPreference(const char* pref) argument
392 MergeDictionaryPreference(const char* pref) argument
[all...]
H A Dchrome_pref_service_unittest.cc38 const PrefService::Preference* pref = local
40 ASSERT_TRUE(pref);
41 const base::Value* value = pref->GetValue();
54 pref = prefs.FindPreference(prefs::kCloudPrintProxyEnabled);
55 ASSERT_TRUE(pref);
56 value = pref->GetValue();
H A Dsession_startup_pref.h56 static void SetStartupPref(Profile* profile, const SessionStartupPref& pref);
58 const SessionStartupPref& pref);
67 // The default startup pref for Mac used to be LAST, now it's DEFAULT. This
78 // Converts an integer pref value to a SessionStartupPref::Type.
/external/chromium_org/chrome/browser/ui/views/bookmarks/
H A Dbookmark_bar_instructions_view.cc55 gfx::Size pref = view->GetPreferredSize(); local
59 descent = std::max(descent, pref.height() - baseline);
61 height = std::max(pref.height(), height);
63 width += pref.width();
76 gfx::Size pref = view->GetPreferredSize(); local
82 y = (height() - pref.height()) / 2;
83 int view_width = std::min(remaining_width, pref.width());
84 view->SetBounds(x, y, view_width, pref.height());
/external/chromium_org/chrome/browser/extensions/api/preference/
H A Dpreference_apitest.cc37 const PrefService::Preference* pref = prefs->FindPreference( local
39 ASSERT_TRUE(pref);
40 EXPECT_TRUE(pref->IsExtensionControlled());
57 const PrefService::Preference* pref = prefs->FindPreference( local
59 ASSERT_TRUE(pref);
60 EXPECT_FALSE(pref->IsExtensionControlled());
155 const PrefService::Preference* pref = local
157 ASSERT_TRUE(pref);
158 EXPECT_TRUE(pref->IsExtensionControlled());
161 pref
183 const PrefService::Preference* pref = local
201 const PrefService::Preference* pref = prefs->FindPreference( local
[all...]
/external/chromium_org/chrome/browser/renderer_context_menu/
H A Dspelling_bubble_model.cc74 PrefService* pref = profile_->GetPrefs(); local
75 DCHECK(pref);
76 pref->SetBoolean(prefs::kSpellCheckUseSpellingService, enabled);
78 pref->SetBoolean(prefs::kEnableAutoSpellCorrect, enabled);
/external/chromium_org/chrome/browser/ui/
H A Dbrowser_view_prefs.h21 // preferences may be synced, depending on the pref's |sync_status| parameter.
27 void MigrateBrowserTabStripPrefs(PrefService* pref);
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/background/
H A Dprefs.js65 // class to manage multiple key maps. Also, this doesn't belong as a pref;
95 // Set the default value of any pref that isn't already in localStorage.
96 for (var pref in cvox.ChromeVoxPrefs.DEFAULT_PREFS) {
97 if (localStorage[pref] === undefined) {
98 localStorage[pref] = cvox.ChromeVoxPrefs.DEFAULT_PREFS[pref];
125 for (var pref in cvox.ChromeVoxPrefs.DEFAULT_PREFS) {
126 prefs[pref] = localStorage[pref];
207 * Set the value of a pref an
[all...]
/external/skia/include/core/
H A DSkImageDecoder.h173 * If a config is preferred, either using a pref table or as a parameter
271 * to pref if possible. Whether a conversion is feasible is
272 * tested by Bitmap::canCopyTo(pref).
282 Result decode(SkStream*, SkBitmap* bitmap, SkColorType pref, Mode);
303 bool decodeSubset(SkBitmap* bm, const SkIRect& subset, SkColorType pref);
313 @param pref If the PrefConfigTable is not set, prefer this colortype.
319 static bool DecodeFile(const char file[], SkBitmap* bitmap, SkColorType pref, Mode,
328 @param pref If the PrefConfigTable is not set, prefer this colortype.
334 static bool DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap, SkColorType pref,
358 @param pref I
371 decode(SkStream* stream, SkBitmap* bitmap, SkBitmap::Config pref, Mode mode) argument
374 decodeSubset(SkBitmap* bm, const SkIRect& subset, SkBitmap::Config pref) argument
377 DecodeFile(const char file[], SkBitmap* bitmap, SkBitmap::Config pref, Mode mode, Format* format = NULL) argument
381 DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap, SkBitmap::Config pref, Mode mode, Format* format = NULL) argument
385 DecodeStream(SkStreamRewindable* stream, SkBitmap* bitmap, SkBitmap::Config pref, Mode mode, Format* format = NULL) argument
[all...]
/external/chromium_org/components/metrics/
H A Dmetrics_log.cc59 std::string GetMetricsEnabledDate(PrefService* pref) { argument
60 if (!pref) {
65 return pref->GetString(metrics::prefs::kMetricsReportingEnabledTimestamp);
223 PrefService* pref = local_state_; local
224 DCHECK(pref);
230 WriteRequiredStabilityAttributes(pref);
236 WriteRealtimeStabilityAttributes(pref, incremental_uptime, uptime);
247 pref->GetInteger(metrics::prefs::kStabilityIncompleteSessionEndCount);
248 pref->SetInteger(metrics::prefs::kStabilityIncompleteSessionEndCount, 0);
250 pref
298 WriteRequiredStabilityAttributes(PrefService* pref) argument
310 WriteRealtimeStabilityAttributes( PrefService* pref, base::TimeDelta incremental_uptime, base::TimeDelta uptime) argument
[all...]
/external/chromium_org/components/data_reduction_proxy/browser/
H A Ddata_reduction_proxy_statistics_prefs_unittest.cc45 // Create daily pref list of |kNumDaysInHistory| zero values.
46 void CreatePrefList(const char* pref) { argument
47 base::ListValue* update = statistics_prefs_->GetList(pref);
54 // Verify the pref list values in |pref_service_| are equal to those in
55 // |simple_pref_service| for |pref|.
56 void VerifyPrefListWasWritten(const char* pref) { argument
57 const base::ListValue* delayed_list = statistics_prefs_->GetList(pref);
58 const base::ListValue* written_list = simple_pref_service_.GetList(pref);
68 // Verify the pref value in |pref_service_| are equal to that in
70 void VerifyPrefWasWritten(const char* pref) { argument
[all...]
/external/kernel-headers/original/uapi/linux/
H A Dipv6_route.h34 #define RTF_PREF(pref) ((pref) << 27)
/external/pixman/pixman/
H A Dpixman-mips-memcpy-asm.S84 * When in the loop we exercise "pref 30, x(a0)", the a0+x should not be past
88 * In the current version we use "pref 30, 128(a0)", so "t0-160" is the limit
90 subu t9, t0, 160 /* t9 is the "last safe pref 30, 128(a0)" address */
92 pref 0, 0(a1) /* bring the first line of src, addr 0 */
93 pref 0, 32(a1) /* bring the second line of src, addr 32 */
94 pref 0, 64(a1) /* bring the third line of src, addr 64 */
95 pref 30, 32(a0) /* safe, as we have at least 64 bytes ahead */
96 /* In case the a0 > t9 don't use "pref 30" at all */
98 bgtz v1, $loop16w /* skip "pref 30, 64(a0)" for too short arrays */
101 pref 3
[all...]
/external/chromium_org/ui/views/layout/
H A Dgrid_layout_unittest.cc23 explicit SettableSizeView(const gfx::Size& pref) { argument
24 pref_ = pref;
64 pref = layout.GetPreferredSize(&host);
67 gfx::Size pref; member in class:views::GridLayoutTest
89 gfx::Size pref = layout.GetPreferredSize(&host); local
90 EXPECT_EQ(gfx::Size(10, 20), pref);
139 EXPECT_EQ(gfx::Size(30, 20), pref);
141 host.SetBounds(0, 0, pref.width(), pref.height());
163 EXPECT_EQ(gfx::Size(100, 60), pref);
298 gfx::Size pref = layout.GetPreferredSize(&host); local
[all...]

Completed in 1447 milliseconds

1234567891011