Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1201)

Unified Diff: chrome/browser/extensions/api/omnibox/omnibox_api.h

Issue 12314164: Modified Omnibox extension api to use JSON Schema Compiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Devlin's requests Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/omnibox/omnibox_api.h
diff --git a/chrome/browser/extensions/api/omnibox/omnibox_api.h b/chrome/browser/extensions/api/omnibox/omnibox_api.h
index 5c05302d739b94e3507a6b67cd8c04236b2839aa..4fd392c3d404946f0a0ef2ecf9d1a3a512bd075f 100644
--- a/chrome/browser/extensions/api/omnibox/omnibox_api.h
+++ b/chrome/browser/extensions/api/omnibox/omnibox_api.h
@@ -15,6 +15,7 @@
#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/extensions/extension_function.h"
#include "chrome/browser/extensions/extension_icon_manager.h"
+#include "chrome/common/extensions/api/omnibox.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -151,6 +152,11 @@ struct ExtensionOmniboxSuggestion {
// default suggestions.
bool Populate(const base::DictionaryValue& value, bool require_content);
+ // Populate a suggestion value from a Suggestion generated by the JSON schema
+ // compiler (which will only set the description).
+ bool PopulateFromDefaultSuggestion(
+ const api::omnibox::SetDefaultSuggestion::Params::Suggestion& suggestion);
+
// Converts a list of style ranges from the extension into the format expected
// by the autocomplete system.
bool ReadStylesFromValue(const base::ListValue& value);

Powered by Google App Engine
This is Rietveld 408576698