| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_UI_EXTENSIONS_SETTINGS_API_BUBBLE_HELPERS_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_SETTINGS_API_BUBBLE_HELPERS_H_ |
| 6 #define CHROME_BROWSER_UI_EXTENSIONS_SETTINGS_API_BUBBLE_HELPERS_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_SETTINGS_API_BUBBLE_HELPERS_H_ |
| 7 | 7 |
| 8 #include "components/omnibox/browser/autocomplete_match.h" | 8 #include "components/omnibox/browser/autocomplete_match.h" |
| 9 | 9 |
| 10 class Browser; | 10 class Browser; |
| 11 class Profile; | |
| 12 | 11 |
| 13 namespace content { | 12 namespace content { |
| 14 class WebContents; | 13 class WebContents; |
| 15 } | 14 } |
| 16 | 15 |
| 17 namespace extensions { | 16 namespace extensions { |
| 18 | 17 |
| 19 // Shows a bubble notifying the user that the homepage is controlled by an | 18 // 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 | 19 // extension. This bubble is shown only on the first use of the Home button |
| 21 // after the controlling extension takes effect. | 20 // after the controlling extension takes effect. |
| 22 void MaybeShowExtensionControlledHomeNotification(Browser* browser); | 21 void MaybeShowExtensionControlledHomeNotification(Browser* browser); |
| 23 | 22 |
| 24 // Shows a bubble notifying the user that the search engine is controlled by an | 23 // 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 | 24 // extension. This bubble is shown only on the first search after the |
| 26 // controlling extension takes effect. | 25 // controlling extension takes effect. |
| 27 void MaybeShowExtensionControlledSearchNotification( | 26 void MaybeShowExtensionControlledSearchNotification( |
| 28 content::WebContents* web_contents, | 27 content::WebContents* web_contents, |
| 29 AutocompleteMatch::Type match_type); | 28 AutocompleteMatch::Type match_type); |
| 30 | 29 |
| 31 // Shows a bubble notifying the user that the new tab page is controlled by an | 30 // Shows a bubble notifying the user that the new tab page is controlled by an |
| 32 // extension. This bubble is shown only the first time the new tab page is shown | 31 // extension. This bubble is shown only the first time the new tab page is shown |
| 33 // after the controlling extension takes effect. | 32 // after the controlling extension takes effect. |
| 34 void MaybeShowExtensionControlledNewTabPage( | 33 void MaybeShowExtensionControlledNewTabPage( |
| 35 Browser* browser, | 34 Browser* browser, |
| 36 content::WebContents* web_contents); | 35 content::WebContents* web_contents); |
| 37 | 36 |
| 38 } // namespace extensions | 37 } // namespace extensions |
| 39 | 38 |
| 40 #endif // CHROME_BROWSER_UI_EXTENSIONS_SETTINGS_API_BUBBLE_HELPERS_H_ | 39 #endif // CHROME_BROWSER_UI_EXTENSIONS_SETTINGS_API_BUBBLE_HELPERS_H_ |
| OLD | NEW |