| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_GTK_EXTENSION_INSTALLED_BUBBLE_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_EXTENSION_INSTALLED_BUBBLE_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_EXTENSION_INSTALLED_BUBBLE_GTK_H_ | 6 #define CHROME_BROWSER_GTK_EXTENSION_INSTALLED_BUBBLE_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // icon of the extension. | 47 // icon of the extension. |
| 48 static void Show(Extension *extension, Browser *browser, SkBitmap icon); | 48 static void Show(Extension *extension, Browser *browser, SkBitmap icon); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 friend class base::RefCountedThreadSafe<ExtensionInstalledBubbleGtk>; | 51 friend class base::RefCountedThreadSafe<ExtensionInstalledBubbleGtk>; |
| 52 | 52 |
| 53 // Private ctor. Registers a listener for EXTENSION_LOADED. | 53 // Private ctor. Registers a listener for EXTENSION_LOADED. |
| 54 ExtensionInstalledBubbleGtk(Extension *extension, Browser *browser, | 54 ExtensionInstalledBubbleGtk(Extension *extension, Browser *browser, |
| 55 SkBitmap icon); | 55 SkBitmap icon); |
| 56 | 56 |
| 57 ~ExtensionInstalledBubbleGtk() {} | 57 virtual ~ExtensionInstalledBubbleGtk(); |
| 58 | 58 |
| 59 // Shows the bubble. Called internally via PostTask. | 59 // Shows the bubble. Called internally via PostTask. |
| 60 void ShowInternal(); | 60 void ShowInternal(); |
| 61 | 61 |
| 62 // NotificationObserver | 62 // NotificationObserver |
| 63 virtual void Observe(NotificationType type, | 63 virtual void Observe(NotificationType type, |
| 64 const NotificationSource& source, | 64 const NotificationSource& source, |
| 65 const NotificationDetails& details); | 65 const NotificationDetails& details); |
| 66 | 66 |
| 67 // InfoBubbleDelegate | 67 // InfoBubbleDelegate |
| (...skipping 18 matching lines...) Expand all Loading... |
| 86 | 86 |
| 87 // The 'x' that the user can press to hide the info bubble shelf. | 87 // The 'x' that the user can press to hide the info bubble shelf. |
| 88 scoped_ptr<CustomDrawButton> close_button_; | 88 scoped_ptr<CustomDrawButton> close_button_; |
| 89 | 89 |
| 90 InfoBubbleGtk* info_bubble_; | 90 InfoBubbleGtk* info_bubble_; |
| 91 | 91 |
| 92 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubbleGtk); | 92 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubbleGtk); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 #endif // CHROME_BROWSER_GTK_EXTENSION_INSTALLED_BUBBLE_GTK_H_ | 95 #endif // CHROME_BROWSER_GTK_EXTENSION_INSTALLED_BUBBLE_GTK_H_ |
| OLD | NEW |