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

Side by Side Diff: chrome/browser/chromeos/notifications/balloon_collection_impl.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_CHROMEOS_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual bool RemoveBySourceOrigin(const GURL& origin); 65 virtual bool RemoveBySourceOrigin(const GURL& origin);
66 virtual void RemoveAll(); 66 virtual void RemoveAll();
67 virtual bool HasSpace() const; 67 virtual bool HasSpace() const;
68 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size); 68 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size);
69 virtual void SetPositionPreference(PositionPreference position) {} 69 virtual void SetPositionPreference(PositionPreference position) {}
70 virtual void DisplayChanged() {} 70 virtual void DisplayChanged() {}
71 virtual void OnBalloonClosed(Balloon* source); 71 virtual void OnBalloonClosed(Balloon* source);
72 virtual const Balloons& GetActiveBalloons(); 72 virtual const Balloons& GetActiveBalloons();
73 73
74 // NotificationObserver overrides: 74 // NotificationObserver overrides:
75 virtual void Observe(NotificationType type, 75 virtual void Observe(int type,
76 const NotificationSource& source, 76 const NotificationSource& source,
77 const NotificationDetails& details); 77 const NotificationDetails& details);
78 78
79 // Adds a callback for WebUI message. Returns true if the callback 79 // Adds a callback for WebUI message. Returns true if the callback
80 // is succssfully registered, or false otherwise. It fails to add if 80 // is succssfully registered, or false otherwise. It fails to add if
81 // there is no notification that matches NotificationDelegate::id(), 81 // there is no notification that matches NotificationDelegate::id(),
82 // or a callback for given message already exists. The callback 82 // or a callback for given message already exists. The callback
83 // object is owned and deleted by callee. 83 // object is owned and deleted by callee.
84 bool AddWebUIMessageCallback(const Notification& notification, 84 bool AddWebUIMessageCallback(const Notification& notification,
85 const std::string& message, 85 const std::string& message,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 scoped_ptr<NotificationUI> notification_ui_; 135 scoped_ptr<NotificationUI> notification_ui_;
136 136
137 NotificationRegistrar registrar_; 137 NotificationRegistrar registrar_;
138 138
139 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); 139 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl);
140 }; 140 };
141 141
142 } // namespace chromeos 142 } // namespace chromeos
143 143
144 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ 144 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698