Searched refs:suggestions (Results 1 - 25 of 139) sorted by relevance

123456

/external/chromium_org/components/suggestions/
H A Dsuggestions_pref_names.cc5 #include "components/suggestions/suggestions_pref_names.h"
7 namespace suggestions { namespace
10 // A cache of a suggestions blacklist, represented as a serialized
12 const char kSuggestionsBlacklist[] = "suggestions.blacklist";
14 // A cache of suggestions represented as a serialized SuggestionsProfile
16 const char kSuggestionsData[] = "suggestions.data";
19 } // namespace suggestions
H A Dsuggestions_pref_names.h8 namespace suggestions { namespace
17 } // namespace suggestions
H A Dsuggestions_store.cc5 #include "components/suggestions/suggestions_store.h"
13 #include "components/suggestions/suggestions_pref_names.h"
15 namespace suggestions { namespace
24 bool SuggestionsStore::LoadSuggestions(SuggestionsProfile* suggestions) { argument
25 DCHECK(suggestions);
30 suggestions->Clear();
37 !suggestions->ParseFromString(suggestions_data)) {
39 suggestions->Clear();
44 // Filter expired suggestions and update the stored suggestions i
61 FilterExpiredSuggestions( SuggestionsProfile* suggestions) argument
76 StoreSuggestions(const SuggestionsProfile& suggestions) argument
[all...]
H A Dsuggestions_store_unittest.cc5 #include "components/suggestions/suggestions_store.h"
9 #include "components/suggestions/proto/suggestions.pb.h"
14 namespace suggestions { namespace
22 void AddSuggestion(SuggestionsProfile* suggestions, const char *title, argument
24 ChromeSuggestion* suggestion = suggestions->add_suggestions();
31 SuggestionsProfile suggestions; local
32 ChromeSuggestion* suggestion = suggestions.add_suggestions();
35 return suggestions;
46 SuggestionsProfile suggestions; local
91 SuggestionsProfile suggestions = CreateTestSuggestionsProfileWithExpiry(5, 0); local
102 SuggestionsProfile suggestions = CreateTestSuggestionsProfileWithExpiry(5, 3); local
113 SuggestionsProfile suggestions = CreateTestSuggestionsProfileWithExpiry(5, 3); local
127 const SuggestionsProfile suggestions = CreateTestSuggestions(); local
[all...]
H A Dsuggestions_store.h9 #include "components/suggestions/proto/suggestions.pb.h"
17 namespace suggestions { namespace
19 // A helper class for reading and writing the suggestions to the profile's
27 // |suggestions|. If there is a problem with loading, the pref value is
28 // cleared, false is returned and |suggestions| is cleared. If successful,
29 // |suggestions| will contain the loaded data and true is returned.
30 virtual bool LoadSuggestions(SuggestionsProfile* suggestions);
32 // Stores the provided |suggestions| to the profile's preferences, using
34 virtual bool StoreSuggestions(const SuggestionsProfile& suggestions);
[all...]
H A Dsuggestions_utils.cc5 #include "components/suggestions/suggestions_utils.h"
7 namespace suggestions { namespace
22 } // namespace suggestions
H A Dsuggestions_utils.h8 namespace suggestions { namespace
22 // Behavior: Update suggestions from the server. Serve from cache on timeout.
27 // suggestions.
36 } // namespace suggestions
H A Dblacklist_store_unittest.cc5 #include "components/suggestions/blacklist_store.h"
14 #include "components/suggestions/proto/suggestions.pb.h"
19 namespace suggestions { namespace
29 SuggestionsProfile suggestions; local
32 ChromeSuggestion* suggestion = suggestions.add_suggestions();
35 return suggestions;
42 EXPECT_EQ(expected.suggestions(i).url(), actual.suggestions(i).url());
43 EXPECT_EQ(expected.suggestions(
84 SuggestionsProfile suggestions; local
[all...]
H A Dimage_manager.h10 #include "components/suggestions/proto/suggestions.pb.h"
14 namespace suggestions { namespace
24 virtual void Initialize(const SuggestionsProfile& suggestions) = 0;
36 } // namespace suggestions
H A Dblacklist_store.h9 #include "components/suggestions/proto/suggestions.pb.h"
18 namespace suggestions { namespace
39 // Applies the blacklist to |suggestions|.
40 virtual void FilterSuggestions(SuggestionsProfile* suggestions);
63 // The pref service used to persist the suggestions blacklist.
69 } // namespace suggestions
H A Dsuggestions_service.cc5 #include "components/suggestions/suggestions_service.h"
18 #include "components/suggestions/blacklist_store.h"
19 #include "components/suggestions/suggestions_store.h"
35 namespace suggestions { namespace
65 // Runs each callback in |requestors| on |suggestions|, then deallocates
68 const SuggestionsProfile& suggestions,
72 if (!it->is_null()) it->Run(suggestions);
164 // suggestions if available.
181 // Post a task to serve the cached suggestions if the request hasn't completed
241 SuggestionsProfile* suggestions, int6
67 DispatchRequestsAndClear( const SuggestionsProfile& suggestions, std::vector<SuggestionsService::ResponseCallback>* requestors) argument
240 SetDefaultExpiryTimestamp( SuggestionsProfile* suggestions, int64 default_timestamp_usec) argument
340 SuggestionsProfile suggestions; local
371 SuggestionsProfile suggestions; local
377 FilterAndServe(SuggestionsProfile* suggestions) argument
[all...]
/external/chromium_org/chrome/browser/resources/ntp4/
H A Dsuggestions_page.css5 .suggestions {
10 .suggestions {
17 .suggestions:focus {
21 .suggestions .close-button {
30 html[dir=rtl] .suggestions .close-button {
35 .suggestions:hover .close-button {
40 .suggestions .close-button:hover {
44 .suggestions .favicon {
55 html[dir='rtl'] .suggestions .favicon {
59 .suggestions
[all...]
/external/chromium_org/third_party/libaddressinput/chromium/
H A Dchrome_address_validator_unittest.cc288 std::vector<AddressData> suggestions; local
290 validator_->GetSuggestions(address, POSTAL_CODE, 1, &suggestions));
291 ASSERT_EQ(1U, suggestions.size());
292 EXPECT_EQ("CA", suggestions[0].administrative_area);
293 EXPECT_EQ("90291", suggestions[0].postal_code);
303 std::vector<AddressData> suggestions; local
305 validator_->GetSuggestions(address, POSTAL_CODE, 1, &suggestions));
306 ASSERT_EQ(1U, suggestions.size());
307 EXPECT_EQ("Dacun Township", suggestions[0].locality);
308 EXPECT_EQ("Changhua County", suggestions[
319 std::vector<AddressData> suggestions; local
334 std::vector<AddressData> suggestions; local
346 std::vector<AddressData> suggestions; local
361 std::vector<AddressData> suggestions; local
377 std::vector<AddressData> suggestions; local
392 std::vector<AddressData> suggestions; local
410 std::vector<AddressData> suggestions; local
422 std::vector<AddressData> suggestions; local
433 std::vector<AddressData> suggestions; local
445 std::vector<AddressData> suggestions; local
457 std::vector<AddressData> suggestions; local
469 std::vector<AddressData> suggestions; local
495 std::vector<AddressData> suggestions; local
509 std::vector<AddressData> suggestions; local
523 std::vector<AddressData> suggestions; local
535 std::vector<AddressData> suggestions; local
547 std::vector<AddressData> suggestions; local
559 std::vector<AddressData> suggestions; local
572 std::vector<AddressData> suggestions; local
604 std::vector<AddressData> suggestions; local
663 std::vector<AddressData> suggestions; local
686 std::vector<AddressData> suggestions; local
[all...]
/external/chromium_org/chrome/browser/resources/suggestions_internals/
H A Dsuggestions_internals.css5 .suggestions-debug-table {
10 .suggestions-debug-table th {
14 .suggestions-debug-table td {
/external/chromium_org/components/web_contents_delegate_android/
H A Dcolor_chooser_android.cc21 const std::vector<content::ColorSuggestion>& suggestions)
30 if (suggestions.size() > 0) {
32 env, suggestions.size());
34 for (size_t i = 0; i < suggestions.size(); ++i) {
35 const content::ColorSuggestion& suggestion = suggestions[i];
18 ColorChooserAndroid( content::WebContents* web_contents, SkColor initial_color, const std::vector<content::ColorSuggestion>& suggestions) argument
/external/chromium_org/chrome/renderer/spellchecker/
H A Dhunspell_engine.cc24 // Maximum length of words we provide suggestions for.
73 // offer suggestions on them, either, there's no point in flagging them to
104 char** suggestions = NULL; local
106 hunspell_->suggest(&suggestions, wrong_word_utf8.c_str());
111 optional_suggestions->push_back(base::UTF8ToUTF16(suggestions[i]));
112 free(suggestions[i]);
114 if (suggestions != NULL)
115 free(suggestions);
/external/chromium_org/ui/android/java/src/org/chromium/ui/
H A DColorPickerSimple.java57 * Initializes the listener and sets the adapter for the given list of suggestions. If the
58 * suggestions is null a default set of colors will be used.
60 * @param suggestions The list of suggestions that should be displayed.
64 public void init(ColorSuggestion[] suggestions, argument
68 if (suggestions == null) {
69 suggestions = new ColorSuggestion[DEFAULT_COLORS.length];
70 for (int i = 0; i < suggestions.length; ++i) {
71 suggestions[i] = new ColorSuggestion(DEFAULT_COLORS[i],
77 getContext(), suggestions);
[all...]
/external/chromium_org/chrome/browser/search/suggestions/
H A Dsuggestions_service_factory.h13 namespace suggestions { namespace
22 static suggestions::SuggestionsService* GetForProfile(Profile* profile);
43 } // namespace suggestions
/external/chromium_org/chrome/browser/spellchecker/
H A Dmisspelling.h25 // misspelling.suggestions =
37 const std::vector<base::string16>& suggestions,
59 // Spelling suggestions.
60 std::vector<base::string16> suggestions; member in class:Misspelling
H A Dmisspelling.cc17 // Builds a value from a list of spellcheck suggestions. The caller owns the
41 const std::vector<base::string16>& suggestions,
46 suggestions(suggestions),
63 result->Set("suggestions", BuildSuggestionsValue(suggestions));
38 Misspelling(const base::string16& context, size_t location, size_t length, const std::vector<base::string16>& suggestions, uint32 hash) argument
/external/chromium_org/athena/content/chrome/
H A Ddialogs.cc15 const std::vector<content::ColorSuggestion>& suggestions) {
12 OpenColorChooser( content::WebContents* web_contents, SkColor initial_color, const std::vector<content::ColorSuggestion>& suggestions) argument
/external/chromium_org/athena/content/shell/
H A Ddialogs.cc13 const std::vector<content::ColorSuggestion>& suggestions) {
10 OpenColorChooser( content::WebContents* web_contents, SkColor initial_color, const std::vector<content::ColorSuggestion>& suggestions) argument
/external/chromium_org/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/
H A DColorChooserAndroid.java26 Context context, int initialColor, ColorSuggestion[] suggestions) {
36 mDialog = new ColorPickerDialog(context, listener, initialColor, suggestions);
53 ColorSuggestion[] suggestions) {
55 contentViewCore.getContext(), initialColor, suggestions);
25 ColorChooserAndroid(long nativeColorChooserAndroid, Context context, int initialColor, ColorSuggestion[] suggestions) argument
49 createColorChooserAndroid( long nativeColorChooserAndroid, ContentViewCore contentViewCore, int initialColor, ColorSuggestion[] suggestions) argument
/external/chromium_org/third_party/WebKit/Source/core/html/forms/
H A DColorChooserClient.h54 virtual Vector<ColorSuggestion> suggestions() const = 0;
/external/chromium_org/third_party/WebKit/public/web/
H A DWebDateTimeChooserParams.h50 // <datalist> option suggestions associated to the requester element. The
52 WebVector<WebDateTimeSuggestion> suggestions; member in struct:blink::WebDateTimeChooserParams

Completed in 558 milliseconds

123456