| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_LOG_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_LOG_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_LOG_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_LOG_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // in the omnibox. If at some point after modifying the text, the | 68 // in the omnibox. If at some point after modifying the text, the |
| 69 // user reverts the modifications (thus seeing the current web | 69 // user reverts the modifications (thus seeing the current web |
| 70 // page's URL again), then writes in the omnibox again, this time | 70 // page's URL again), then writes in the omnibox again, this time |
| 71 // delta should be computed starting from the second series of | 71 // delta should be computed starting from the second series of |
| 72 // modifications. If we somehow skipped the logic to record | 72 // modifications. If we somehow skipped the logic to record |
| 73 // the time the user began typing (this should only happen in | 73 // the time the user began typing (this should only happen in |
| 74 // unit tests), this elapsed time is set to -1 milliseconds. | 74 // unit tests), this elapsed time is set to -1 milliseconds. |
| 75 base::TimeDelta elapsed_time_since_user_first_modified_omnibox; | 75 base::TimeDelta elapsed_time_since_user_first_modified_omnibox; |
| 76 | 76 |
| 77 // The number of extra characters the user would have to manually type | 77 // The number of extra characters the user would have to manually type |
| 78 // if she/he were not given the opportunity to select this match. Only | 78 // if they were not given the opportunity to select this match. Only |
| 79 // set for matches that are allowed to be the default match (i.e., are | 79 // set for matches that are allowed to be the default match (i.e., are |
| 80 // inlineable). Set to base::string16::npos if the match is not allowed | 80 // inlineable). Set to base::string16::npos if the match is not allowed |
| 81 // to be the default match. | 81 // to be the default match. |
| 82 size_t completed_length; | 82 size_t completed_length; |
| 83 | 83 |
| 84 // The amount of time since the last time the default (i.e., inline) | 84 // The amount of time since the last time the default (i.e., inline) |
| 85 // match changed. This will certainly be less than | 85 // match changed. This will certainly be less than |
| 86 // elapsed_time_since_user_first_modified_omnibox. Measuring this | 86 // elapsed_time_since_user_first_modified_omnibox. Measuring this |
| 87 // may be inappropriate in some cases (e.g., if editing is not in | 87 // may be inappropriate in some cases (e.g., if editing is not in |
| 88 // progress). In such cases, it's set to -1 milliseconds. | 88 // progress). In such cases, it's set to -1 milliseconds. |
| 89 base::TimeDelta elapsed_time_since_last_change_to_default_match; | 89 base::TimeDelta elapsed_time_since_last_change_to_default_match; |
| 90 | 90 |
| 91 // Result set. | 91 // Result set. |
| 92 const AutocompleteResult& result; | 92 const AutocompleteResult& result; |
| 93 | 93 |
| 94 // Diagnostic information from providers. See | 94 // Diagnostic information from providers. See |
| 95 // AutocompleteController::AddProvidersInfo() and | 95 // AutocompleteController::AddProvidersInfo() and |
| 96 // AutocompleteProvider::AddProviderInfo() above. | 96 // AutocompleteProvider::AddProviderInfo() above. |
| 97 ProvidersInfo providers_info; | 97 ProvidersInfo providers_info; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_LOG_H_ | 100 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_LOG_H_ |
| OLD | NEW |