settings_api_bubble_helper_views.h revision 5c02ac1a9c1b504631c0a3d2b6e737b5d738bae1
15f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Copyright (c) 2014 The Chromium Authors. All rights reserved.
25f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// found in the LICENSE file.
45f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
55f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)#ifndef CHROME_BROWSER_UI_VIEWS_SETTINGS_API_BUBBLE_HELPER_VIEWS_H_
65f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)#define CHROME_BROWSER_UI_VIEWS_SETTINGS_API_BUBBLE_HELPER_VIEWS_H_
75f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
85f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)struct AutocompleteMatch;
95f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)class Browser;
105f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)class Profile;
115f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
125f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)namespace content {
135f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)class WebContents;
145f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)}
155f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
165f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)namespace extensions {
175f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
185f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Shows a bubble notifying the user that the homepage is controlled by an
195f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// extension. This bubble is shown only on the first use of the Home button
205f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// after the controlling extension takes effect.
215f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)void MaybeShowExtensionControlledHomeNotification(Browser* browser);
225f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
235f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Shows a bubble notifying the user that the search engine is controlled by an
245f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// extension. This bubble is shown only on the first search after the
255f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// controlling extension takes effect.
265f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)void MaybeShowExtensionControlledSearchNotification(
275f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)    Profile* profile,
285f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)    content::WebContents* web_contents,
295f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)    const AutocompleteMatch& match);
305f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
315f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Shows a bubble notifying the user that the new tab page is controlled by an
325f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// extension. This bubble is shown only the first time the new tab page is shown
335f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// after the controlling extension takes effect.
345f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)void MaybeShowExtensionControlledNewTabPage(
355f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)    Browser* browser,
365f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)    content::WebContents* web_contents);
375f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
385f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)}  // namespace extensions
395f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
405f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)#endif  // CHROME_BROWSER_UI_VIEWS_SETTINGS_API_BUBBLE_HELPER_VIEWS_H_
415f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)