OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 static BrowserContextKeyedAPIFactory<OmniboxAPI>* GetFactoryInstance(); | 93 static BrowserContextKeyedAPIFactory<OmniboxAPI>* GetFactoryInstance(); |
94 | 94 |
95 // Convenience method to get the OmniboxAPI for a profile. | 95 // Convenience method to get the OmniboxAPI for a profile. |
96 static OmniboxAPI* Get(content::BrowserContext* context); | 96 static OmniboxAPI* Get(content::BrowserContext* context); |
97 | 97 |
98 // content::NotificationObserver implementation. | 98 // content::NotificationObserver implementation. |
99 virtual void Observe(int type, | 99 virtual void Observe(int type, |
100 const content::NotificationSource& source, | 100 const content::NotificationSource& source, |
101 const content::NotificationDetails& details) OVERRIDE; | 101 const content::NotificationDetails& details) OVERRIDE; |
102 | 102 |
103 // BrowserContextKeyedService implementation. | 103 // KeyedService implementation. |
104 virtual void Shutdown() OVERRIDE; | 104 virtual void Shutdown() OVERRIDE; |
105 | 105 |
106 // Returns the icon to display in the omnibox for the given extension. | 106 // Returns the icon to display in the omnibox for the given extension. |
107 gfx::Image GetOmniboxIcon(const std::string& extension_id); | 107 gfx::Image GetOmniboxIcon(const std::string& extension_id); |
108 | 108 |
109 // Returns the icon to display in the omnibox popup window for the given | 109 // Returns the icon to display in the omnibox popup window for the given |
110 // extension. | 110 // extension. |
111 gfx::Image GetOmniboxPopupIcon(const std::string& extension_id); | 111 gfx::Image GetOmniboxPopupIcon(const std::string& extension_id); |
112 | 112 |
113 private: | 113 private: |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 AutocompleteMatch* match); | 166 AutocompleteMatch* match); |
167 | 167 |
168 // This function converts style information populated by the JSON schema | 168 // This function converts style information populated by the JSON schema |
169 // // compiler into an ACMatchClassifications object. | 169 // // compiler into an ACMatchClassifications object. |
170 ACMatchClassifications StyleTypesToACMatchClassifications( | 170 ACMatchClassifications StyleTypesToACMatchClassifications( |
171 const api::omnibox::SuggestResult &suggestion); | 171 const api::omnibox::SuggestResult &suggestion); |
172 | 172 |
173 } // namespace extensions | 173 } // namespace extensions |
174 | 174 |
175 #endif // CHROME_BROWSER_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_ | 175 #endif // CHROME_BROWSER_EXTENSIONS_API_OMNIBOX_OMNIBOX_API_H_ |
OLD | NEW |