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

Side by Side Diff: chrome/browser/ui/gtk/extensions/extension_installed_bubble_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_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 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Private ctor. Registers a listener for EXTENSION_LOADED. 57 // Private ctor. Registers a listener for EXTENSION_LOADED.
58 ExtensionInstalledBubbleGtk(const Extension* extension, Browser *browser, 58 ExtensionInstalledBubbleGtk(const Extension* extension, Browser *browser,
59 const SkBitmap& icon); 59 const SkBitmap& icon);
60 60
61 virtual ~ExtensionInstalledBubbleGtk(); 61 virtual ~ExtensionInstalledBubbleGtk();
62 62
63 // Shows the bubble. Called internally via PostTask. 63 // Shows the bubble. Called internally via PostTask.
64 void ShowInternal(); 64 void ShowInternal();
65 65
66 // NotificationObserver: 66 // NotificationObserver:
67 virtual void Observe(NotificationType type, 67 virtual void Observe(int type,
68 const NotificationSource& source, 68 const NotificationSource& source,
69 const NotificationDetails& details) OVERRIDE; 69 const NotificationDetails& details) OVERRIDE;
70 70
71 // BubbleDelegateGtk: 71 // BubbleDelegateGtk:
72 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; 72 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE;
73 73
74 // Calls Release() internally. Called internally via PostTask. 74 // Calls Release() internally. Called internally via PostTask.
75 void Close(); 75 void Close();
76 76
77 static void OnButtonClick(GtkWidget* button, 77 static void OnButtonClick(GtkWidget* button,
(...skipping 11 matching lines...) Expand all
89 89
90 // The 'x' that the user can press to hide the bubble shelf. 90 // The 'x' that the user can press to hide the bubble shelf.
91 scoped_ptr<CustomDrawButton> close_button_; 91 scoped_ptr<CustomDrawButton> close_button_;
92 92
93 BubbleGtk* bubble_; 93 BubbleGtk* bubble_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubbleGtk); 95 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubbleGtk);
96 }; 96 };
97 97
98 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_GTK_H_ 98 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698