diff options
Diffstat (limited to 'chrome/browser/extensions/extension_omnibox_api.h')
-rw-r--r-- | chrome/browser/extensions/extension_omnibox_api.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_omnibox_api.h b/chrome/browser/extensions/extension_omnibox_api.h index 9d0dc99..98758cb 100644 --- a/chrome/browser/extensions/extension_omnibox_api.h +++ b/chrome/browser/extensions/extension_omnibox_api.h @@ -49,6 +49,10 @@ struct ExtensionOmniboxSuggestion { ExtensionOmniboxSuggestion(); ~ExtensionOmniboxSuggestion(); + // Converts a list of style ranges from the extension into the format expected + // by the autocomplete system. + bool ReadStylesFromValue(const ListValue& value); + // The text that gets put in the edit box. string16 content; @@ -57,6 +61,11 @@ struct ExtensionOmniboxSuggestion { // Contains style ranges for the description. ACMatchClassifications description_styles; + + private: + // Helper function to add the given style to the running list of + // |description_styles|. + void InsertNewStyle(int type, size_t offset, size_t length); }; struct ExtensionOmniboxSuggestions { |