/external/chromium_org/chrome/browser/search/suggestions/ |
suggestions_store_unittest.cc | 5 #include "chrome/browser/search/suggestions/suggestions_store.h" 7 #include "chrome/browser/search/suggestions/proto/suggestions.pb.h" 11 namespace suggestions { namespace 19 SuggestionsProfile suggestions; local 20 ChromeSuggestion* suggestion = suggestions.add_suggestions(); 23 return suggestions; 30 EXPECT_EQ(expected.suggestions(i).url(), actual.suggestions(i).url()); 31 EXPECT_EQ(expected.suggestions(i).title(), actual.suggestions(i).title()) 46 const SuggestionsProfile suggestions = CreateTestSuggestions(); local [all...] |
suggestions_store.h | 9 #include "chrome/browser/search/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...] |
suggestions_store.cc | 5 #include "chrome/browser/search/suggestions/suggestions_store.h" 14 namespace suggestions { namespace 23 bool SuggestionsStore::LoadSuggestions(SuggestionsProfile* suggestions) { 24 DCHECK(suggestions); 29 suggestions->Clear(); 36 !suggestions->ParseFromString(suggestions_data)) { 37 VLOG(1) << "Suggestions data in profile pref is corrupt, clearing it."; 38 suggestions->Clear(); 46 bool SuggestionsStore::StoreSuggestions(const SuggestionsProfile& suggestions) { 48 if (!suggestions.SerializeToString(&suggestions_data)) return false [all...] |
suggestions_service_factory.h | 13 namespace suggestions { namespace 22 static suggestions::SuggestionsService* GetForProfile(Profile* profile); 43 } // namespace suggestions
|
/external/chromium_org/chrome/browser/resources/ntp4/ |
suggestions_page.css | 5 .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 .color-stripe [all...] |
/external/chromium_org/third_party/libaddressinput/chromium/cpp/test/ |
address_validator_test.cc | 242 std::vector<AddressData> suggestions; local 244 validator_->GetSuggestions(address, POSTAL_CODE, 1, &suggestions)); 245 ASSERT_EQ(1U, suggestions.size()); 246 EXPECT_EQ("CA", suggestions[0].administrative_area); 247 EXPECT_EQ("90291", suggestions[0].postal_code); 257 std::vector<AddressData> suggestions; local 259 validator_->GetSuggestions(address, POSTAL_CODE, 1, &suggestions)); 260 ASSERT_EQ(1U, suggestions.size()); 261 EXPECT_EQ("Dacun Township", suggestions[0].locality); 262 EXPECT_EQ("Changhua County", suggestions[0].administrative_area) 273 std::vector<AddressData> suggestions; local 288 std::vector<AddressData> suggestions; local 300 std::vector<AddressData> suggestions; local 315 std::vector<AddressData> suggestions; local 331 std::vector<AddressData> suggestions; local 346 std::vector<AddressData> suggestions; local 364 std::vector<AddressData> suggestions; local 376 std::vector<AddressData> suggestions; local 387 std::vector<AddressData> suggestions; local 399 std::vector<AddressData> suggestions; local 411 std::vector<AddressData> suggestions; local 423 std::vector<AddressData> suggestions; local 449 std::vector<AddressData> suggestions; local 464 std::vector<AddressData> suggestions; local 479 std::vector<AddressData> suggestions; local 494 std::vector<AddressData> suggestions; local 505 std::vector<AddressData> suggestions; local 517 std::vector<AddressData> suggestions; local 551 std::vector<AddressData> suggestions; local [all...] |
/external/chromium_org/third_party/libaddressinput/chromium/ |
preload_address_validator_unittest.cc | 262 std::vector<AddressData> suggestions; local 264 validator_->GetSuggestions(address, POSTAL_CODE, 1, &suggestions)); 265 ASSERT_EQ(1U, suggestions.size()); 266 EXPECT_EQ("CA", suggestions[0].administrative_area); 267 EXPECT_EQ("90291", suggestions[0].postal_code); 277 std::vector<AddressData> suggestions; local 279 validator_->GetSuggestions(address, POSTAL_CODE, 1, &suggestions)); 280 ASSERT_EQ(1U, suggestions.size()); 281 EXPECT_EQ("Dacun Township", suggestions[0].locality); 282 EXPECT_EQ("Changhua County", suggestions[0].administrative_area) 293 std::vector<AddressData> suggestions; local 308 std::vector<AddressData> suggestions; local 320 std::vector<AddressData> suggestions; local 335 std::vector<AddressData> suggestions; local 351 std::vector<AddressData> suggestions; local 366 std::vector<AddressData> suggestions; local 384 std::vector<AddressData> suggestions; local 396 std::vector<AddressData> suggestions; local 407 std::vector<AddressData> suggestions; local 419 std::vector<AddressData> suggestions; local 431 std::vector<AddressData> suggestions; local 443 std::vector<AddressData> suggestions; local 469 std::vector<AddressData> suggestions; local 484 std::vector<AddressData> suggestions; local 499 std::vector<AddressData> suggestions; local 514 std::vector<AddressData> suggestions; local 525 std::vector<AddressData> suggestions; local 537 std::vector<AddressData> suggestions; local 570 std::vector<AddressData> suggestions; local [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
DelayingSuggestionsAdapter.java | 21 import com.android.quicksearchbox.Suggestions; 28 * A {@link SuggestionsListAdapter} that doesn't expose the new suggestions 38 private Suggestions mPendingSuggestions; 52 public void setSuggestions(Suggestions suggestions) { 53 if (suggestions == null) { 58 if (shouldPublish(suggestions)) { 59 if (DBG) Log.d(TAG, "Publishing suggestions immediately: " + suggestions); 60 mDelayedAdapter.setSuggestions(suggestions); [all...] |
SuggestionsAdapterBase.java | 21 import com.android.quicksearchbox.Suggestions; 32 * Base class for suggestions adapters. The templated class A is the list adapter class. 45 private Suggestions mSuggestions; 85 public void setSuggestions(Suggestions suggestions) { 86 if (mSuggestions == suggestions) { 90 if (suggestions != null) { 91 suggestions.release(); 98 // TODO: delay the change if there are no suggestions for the currently visible tab. 103 mSuggestions = suggestions; [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/spellcheck/ |
AndroidSpellCheckerServiceTest.java | 37 final String[] suggestions = span.getSuggestions(); local 38 // For this test we consider "tgis" should yield at least 2 suggestions (at this moment 40 assertTrue(suggestions.length >= 2); 42 assertEquals("Test basic spell checking", "this", suggestions[0]); 57 final String[] suggestions = span.getSuggestions(); local 58 // For this test we consider "????" should yield at least 2 suggestions (at this moment 60 assertTrue(suggestions.length >= 2); 63 assertEquals("", "????", suggestions[0]); 77 final String[] suggestions = span.getSuggestions(); local 80 suggestions[0]) [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/ |
ColorChooserClient.h | 52 virtual Vector<ColorSuggestion> suggestions() const = 0;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
SuggestionStripViewAccessor.java | 17 package com.android.inputmethod.latin.suggestions;
|
/external/chromium_org/chrome/browser/resources/suggestions_internals/ |
suggestions_internals.css | 5 .suggestions-debug-table { 10 .suggestions-debug-table th { 14 .suggestions-debug-table td {
|
/external/chromium_org/components/web_contents_delegate_android/ |
color_chooser_android.cc | 21 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];
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/ |
ColorPickerSimple.java | 57 * 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, 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...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SuggestionsProviderImpl.java | 28 * Suggestions provider implementation. 61 public Suggestions getSuggestions(String query, Source sourceToQuery) { 63 final Suggestions suggestions = new Suggestions(query, sourceToQuery); local 68 receiver = new SuggestionCursorReceiver(suggestions); 71 suggestions.done(); 78 return suggestions; 93 private final Suggestions mSuggestions; 95 public SuggestionCursorReceiver(Suggestions suggestions) [all...] |
/external/chromium_org/chrome/browser/spellchecker/ |
misspelling.h | 25 // misspelling.suggestions = 37 const std::vector<base::string16>& suggestions, 59 // Spelling suggestions. 60 std::vector<base::string16> suggestions; member in class:Misspelling
|
misspelling.cc | 17 // 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));
|
/external/chromium_org/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ |
ColorChooserAndroid.java | 26 Context context, int initialColor, ColorSuggestion[] suggestions) { 36 mDialog = new ColorPickerDialog(context, listener, initialColor, suggestions); 53 ColorSuggestion[] suggestions) { 55 contentViewCore.getContext(), initialColor, suggestions);
|
/external/chromium_org/third_party/WebKit/public/web/ |
WebDateTimeChooserParams.h | 50 // <datalist> option suggestions associated to the requester element. The 52 WebVector<WebDateTimeSuggestion> suggestions; member in struct:blink::WebDateTimeChooserParams
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/autofill/ |
AutofillPopup.java | 22 * The Autofill suggestion popup that lists relevant suggestions. 75 * Filters the Autofill suggestions to the ones that we support and shows the popup. 76 * @param suggestions Autofill suggestion data. 78 public void filterAndShow(AutofillSuggestion[] suggestions) { 79 mSuggestions = new ArrayList<AutofillSuggestion>(Arrays.asList(suggestions)); 83 for (int i = 0; i < suggestions.length; i++) { 84 int itemId = suggestions[i].mUniqueId; 87 cleanedData.add(suggestions[i]);
|
/frameworks/base/core/java/android/view/textservice/ |
SuggestionsInfo.java | 25 * This class contains a metadata of suggestions from the text service 31 * Flag of the attributes of the suggestions that can be obtained by 37 * Flag of the attributes of the suggestions that can be obtained by 43 * Flag of the attributes of the suggestions that can be obtained by 45 * the result suggestions include highly recommended ones. 57 * @param suggestions from the text service 59 public SuggestionsInfo(int suggestionsAttributes, String[] suggestions) { 60 this(suggestionsAttributes, suggestions, 0, 0); 66 * @param suggestions from the text service 71 int suggestionsAttributes, String[] suggestions, int cookie, int sequence) [all...] |
/external/chromium_org/chrome/renderer/spellchecker/ |
hunspell_engine.cc | 26 // Maximum length of words we provide suggestions for. 80 // offer suggestions on them, either, there's no point in flagging them to 111 char** suggestions = NULL; local 113 hunspell_->suggest(&suggestions, wrong_word_utf8.c_str()); 118 optional_suggestions->push_back(base::UTF8ToUTF16(suggestions[i])); 119 free(suggestions[i]); 121 if (suggestions != NULL) 122 free(suggestions);
|
/external/chromium_org/chrome/browser/android/ |
most_visited_sites.h | 15 #include "chrome/browser/search/suggestions/proto/suggestions.pb.h" 19 namespace suggestions { namespace 70 const suggestions::SuggestionsProfile& suggestions_profile); 79 suggestions::SuggestionsService* suggestions_service, 114 // Copy of the server suggestions (if enabled). Used for logging. 115 suggestions::SuggestionsProfile server_suggestions_;
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
DateTimeChooserAndroid.java | 42 DateTimeSuggestion[] suggestions) { 43 mInputDialogContainer.showDialog(dialogType, dialogValue, min, max, step, suggestions); 52 DateTimeSuggestion[] suggestions) { 57 chooser.showDialog(dialogType, dialogValue, min, max, step, suggestions);
|