blob: 0d295331456023a5cd35959339e7413be5b79c99 [file] [log] [blame]
rdevlin.cronin7138b37e2016-05-18 17:23:551// Copyright 2016 The Chromium Authors. All rights reserved.
[email protected]94b8a51a2014-03-26 20:57:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
rdevlin.cronin7138b37e2016-05-18 17:23:555#ifndef CHROME_BROWSER_UI_EXTENSIONS_SETTINGS_API_BUBBLE_HELPERS_H_
6#define CHROME_BROWSER_UI_EXTENSIONS_SETTINGS_API_BUBBLE_HELPERS_H_
[email protected]94b8a51a2014-03-26 20:57:557
pkastingda6dd842016-02-24 15:26:598#include "components/omnibox/browser/autocomplete_match.h"
9
[email protected]94b8a51a2014-03-26 20:57:5510class Browser;
[email protected]94b8a51a2014-03-26 20:57:5511
12namespace content {
[email protected]94b8a51a2014-03-26 20:57:5513class WebContents;
14}
15
16namespace extensions {
17
Devlin Cronin5739bf02020-05-15 00:38:3818// Sets whether the NTP post-install UI is enabled for testing purposes.
19// TODO(devlin): This would be cooler as a base::AutoReset<>.
20void SetNtpPostInstallUiEnabledForTesting(bool enabled);
rdevlin.cronin81d35162017-05-31 15:44:4821
[email protected]94b8a51a2014-03-26 20:57:5522// Shows a bubble notifying the user that the homepage is controlled by an
23// extension. This bubble is shown only on the first use of the Home button
24// after the controlling extension takes effect.
25void MaybeShowExtensionControlledHomeNotification(Browser* browser);
26
27// Shows a bubble notifying the user that the search engine is controlled by an
28// extension. This bubble is shown only on the first search after the
29// controlling extension takes effect.
30void MaybeShowExtensionControlledSearchNotification(
[email protected]94b8a51a2014-03-26 20:57:5531 content::WebContents* web_contents,
pkastingda6dd842016-02-24 15:26:5932 AutocompleteMatch::Type match_type);
[email protected]94b8a51a2014-03-26 20:57:5533
[email protected]fbb597f2014-04-29 14:28:1434// Shows a bubble notifying the user that the new tab page is controlled by an
35// extension. This bubble is shown only the first time the new tab page is shown
36// after the controlling extension takes effect.
37void MaybeShowExtensionControlledNewTabPage(
38 Browser* browser,
39 content::WebContents* web_contents);
40
[email protected]94b8a51a2014-03-26 20:57:5541} // namespace extensions
42
rdevlin.cronin7138b37e2016-05-18 17:23:5543#endif // CHROME_BROWSER_UI_EXTENSIONS_SETTINGS_API_BUBBLE_HELPERS_H_