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

Side by Side Diff: chrome/browser/notifications/notification_ui_manager.h

Issue 231723006: Remove balloon notification code. The last user was the Linux GTK port but that's deleted now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync after elliot's r263101 Created 6 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // extension ID). Returns true if anything was removed. 51 // extension ID). Returns true if anything was removed.
52 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) = 0; 52 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) = 0;
53 53
54 // Removes notifications matching |profile|. Returns true if any were removed. 54 // Removes notifications matching |profile|. Returns true if any were removed.
55 virtual bool CancelAllByProfile(Profile* profile) = 0; 55 virtual bool CancelAllByProfile(Profile* profile) = 0;
56 56
57 // Cancels all pending notifications and closes anything currently showing. 57 // Cancels all pending notifications and closes anything currently showing.
58 // Used when the app is terminating. 58 // Used when the app is terminating.
59 virtual void CancelAll() = 0; 59 virtual void CancelAll() = 0;
60 60
61 // Temporary, while we have two implementations of Notifications UI Managers.
62 // One is older BalloonCollection-based and uses renderers to show
63 // notifications, another delegates to the new MessageCenter and uses native
64 // UI widgets.
65 // TODO(dimich): remove these eventually.
66 static bool DelegatesToMessageCenter();
67
68 protected: 61 protected:
69 NotificationUIManager() {} 62 NotificationUIManager() {}
70 63
71 private: 64 private:
72 DISALLOW_COPY_AND_ASSIGN(NotificationUIManager); 65 DISALLOW_COPY_AND_ASSIGN(NotificationUIManager);
73 }; 66 };
74 67
75 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ 68 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_prefs_manager.cc ('k') | chrome/browser/notifications/notification_ui_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698