| 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_GTK_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_GTK_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // BubbleDelegateGtk: | 74 // BubbleDelegateGtk: |
| 75 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; | 75 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; |
| 76 | 76 |
| 77 // Calls Release() internally. Called internally via PostTask. | 77 // Calls Release() internally. Called internally via PostTask. |
| 78 void Close(); | 78 void Close(); |
| 79 | 79 |
| 80 static void OnButtonClick(GtkWidget* button, | 80 static void OnButtonClick(GtkWidget* button, |
| 81 ExtensionInstalledBubbleGtk* toolbar); | 81 ExtensionInstalledBubbleGtk* toolbar); |
| 82 | 82 |
| 83 // Link button callbacks. |
| 84 CHROMEGTK_CALLBACK_0(ExtensionInstalledBubbleGtk, void, OnLinkClicked); |
| 85 |
| 83 const extensions::Extension* extension_; | 86 const extensions::Extension* extension_; |
| 84 Browser* browser_; | 87 Browser* browser_; |
| 85 SkBitmap icon_; | 88 SkBitmap icon_; |
| 86 content::NotificationRegistrar registrar_; | 89 content::NotificationRegistrar registrar_; |
| 87 BubbleType type_; | 90 BubbleType type_; |
| 88 | 91 |
| 89 // The number of times to retry showing the bubble if the browser action | 92 // The number of times to retry showing the bubble if the browser action |
| 90 // toolbar is animating. | 93 // toolbar is animating. |
| 91 int animation_wait_retries_; | 94 int animation_wait_retries_; |
| 92 | 95 |
| 93 // The 'x' that the user can press to hide the bubble shelf. | 96 // The 'x' that the user can press to hide the bubble shelf. |
| 94 scoped_ptr<CustomDrawButton> close_button_; | 97 scoped_ptr<CustomDrawButton> close_button_; |
| 95 | 98 |
| 96 BubbleGtk* bubble_; | 99 BubbleGtk* bubble_; |
| 97 | 100 |
| 98 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubbleGtk); | 101 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubbleGtk); |
| 99 }; | 102 }; |
| 100 | 103 |
| 101 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_GTK_H_ | 104 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_GTK_H_ |
| OLD | NEW |