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

Side by Side Diff: chrome/browser/ui/views/ash/balloon_collection_impl_ash.h

Issue 10855113: Show extension settings for extension notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_
6 #define CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_ 6 #define CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "ash/system/web_notification/web_notification_tray.h" 10 #include "ash/system/web_notification/web_notification_tray.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // On Ash this behaves the same as UpdateNotification. 59 // On Ash this behaves the same as UpdateNotification.
60 bool UpdateAndShowNotification(const Notification& notification); 60 bool UpdateAndShowNotification(const Notification& notification);
61 61
62 protected: 62 protected:
63 // Creates a new balloon. Overridable by unit tests. The caller is 63 // Creates a new balloon. Overridable by unit tests. The caller is
64 // responsible for freeing the pointer returned. 64 // responsible for freeing the pointer returned.
65 virtual Balloon* MakeBalloon(const Notification& notification, 65 virtual Balloon* MakeBalloon(const Notification& notification,
66 Profile* profile) OVERRIDE; 66 Profile* profile) OVERRIDE;
67 67
68 const extensions::Extension* GetBalloonExtension(Balloon* balloon);
69
68 private: 70 private:
69 // Set of unique ids associated with system notifications, used by 71 // Set of unique ids associated with system notifications, used by
70 // MakeBalloon to determine whether or not to enable Web UI. 72 // MakeBalloon to determine whether or not to enable Web UI.
71 std::set<std::string> system_notifications_; 73 std::set<std::string> system_notifications_;
72 74
73 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImplAsh); 75 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImplAsh);
74 }; 76 };
75 77
76 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_ 78 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_
OLDNEW
« no previous file with comments | « ash/system/web_notification/web_notification_tray.cc ('k') | chrome/browser/ui/views/ash/balloon_collection_impl_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698