Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Side by Side Diff: chrome/browser/ui/gtk/theme_install_bubble_view_gtk.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc ('k') | chrome/browser/ui/gtk/theme_install_bubble_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698