OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "chrome/browser/ui/views/bubble/bubble.h" | 10 #include "chrome/browser/ui/views/bubble/bubble.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Private ctor. Registers a listener for EXTENSION_LOADED. | 54 // Private ctor. Registers a listener for EXTENSION_LOADED. |
55 ExtensionInstalledBubble( | 55 ExtensionInstalledBubble( |
56 const Extension* extension, Browser *browser, const SkBitmap& icon); | 56 const Extension* extension, Browser *browser, const SkBitmap& icon); |
57 | 57 |
58 virtual ~ExtensionInstalledBubble(); | 58 virtual ~ExtensionInstalledBubble(); |
59 | 59 |
60 // Shows the bubble. Called internally via PostTask. | 60 // Shows the bubble. Called internally via PostTask. |
61 void ShowInternal(); | 61 void ShowInternal(); |
62 | 62 |
63 // NotificationObserver | 63 // NotificationObserver |
64 virtual void Observe(NotificationType type, | 64 virtual void Observe(int type, |
65 const NotificationSource& source, | 65 const NotificationSource& source, |
66 const NotificationDetails& details); | 66 const NotificationDetails& details); |
67 | 67 |
68 // BubbleDelegate | 68 // BubbleDelegate |
69 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape); | 69 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape); |
70 virtual bool CloseOnEscape(); | 70 virtual bool CloseOnEscape(); |
71 virtual bool FadeInOnShow(); | 71 virtual bool FadeInOnShow(); |
72 | 72 |
73 const Extension* extension_; | 73 const Extension* extension_; |
74 Browser* browser_; | 74 Browser* browser_; |
75 SkBitmap icon_; | 75 SkBitmap icon_; |
76 NotificationRegistrar registrar_; | 76 NotificationRegistrar registrar_; |
77 InstalledBubbleContent* bubble_content_; | 77 InstalledBubbleContent* bubble_content_; |
78 BubbleType type_; | 78 BubbleType type_; |
79 | 79 |
80 // How many times we've deferred due to animations being in progress. | 80 // How many times we've deferred due to animations being in progress. |
81 int animation_wait_retries_; | 81 int animation_wait_retries_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubble); | 83 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubble); |
84 }; | 84 }; |
85 | 85 |
86 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_ | 86 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_ |
OLD | NEW |