OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_H_ | |
7 | |
8 #include "base/bind.h" | |
9 | |
10 class Browser; | |
11 | |
12 namespace extensions { | |
13 | |
14 typedef enum { | |
15 SUSPICIOUS_EXTENSIONS = 0, | |
16 DEV_MODE_EXTENSIONS, | |
17 NUM_BUBBLE_TYPES | |
18 } ExtensionListType; | |
19 | |
20 // The interface between the SuspiciousExtensionBubble bubble and its | |
21 // controller. | |
22 class ExtensionMessageBubble { | |
23 public: | |
not at google - send to devlin
2013/12/04 17:25:13
nit: I find this block hard to distinguish between
| |
24 // Setup the callback for when the action button is clicked in the | |
25 // bubble. | |
26 virtual void OnActionButtonClicked(const base::Closure& callback) = 0; | |
27 // Setup the callback for when the dismiss button is clicked. | |
28 virtual void OnDismissButtonClicked(const base::Closure& callback) = 0; | |
29 // Setup the callback for when the link is clicked in the bubble. | |
30 virtual void OnLinkClicked(const base::Closure& callback) = 0; | |
31 // Instruct the bubble to appear. | |
32 virtual void Show() = 0; | |
33 }; | |
34 | |
35 } // namespace extensions | |
36 | |
37 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_H_ | |
OLD | NEW |