diff options
Diffstat (limited to 'chrome/browser/omnibox/omnibox_log.h')
-rw-r--r-- | chrome/browser/omnibox/omnibox_log.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/chrome/browser/omnibox/omnibox_log.h b/chrome/browser/omnibox/omnibox_log.h index f3b4809..3b5d2eb 100644 --- a/chrome/browser/omnibox/omnibox_log.h +++ b/chrome/browser/omnibox/omnibox_log.h @@ -22,7 +22,9 @@ struct OmniboxLog { const base::string16& text, bool just_deleted_text, AutocompleteInput::Type input_type, + bool is_popup_open, size_t selected_index, + bool is_paste_and_go, SessionID::id_type tab_id, AutocompleteInput::PageClassification current_page_classification, base::TimeDelta elapsed_time_since_user_first_modified_omnibox, @@ -41,9 +43,17 @@ struct OmniboxLog { // The detected type of the user's input. AutocompleteInput::Type input_type; - // Selected index (if selected) or -1 (OmniboxPopupModel::kNoMatch). + // True if the popup is open. + bool is_popup_open; + + // The index of the item selected in the dropdown list. Set to 0 if the + // dropdown is closed (and therefore there is only one implicit suggestion). size_t selected_index; + // True if this is a paste-and-search or paste-and-go omnibox interaction. + // (The codebase refers to both these types as paste-and-go.) + bool is_paste_and_go; + // ID of the tab the selected autocomplete suggestion was opened in. // Set to -1 if we haven't yet determined the destination tab. SessionID::id_type tab_id; @@ -69,7 +79,9 @@ struct OmniboxLog { // The amount of time since the last time the default (i.e., inline) // match changed. This will certainly be less than - // elapsed_time_since_user_first_modified_omnibox. + // elapsed_time_since_user_first_modified_omnibox. Measuring this + // may be inappropriate in some cases (e.g., if editing is not in + // progress). In such cases, it's set to -1 milliseconds. base::TimeDelta elapsed_time_since_last_change_to_default_match; // Result set. |