rdevlin.cronin | 7138b37e | 2016-05-18 17:23:55 | [diff] [blame^] | 1 | // Copyright 2016 The Chromium Authors. All rights reserved. |
[email protected] | 94b8a51a | 2014-03-26 20:57:55 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
rdevlin.cronin | 7138b37e | 2016-05-18 17:23:55 | [diff] [blame^] | 5 | #ifndef CHROME_BROWSER_UI_EXTENSIONS_SETTINGS_API_BUBBLE_HELPERS_H_ |
| 6 | #define CHROME_BROWSER_UI_EXTENSIONS_SETTINGS_API_BUBBLE_HELPERS_H_ |
[email protected] | 94b8a51a | 2014-03-26 20:57:55 | [diff] [blame] | 7 | |
pkasting | da6dd84 | 2016-02-24 15:26:59 | [diff] [blame] | 8 | #include "components/omnibox/browser/autocomplete_match.h" |
| 9 | |
[email protected] | 94b8a51a | 2014-03-26 20:57:55 | [diff] [blame] | 10 | class Browser; |
| 11 | class Profile; |
| 12 | |
| 13 | namespace content { |
[email protected] | 94b8a51a | 2014-03-26 20:57:55 | [diff] [blame] | 14 | class WebContents; |
| 15 | } |
| 16 | |
| 17 | namespace extensions { |
| 18 | |
| 19 | // Shows a bubble notifying the user that the homepage is controlled by an |
| 20 | // extension. This bubble is shown only on the first use of the Home button |
| 21 | // after the controlling extension takes effect. |
| 22 | void MaybeShowExtensionControlledHomeNotification(Browser* browser); |
| 23 | |
| 24 | // Shows a bubble notifying the user that the search engine is controlled by an |
| 25 | // extension. This bubble is shown only on the first search after the |
| 26 | // controlling extension takes effect. |
| 27 | void MaybeShowExtensionControlledSearchNotification( |
| 28 | Profile* profile, |
| 29 | content::WebContents* web_contents, |
pkasting | da6dd84 | 2016-02-24 15:26:59 | [diff] [blame] | 30 | AutocompleteMatch::Type match_type); |
[email protected] | 94b8a51a | 2014-03-26 20:57:55 | [diff] [blame] | 31 | |
[email protected] | fbb597f | 2014-04-29 14:28:14 | [diff] [blame] | 32 | // Shows a bubble notifying the user that the new tab page is controlled by an |
| 33 | // extension. This bubble is shown only the first time the new tab page is shown |
| 34 | // after the controlling extension takes effect. |
| 35 | void MaybeShowExtensionControlledNewTabPage( |
| 36 | Browser* browser, |
| 37 | content::WebContents* web_contents); |
| 38 | |
[email protected] | 94b8a51a | 2014-03-26 20:57:55 | [diff] [blame] | 39 | } // namespace extensions |
| 40 | |
rdevlin.cronin | 7138b37e | 2016-05-18 17:23:55 | [diff] [blame^] | 41 | #endif // CHROME_BROWSER_UI_EXTENSIONS_SETTINGS_API_BUBBLE_HELPERS_H_ |