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

Side by Side Diff: chrome/browser/extensions/extension_message_bubble.h

Issue 1087713002: [Reland] [Extensions] Make extension message bubble factory platform-abstract (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finnur'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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 9
10 class Browser; 10 class Browser;
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 // The interface between the SuspiciousExtensionBubble bubble and its 14 // The interface between the SuspiciousExtensionBubble bubble and its
15 // controller. 15 // controller.
16 class ExtensionMessageBubble { 16 class ExtensionMessageBubble {
17 public: 17 public:
18 // Setup the callback for when the action button is clicked in the
19 // bubble.
20 virtual void OnActionButtonClicked(const base::Closure& callback) = 0;
21
22 // Setup the callback for when the dismiss button is clicked.
23 virtual void OnDismissButtonClicked(const base::Closure& callback) = 0;
24
25 // Setup the callback for when the link is clicked in the bubble.
26 virtual void OnLinkClicked(const base::Closure& callback) = 0;
27
28 // Instruct the bubble to appear. 18 // Instruct the bubble to appear.
29 virtual void Show() = 0; 19 virtual void Show() = 0;
30 }; 20 };
31 21
32 } // namespace extensions 22 } // namespace extensions
33 23
34 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_H_ 24 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698