Turn NotificationPresenter into an abstract base class
This will allow us to have Mac-specific member variables without a bunch of ifdefs.
This commit is contained in:
parent
3c41af84a1
commit
651ab18a21
6 changed files with 42 additions and 19 deletions
23
brightray/browser/notification_presenter_mac.h
Normal file
23
brightray/browser/notification_presenter_mac.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#ifndef BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_MAC_H_
|
||||
#define BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_MAC_H_
|
||||
|
||||
#import "browser/notification_presenter.h"
|
||||
|
||||
#import "base/compiler_specific.h"
|
||||
|
||||
namespace brightray {
|
||||
|
||||
class NotificationPresenterMac : public NotificationPresenter {
|
||||
public:
|
||||
NotificationPresenterMac();
|
||||
~NotificationPresenterMac();
|
||||
|
||||
virtual void ShowNotification(
|
||||
const content::ShowDesktopNotificationHostMsgParams&,
|
||||
int render_process_id,
|
||||
int render_view_id) OVERRIDE;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue