Searched defs:suggestion (Results 1 - 25 of 48) sorted by relevance

12

/external/chromium_org/content/public/common/
H A Dcolor_suggestion.cc11 ColorSuggestion::ColorSuggestion(const blink::WebColorSuggestion& suggestion) argument
12 : color(suggestion.color),
13 label(suggestion.label) {
/external/chromium_org/content/renderer/
H A Ddate_time_suggestion_builder.cc14 const blink::WebDateTimeSuggestion& suggestion) {
16 result.value = suggestion.value;
17 result.localized_value = suggestion.localizedValue;
18 result.label = suggestion.label;
13 Build( const blink::WebDateTimeSuggestion& suggestion) argument
/external/chromium_org/third_party/WebKit/Source/web/
H A DWebColorSuggestion.cpp40 WebColorSuggestion::WebColorSuggestion(const ColorSuggestion& suggestion) argument
41 : color(static_cast<WebColor>(suggestion.color.rgb()))
42 , label(suggestion.label)
46 WebColorSuggestion& WebColorSuggestion::operator=(const ColorSuggestion& suggestion) argument
48 color = static_cast<WebColor>(suggestion.color.rgb());
49 label = suggestion.label;
H A DWebDateTimeSuggestion.cpp33 WebDateTimeSuggestion::WebDateTimeSuggestion(const DateTimeSuggestion& suggestion) argument
34 : value(suggestion.value)
35 , localizedValue(suggestion.localizedValue)
36 , label(suggestion.label)
40 WebDateTimeSuggestion& WebDateTimeSuggestion::operator=(const DateTimeSuggestion& suggestion) argument
42 value = suggestion.value;
43 localizedValue = suggestion.localizedValue;
44 label = suggestion.label;
/external/chromium_org/chrome/browser/search/suggestions/
H A Dimage_manager_impl_unittest.cc48 ChromeSuggestion* suggestion = suggestions_profile.add_suggestions(); local
49 suggestion->set_url(kTestUrl);
50 suggestion->set_thumbnail(kTestImageUrl);
H A Dimage_manager_impl.cc52 const ChromeSuggestion& suggestion = suggestions.suggestions(i); local
53 if (suggestion.has_thumbnail()) {
54 image_url_map_[GURL(suggestion.url())] = GURL(suggestion.thumbnail());
H A Dimage_manager_impl_browsertest.cc79 suggestions::ChromeSuggestion* suggestion = local
81 suggestion->set_url(kTestBitmapUrl);
82 suggestion->set_thumbnail(test_server_.GetURL(kTestImagePath).spec());
113 suggestions::ChromeSuggestion* suggestion = local
115 suggestion->set_url(kTestUrl1);
116 suggestion->set_thumbnail(test_server_.GetURL(kTestImagePath).spec());
223 ChromeSuggestion* suggestion = suggestions_profile.add_suggestions(); local
224 suggestion->set_url(kTestUrl1);
225 suggestion->set_thumbnail(test_server_.GetURL(kInvalidImagePath).spec());
250 ChromeSuggestion* suggestion local
[all...]
H A Dsuggestions_source.cc55 const ChromeSuggestion& suggestion = profile.suggestions(i); local
57 suggestion.expiry_ts() - now);
64 line += net::EscapeForHTML(suggestion.url());
66 line += net::EscapeForHTML(suggestion.title());
68 base64_encoded_pngs.find(GURL(suggestion.url()));
162 const ChromeSuggestion& suggestion = suggestions_profile.suggestions(i); local
169 GURL(suggestion.url()),
/external/chromium_org/ui/android/java/src/org/chromium/ui/
H A DColorPickerSimple.java83 public void onColorSuggestionClick(ColorSuggestion suggestion) { argument
84 mOnColorChangedListener.onColorChanged(suggestion.mColor);
H A DColorSuggestionListAdapter.java29 * The callback used to indicate the user has clicked on a suggestion.
34 * Called upon a click on a suggestion.
36 * @param suggestion The suggestion that was clicked.
38 void onColorSuggestionClick(ColorSuggestion suggestion); argument
49 * Sets the listener that will be notified upon a click on a suggestion.
56 * Sets up the color button to represent a color suggestion.
59 * @param index The index of the suggestion in mSuggestions.
70 ColorSuggestion suggestion = mSuggestions[index];
74 swatch.setColor(suggestion
[all...]
/external/chromium_org/components/suggestions/
H A Dsuggestions_store.cc68 ChromeSuggestion* suggestion = suggestions->mutable_suggestions(i); local
69 if (!suggestion->has_expiry_ts() || suggestion->expiry_ts() > now_usec) {
70 filtered_suggestions.add_suggestions()->Swap(suggestion);
H A Dblacklist_store.cc117 // This suggestion is not blacklisted.
118 ChromeSuggestion* suggestion = filtered_profile.add_suggestions(); local
120 suggestion->Swap(profile->mutable_suggestions(i));
H A Dblacklist_store_unittest.cc32 ChromeSuggestion* suggestion = suggestions.add_suggestions(); local
33 suggestion->set_url(*it);
H A Dsuggestions_store_unittest.cc24 ChromeSuggestion* suggestion = suggestions->add_suggestions(); local
25 suggestion->set_url(title);
26 suggestion->set_title(url);
27 suggestion->set_expiry_ts(expiry_ts);
32 ChromeSuggestion* suggestion = suggestions.add_suggestions(); local
33 suggestion->set_url(kTestTitle);
34 suggestion->set_title(kTestUrl);
/external/chromium_org/components/web_contents_delegate_android/
H A Dcolor_chooser_android.cc35 const content::ColorSuggestion& suggestion = suggestions[i]; local
37 env, suggestion.label);
42 suggestion.color,
/external/chromium_org/chrome/browser/metrics/
H A Domnibox_metrics_provider.cc157 OmniboxEventProto::Suggestion* suggestion = omnibox_event->add_suggestion(); local
158 suggestion->set_provider(i->provider->AsOmniboxEventProviderType());
159 suggestion->set_result_type(AsOmniboxEventResultType(i->type));
160 suggestion->set_relevance(i->relevance);
162 suggestion->set_typed_count(i->typed_count);
/external/chromium_org/chrome/browser/ui/omnibox/
H A Domnibox_current_page_delegate_impl.cc123 const InstantSuggestion& suggestion) {
130 SetSuggestionToPrefetch(suggestion);
136 prerenderer->Prerender(suggestion);
122 SetSuggestionToPrefetch( const InstantSuggestion& suggestion) argument
/external/chromium_org/chrome/renderer/searchbox/
H A Dsearchbox.h113 const InstantSuggestion& suggestion() const { return suggestion_; } function in class:SearchBox
131 void OnSetSuggestionToPrefetch(const InstantSuggestion& suggestion);
/external/chromium_org/chrome/browser/autocomplete/
H A Dkeyword_extensions_delegate_impl.cc137 // It's possible to change the default suggestion while not in an editing
170 const omnibox_api::SuggestResult& suggestion = local
174 // and subtract 1 for each subsequent suggestion from the extension.
187 base::UTF8ToUTF16(suggestion.content), false,
191 match->contents.assign(base::UTF8ToUTF16(suggestion.description));
193 extensions::StyleTypesToACMatchClassifications(suggestion);
/external/chromium_org/chrome/browser/spellchecker/
H A Dspelling_service_client.cc154 // suggestion for auto-correction.
163 // "suggestions": [{ "suggestion": "quack" }],
199 // first one because SpellCheckResult can store only one suggestion.
213 base::DictionaryValue* suggestion = NULL; local
215 if (!suggestions->GetDictionary(0, &suggestion) ||
216 !suggestion->GetString("suggestion", &replacement)) {
H A Dfeedback_sender_unittest.cc188 // Send SELECT feedback message if the user has selected a spelling suggestion.
219 // Send PENDING feedback message if the user saw the spelling suggestion, but
229 // Send IGNORE feedback message if the user saw the spelling suggestion, but
424 base::DictionaryValue* suggestion = NULL; local
425 suggestions->GetDictionary(0, &suggestion);
426 suggestion->SetString("suggestionId", "42");
427 suggestion->SetString("timestamp", "9001");
/external/chromium_org/chrome/browser/ui/search/
H A Dinstant_search_prerenderer.cc84 void InstantSearchPrerenderer::Prerender(const InstantSuggestion& suggestion) { argument
88 if (last_instant_suggestion_.text == suggestion.text)
98 last_instant_suggestion_ = suggestion;
100 SetSuggestionToPrefetch(suggestion);
/external/chromium_org/content/browser/android/
H A Ddate_time_chooser_android.cc94 const content::DateTimeSuggestion& suggestion = suggestions[i]; local
96 env, SanitizeSuggestionString(suggestion.localized_value));
98 env, SanitizeSuggestionString(suggestion.label));
101 suggestion.value, localized_value.obj(), label.obj());
/external/chromium_org/chrome/browser/extensions/api/omnibox/
H A Domnibox_api.cc58 scoped_ptr<omnibox::SuggestResult> suggestion; local
63 suggestion.reset(new omnibox::SuggestResult);
64 omnibox::SuggestResult::Populate(*dict, suggestion.get());
66 return suggestion.Pass();
69 // Tries to set the omnibox default suggestion; returns true on success or
74 const omnibox::DefaultSuggestResult& suggestion) {
79 scoped_ptr<base::DictionaryValue> dict = suggestion.ToValue();
298 GetProfile(), extension_id(), params->suggestion)) {
311 const omnibox::SuggestResult &suggestion) {
313 if (suggestion
71 SetOmniboxDefaultSuggestion( Profile* profile, const std::string& extension_id, const omnibox::DefaultSuggestResult& suggestion) argument
310 StyleTypesToACMatchClassifications( const omnibox::SuggestResult &suggestion) argument
[all...]
/external/chromium_org/chrome/browser/renderer_context_menu/
H A Dspelling_menu_observer_browsertest.cc225 void InitMenu(const char* word, const char* suggestion) { argument
230 if (suggestion)
231 params.dictionary_suggestions.push_back(base::ASCIIToUTF16(suggestion));
367 // service is enabled and that there is only one suggestion.
378 // The test should see a separator, a suggestion and another separator
470 // Case #3. Misspelled word, suggestion service is on.
475 // Should have at least 2 entries. Separator, suggestion.

Completed in 599 milliseconds

12