OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 21 matching lines...) Expand all Loading... |
32 #define NotificationPresenterImpl_h | 32 #define NotificationPresenterImpl_h |
33 | 33 |
34 #include "modules/notifications/NotificationClient.h" | 34 #include "modules/notifications/NotificationClient.h" |
35 | 35 |
36 #include "wtf/PassRefPtr.h" | 36 #include "wtf/PassRefPtr.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class WebNotificationPresenter; | 40 class WebNotificationPresenter; |
41 | 41 |
42 class NotificationPresenterImpl FINAL : public WebCore::NotificationClient { | 42 class NotificationPresenterImpl FINAL : public blink::NotificationClient { |
43 public: | 43 public: |
44 NotificationPresenterImpl() : m_presenter(0) { } | 44 NotificationPresenterImpl() : m_presenter(0) { } |
45 | 45 |
46 void initialize(WebNotificationPresenter* presenter); | 46 void initialize(WebNotificationPresenter* presenter); |
47 bool isInitialized(); | 47 bool isInitialized(); |
48 | 48 |
49 // WebCore::NotificationPresenter implementation. | 49 // blink::NotificationPresenter implementation. |
50 virtual bool show(WebCore::Notification*) OVERRIDE; | 50 virtual bool show(blink::Notification*) OVERRIDE; |
51 virtual void close(WebCore::Notification*) OVERRIDE; | 51 virtual void close(blink::Notification*) OVERRIDE; |
52 virtual void notificationObjectDestroyed(WebCore::Notification*) OVERRIDE; | 52 virtual void notificationObjectDestroyed(blink::Notification*) OVERRIDE; |
53 virtual WebCore::NotificationClient::Permission checkPermission(WebCore::Exe
cutionContext*) OVERRIDE; | 53 virtual blink::NotificationClient::Permission checkPermission(blink::Executi
onContext*) OVERRIDE; |
54 virtual void requestPermission(WebCore::ExecutionContext*, WTF::PassOwnPtr<W
ebCore::NotificationPermissionCallback>) OVERRIDE; | 54 virtual void requestPermission(blink::ExecutionContext*, WTF::PassOwnPtr<bli
nk::NotificationPermissionCallback>) OVERRIDE; |
55 | 55 |
56 private: | 56 private: |
57 // WebNotificationPresenter that this object delegates to. | 57 // WebNotificationPresenter that this object delegates to. |
58 WebNotificationPresenter* m_presenter; | 58 WebNotificationPresenter* m_presenter; |
59 }; | 59 }; |
60 | 60 |
61 } // namespace blink | 61 } // namespace blink |
62 | 62 |
63 #endif // NotificationPresenterImpl_h | 63 #endif // NotificationPresenterImpl_h |
OLD | NEW |