Home
last modified time | relevance | path

Searched refs:caret_position (Results 1 – 4 of 4) sorted by relevance

/external/chromium/chrome/browser/autocomplete/
Dautocomplete_edit.cc979 size_t caret_position) { in ShouldAllowExactKeywordMatch() argument
981 if (paste_state_ != NONE || caret_position < 2 || in ShouldAllowExactKeywordMatch()
982 new_user_text.length() <= caret_position || in ShouldAllowExactKeywordMatch()
983 old_user_text.length() < caret_position || in ShouldAllowExactKeywordMatch()
984 !IsSpaceCharForAcceptingKeyword(new_user_text[caret_position - 1]) || in ShouldAllowExactKeywordMatch()
985 IsSpaceCharForAcceptingKeyword(new_user_text[caret_position - 2]) || in ShouldAllowExactKeywordMatch()
986 new_user_text.compare(0, caret_position - 1, old_user_text, in ShouldAllowExactKeywordMatch()
987 0, caret_position - 1) || in ShouldAllowExactKeywordMatch()
988 !new_user_text.compare(caret_position - 1, in ShouldAllowExactKeywordMatch()
989 new_user_text.length() - caret_position + 1, in ShouldAllowExactKeywordMatch()
[all …]
Dautocomplete_edit.h434 size_t caret_position);
/external/chromium_org/chrome/browser/ui/omnibox/
Domnibox_edit_model.cc1360 size_t caret_position) const { in CreatedKeywordSearchByInsertingSpaceInMiddle()
1361 DCHECK_GE(new_text.length(), caret_position); in CreatedKeywordSearchByInsertingSpaceInMiddle()
1364 if ((paste_state_ != NONE) || (caret_position < 2) || in CreatedKeywordSearchByInsertingSpaceInMiddle()
1365 (old_text.length() < caret_position) || in CreatedKeywordSearchByInsertingSpaceInMiddle()
1366 (new_text.length() == caret_position)) in CreatedKeywordSearchByInsertingSpaceInMiddle()
1368 size_t space_position = caret_position - 1; in CreatedKeywordSearchByInsertingSpaceInMiddle()
Domnibox_edit_model.h406 size_t caret_position) const;