X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fomnibox%2Fomnibox_log.h;h=3b5d2eb674a0275e275b2bbb01adb8eaf489bfd7;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=f3b480963a6e3bb2f893704f446c4e1d200120e9;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/omnibox/omnibox_log.h b/src/chrome/browser/omnibox/omnibox_log.h index f3b4809..3b5d2eb 100644 --- a/src/chrome/browser/omnibox/omnibox_log.h +++ b/src/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.