Searched refs:pref (Results 51 - 75 of 274) sorted by relevance

1234567891011

/external/chromium_org/chrome/browser/spellchecker/
H A Dspelling_service_client.cc59 const PrefService* pref = user_prefs::UserPrefs::Get(context); local
60 DCHECK(pref);
65 pref->GetString(prefs::kSpellCheckDictionary),
106 const PrefService* pref = user_prefs::UserPrefs::Get(context); local
107 DCHECK(pref);
110 if (!pref->GetBoolean(prefs::kEnableContinuousSpellcheck) ||
111 !pref->GetBoolean(prefs::kSpellCheckUseSpellingService) ||
117 std::string locale = pref->GetString(prefs::kSpellCheckDictionary);
/external/chromium_org/chrome/browser/translate/
H A Dtranslate_manager_browsertest.cc34 SessionStartupPref pref(SessionStartupPref::LAST);
35 SessionStartupPref::SetStartupPref(browser()->profile(), pref);
/external/chromium_org/components/data_reduction_proxy/browser/
H A Ddata_reduction_proxy_statistics_prefs.h26 // Data reduction proxy delayed pref service reduces the number calls to pref
28 // |delay| amount of time. If |delay| is zero, the delayed pref service writes
33 // Constructs a data reduction proxy delayed pref service object using
48 // Gets the int64 pref at |pref_path| from the |DataReductionProxyPrefMap|.
51 // Updates the pref value in the |DataReductionProxyPrefMap| map.
52 // The pref is later written to |pref service_|.
55 // Gets the pref list at |pref_path| from the |DataReductionProxyPrefMap|.
67 // Gets the value of |pref| fro
[all...]
/external/chromium_org/chrome/browser/media_galleries/
H A Dmedia_galleries_permission_controller.h38 // so they do not have a pref id while the dialog is open; leading to
40 // maps pref ids into a new space where it can also assign ids to new galleries.
42 // make it more clear where real pref ids are used and where the fake ids are
128 virtual void OnPermissionAdded(MediaGalleriesPreferences* pref,
131 virtual void OnPermissionRemoved(MediaGalleriesPreferences* pref,
134 virtual void OnGalleryAdded(MediaGalleriesPreferences* pref,
136 virtual void OnGalleryRemoved(MediaGalleriesPreferences* pref,
138 virtual void OnGalleryInfoUpdated(MediaGalleriesPreferences* pref,
180 // Mapping between pref ids and dialog ids.
H A Dmedia_galleries_scan_result_controller.h118 virtual void OnPermissionAdded(MediaGalleriesPreferences* pref,
121 virtual void OnPermissionRemoved(MediaGalleriesPreferences* pref,
124 virtual void OnGalleryAdded(MediaGalleriesPreferences* pref,
126 virtual void OnGalleryRemoved(MediaGalleriesPreferences* pref,
128 virtual void OnGalleryInfoUpdated(MediaGalleriesPreferences* pref,
H A Dgallery_watch_manager.cc396 void GalleryWatchManager::OnPermissionRemoved(MediaGalleriesPreferences* pref, argument
399 RemoveWatch(pref->profile(), extension_id, pref_id);
400 if (ContainsKey(observers_, pref->profile()))
401 observers_[pref->profile()]->OnGalleryWatchDropped(extension_id, pref_id);
404 void GalleryWatchManager::OnGalleryRemoved(MediaGalleriesPreferences* pref, argument
410 if (it->first.browser_context == pref->profile() &&
419 RemoveWatch(pref->profile(), *it, pref_id);
420 if (ContainsKey(observers_, pref->profile()))
421 observers_[pref->profile()]->OnGalleryWatchDropped(*it, pref_id);
H A Dmedia_galleries_preferences.h160 virtual void OnPermissionAdded(MediaGalleriesPreferences* pref, argument
164 virtual void OnPermissionRemoved(MediaGalleriesPreferences* pref, argument
168 virtual void OnGalleryAdded(MediaGalleriesPreferences* pref, argument
171 virtual void OnGalleryRemoved(MediaGalleriesPreferences* pref, argument
174 virtual void OnGalleryInfoUpdated(MediaGalleriesPreferences* pref, argument
229 // type. Returns the gallery's pref id.
244 // blacklisted type. Returns the gallery's pref id.
393 // A mapping from device id to the set of gallery pref ids on that device.
394 // All pref ids in |device_map_| are also in |known_galleries_|.
/external/chromium_org/chrome/browser/extensions/api/font_settings/
H A Dfont_settings_api.cc70 // for the system locale, but the pref value may be in the English name.
158 const PrefService::Preference* pref = registrar_.prefs()->FindPreference( local
160 CHECK(pref);
163 if (!pref->GetValue()->GetAsString(&font_name)) {
189 const PrefService::Preference* pref = registrar_.prefs()->FindPreference( local
191 CHECK(pref);
196 dict->Set(key, pref->GetValue()->DeepCopy());
236 // Ensure |pref_path| really is for a registered per-script font pref.
254 const PrefService::Preference* pref = local
259 pref
359 const PrefService::Preference* pref = prefs->FindPreference(GetPrefName()); local
[all...]
/external/chromium_org/chrome/browser/extensions/api/media_galleries_private/
H A Dgallery_watch_state_tracker.h59 virtual void OnPermissionAdded(MediaGalleriesPreferences* pref,
63 virtual void OnPermissionRemoved(MediaGalleriesPreferences* pref,
67 virtual void OnGalleryRemoved(MediaGalleriesPreferences* pref,
/external/chromium_org/chrome/browser/extensions/api/preference/
H A Dpreference_helpers.cc63 const PrefService::Preference* pref = local
65 CHECK(pref);
67 if (!pref->IsExtensionModifiable())
116 // a) incognito pref changes are visible only to the incognito tabs
117 // b) regular pref changes are visible only to the incognito tabs if the
118 // incognito pref has not alredy been set
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/python-yasm/tests/
H A D__init__.py52 pref = '%s (%d): ' % (test.__name__, len(suite._tests))
53 print pref + " " * (25 - len(pref)),
/external/chromium_org/base/prefs/
H A Dpref_change_registrar.h18 // Automatically manages the registration of one or more pref change observers
35 // Adds a pref observer for the specified pref |path| and |obs| observer
46 // Removes the pref observer registered for |path|.
52 // Returns true if no pref observers are registered.
55 // Check whether |pref| is in the set of preferences being observed.
56 bool IsObserved(const std::string& pref);
H A Dpref_member.cc46 // Add ourselves as a pref observer so we can keep our local value in sync.
75 const PrefService::Preference* pref = local
77 DCHECK(pref);
80 internal()->UpdateValue(pref->GetValue()->DeepCopy(),
81 pref->IsManaged(),
82 pref->IsUserModifiable(),
/external/chromium_org/ui/gfx/win/
H A Dhwnd_util.h33 // Sizes the window to have a window size of |pref|, then centers the window
37 const gfx::Size& pref);
/external/chromium_org/chrome/browser/ui/webui/options/
H A Dsettings_format_browsertest.js18 * Exemption for checkboxes that do not require an id or pref property.
21 'pref': ['language-options-input-method-template',
31 MISSING_ID_OR_PREF: 'Missing id or pref preoperty for checkbox $1.',
89 if (element.pref)
90 return element.pref;
132 * Each checkbox requires an id or pref property.
136 'input[type=checkbox]:not([pref]):not([id]):not(.spacer-checkbox)';
140 if (!this.isExempt(element, SettingsFormatWebUITest.Filters['pref']))
H A Dstartup_pages_handler.cc223 SessionStartupPref pref = SessionStartupPref::GetStartupPref(prefs); local
224 pref.urls = startup_custom_pages_table_model_->GetURLs();
226 if (pref.urls.empty())
227 pref.type = SessionStartupPref::DEFAULT;
229 SessionStartupPref::SetStartupPref(prefs, pref);
/external/chromium_org/components/metrics/
H A Dmetrics_log.h95 // example, a pref may be mapped to a synthetic trial such that the group
96 // is determined by the pref value.
103 // call from prefs and clears the pref value. Returns true on success or false
167 void WriteRequiredStabilityAttributes(PrefService* pref);
173 void WriteRealtimeStabilityAttributes(PrefService* pref,
/external/chromium_org/ui/views/controls/menu/
H A Dmenu_scroll_view_container.cc231 gfx::Size pref = scroll_up_button_->GetPreferredSize(); local
232 scroll_up_button_->SetBounds(x, y, width, pref.height());
233 content_height -= pref.height();
235 const int scroll_view_y = y + pref.height();
237 pref = scroll_down_button_->GetPreferredSize();
238 scroll_down_button_->SetBounds(x, height() - pref.height() - insets.top(),
239 width, pref.height());
240 content_height -= pref.height();
H A Dmenu_controller.cc1603 gfx::Size pref = submenu->GetScrollViewContainer()->GetPreferredSize(); local
1606 pref.set_width(std::min(pref.width(),
1609 pref.set_width(std::min(pref.width(), state_.monitor_bounds.width()));
1629 x = x + state_.initial_bounds.width() - pref.width();
1633 x = x - (pref.width() - state_.initial_bounds.width()) / 2;
1634 if (pref.height() >
1639 y = std::max(0, state_.initial_bounds.y() - pref.height()) +
1645 y + pref
1785 gfx::Size pref = submenu->GetScrollViewContainer()->GetPreferredSize(); local
[all...]
/external/chromium_org/chrome/browser/extensions/api/proxy/
H A Dproxy_apitest.cc33 const PrefService::Preference* pref = local
35 ASSERT_TRUE(pref != NULL);
36 EXPECT_TRUE(pref->IsExtensionControlled());
68 const PrefService::Preference* pref = local
70 ASSERT_TRUE(pref != NULL);
71 EXPECT_FALSE(pref->IsExtensionControlled());
/external/chromium_org/chrome/browser/external_protocol/
H A Dexternal_protocol_handler.cc221 PrefService* pref = g_browser_process->local_state(); local
222 if (pref) { // May be NULL during testing.
223 DictionaryPrefUpdate update_excluded_schemas(pref, prefs::kExcludedSchemes);
242 PrefService* pref = g_browser_process->local_state(); local
243 if (pref) { // May be NULL during testing.
244 DictionaryPrefUpdate update_excluded_schemas(pref, prefs::kExcludedSchemes);
/external/chromium_org/ui/views/layout/
H A Dgrid_layout.cc598 gfx::Size pref; local
604 pref = view_state->view->GetPreferredSize();
606 view_state->pref_width = pref.width();
608 view_state->pref_height = pref.height();
610 view_state->remaining_width = pref.width();
611 view_state->remaining_height = pref.height();
802 gfx::Size pref; local
803 SizeRowsAndColumns(true, host_->width(), host_->height(), &pref);
842 gfx::Size pref; local
843 SizeRowsAndColumns(false, width, 0, &pref);
[all...]
/external/chromium_org/chrome/browser/chromeos/policy/
H A Drecommendation_restorer_unittest.cc170 const PrefServiceSyncable::Preference* pref = local
172 ASSERT_TRUE(pref);
173 EXPECT_TRUE(pref->HasUserSetting());
174 const base::Value* value = pref->GetValue();
197 const PrefServiceSyncable::Preference* pref = local
199 ASSERT_TRUE(pref);
200 EXPECT_TRUE(pref->IsRecommended());
201 EXPECT_FALSE(pref->HasUserSetting());
202 const base::Value* value = pref->GetValue();
H A Ddevice_cloud_policy_manager_chromeos.cc129 const PrefService::Preference* pref = local_state_->FindPreference( local
131 if (!pref->IsDefaultValue())
132 pref->GetValue()->GetAsString(&requisition);
237 const PrefService::Preference* pref = local_state_->FindPreference( local
239 if (pref->IsDefaultValue()) {
/external/chromium_org/third_party/skia/include/core/
H A DSkImageDecoder.h164 * By default, the codec will try to comply with the "pref" colortype
227 * to pref if possible. Whether a conversion is feasible is
228 * tested by Bitmap::canCopyTo(pref).
238 bool decode(SkStream*, SkBitmap* bitmap, SkColorType pref, Mode);
259 bool decodeSubset(SkBitmap* bm, const SkIRect& subset, SkColorType pref);
269 @param pref If the PrefConfigTable is not set, prefer this colortype.
275 static bool DecodeFile(const char file[], SkBitmap* bitmap, SkColorType pref, Mode,
284 @param pref If the PrefConfigTable is not set, prefer this colortype.
290 static bool DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap, SkColorType pref,
314 @param pref I
[all...]

Completed in 687 milliseconds

1234567891011