Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: chrome/browser/ui/extensions/extension_toolbar_icon_surfacing_bubble_delegate.h

Issue 1086973004: [Extensions Mac] Implement developer mode warning on mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avi's Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_TOOLBAR_ICON_SURFACING_BUBBLE_DEL EGATE_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_TOOLBAR_ICON_SURFACING_BUBBLE_DEL EGATE_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/ui/toolbar/toolbar_actions_bar_bubble_delegate.h"
10
11 class Profile;
12
13 // The delegate for the bubble to briefly educate users about the toolbar
14 // redesign.
15 class ExtensionToolbarIconSurfacingBubbleDelegate
16 : public ToolbarActionsBarBubbleDelegate {
17 public:
18 explicit ExtensionToolbarIconSurfacingBubbleDelegate(Profile* profile);
19 ~ExtensionToolbarIconSurfacingBubbleDelegate() override;
20
21 // Returns true if the bubble should be shown for the given |profile|.
22 static bool ShouldShowForProfile(Profile* profile);
23
24 private:
25 // ToolbarActionsBarBubbleDelegate:
26 base::string16 GetHeadingText() override;
27 base::string16 GetBodyText() override;
28 base::string16 GetActionButtonText() override;
29 base::string16 GetDismissButtonText() override;
30 base::string16 GetLearnMoreButtonText() override;
31 void OnBubbleShown() override;
32 void OnBubbleClosed(CloseAction action) override;
33
34 Profile* profile_;
35
36 DISALLOW_COPY_AND_ASSIGN(ExtensionToolbarIconSurfacingBubbleDelegate);
37 };
38
39 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_TOOLBAR_ICON_SURFACING_BUBBLE_ DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/OWNERS ('k') | chrome/browser/ui/extensions/extension_toolbar_icon_surfacing_bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698