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_THEME_INSTALL_BUBBLE_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_THEME_INSTALL_BUBBLE_VIEW_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_THEME_INSTALL_BUBBLE_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_THEME_INSTALL_BUBBLE_VIEW_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "content/common/notification_observer.h" | 12 #include "content/common/notification_observer.h" |
13 #include "content/common/notification_registrar.h" | 13 #include "content/common/notification_registrar.h" |
14 #include "ui/base/gtk/gtk_signal.h" | 14 #include "ui/base/gtk/gtk_signal.h" |
15 | 15 |
16 class ThemeInstallBubbleViewGtk : public NotificationObserver { | 16 class ThemeInstallBubbleViewGtk : public NotificationObserver { |
17 public: | 17 public: |
18 static void Show(GtkWindow* parent); | 18 static void Show(GtkWindow* parent); |
19 | 19 |
20 // NotificationObserver implementation. | 20 // NotificationObserver implementation. |
21 virtual void Observe(NotificationType type, | 21 virtual void Observe(int type, |
22 const NotificationSource& source, | 22 const NotificationSource& source, |
23 const NotificationDetails& details); | 23 const NotificationDetails& details); |
24 | 24 |
25 private: | 25 private: |
26 explicit ThemeInstallBubbleViewGtk(GtkWidget* parent); | 26 explicit ThemeInstallBubbleViewGtk(GtkWidget* parent); |
27 | 27 |
28 virtual ~ThemeInstallBubbleViewGtk(); | 28 virtual ~ThemeInstallBubbleViewGtk(); |
29 | 29 |
30 void increment_num_loading() { num_loads_extant_++; } | 30 void increment_num_loading() { num_loads_extant_++; } |
31 | 31 |
(...skipping 21 matching lines...) Expand all Loading... |
53 | 53 |
54 NotificationRegistrar registrar_; | 54 NotificationRegistrar registrar_; |
55 | 55 |
56 // Our one instance. We don't allow more than one to exist at a time. | 56 // Our one instance. We don't allow more than one to exist at a time. |
57 static ThemeInstallBubbleViewGtk* instance_; | 57 static ThemeInstallBubbleViewGtk* instance_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(ThemeInstallBubbleViewGtk); | 59 DISALLOW_COPY_AND_ASSIGN(ThemeInstallBubbleViewGtk); |
60 }; | 60 }; |
61 | 61 |
62 #endif // CHROME_BROWSER_UI_GTK_THEME_INSTALL_BUBBLE_VIEW_GTK_H_ | 62 #endif // CHROME_BROWSER_UI_GTK_THEME_INSTALL_BUBBLE_VIEW_GTK_H_ |
OLD | NEW |