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

Unified Diff: chrome/browser/notifications/balloon.h

Issue 363003: Implement cancel() API on a Notification object so that script can cancel or ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/notifications/balloon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/balloon.h
===================================================================
--- chrome/browser/notifications/balloon.h (revision 30967)
+++ chrome/browser/notifications/balloon.h (working copy)
@@ -32,7 +32,7 @@
virtual void RepositionToBalloon() = 0;
// Close the view.
- virtual void Close() = 0;
+ virtual void Close(bool by_user) = 0;
};
// Represents a Notification on the screen.
@@ -65,9 +65,16 @@
// to this object.
void set_view(BalloonView* balloon_view);
+ // Shows the balloon.
virtual void Show();
- virtual void Close(bool by_user);
+ // Called when the balloon is closed, either by user (through the UI)
+ // or by a script.
+ virtual void OnClose(bool by_user);
+
+ // Called by script to cause the balloon to close.
+ virtual void CloseByScript();
+
private:
// Non-owned pointer to the profile.
Profile* profile_;
« no previous file with comments | « no previous file | chrome/browser/notifications/balloon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698