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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // blink::NotificationPresenter implementation. | 49 // blink::NotificationPresenter implementation. |
50 virtual bool show(blink::Notification*) OVERRIDE; | 50 virtual bool show(blink::Notification*) OVERRIDE; |
51 virtual void close(blink::Notification*) OVERRIDE; | 51 virtual void close(blink::Notification*) OVERRIDE; |
52 virtual void notificationObjectDestroyed(blink::Notification*) OVERRIDE; | 52 virtual void notificationObjectDestroyed(blink::Notification*) OVERRIDE; |
53 virtual blink::NotificationClient::Permission checkPermission(blink::Executi
onContext*) OVERRIDE; | 53 virtual blink::NotificationClient::Permission checkPermission(blink::Executi
onContext*) OVERRIDE; |
54 virtual void requestPermission(blink::ExecutionContext*, WTF::PassOwnPtr<bli
nk::NotificationPermissionCallback>) OVERRIDE; | |
55 | 54 |
56 private: | 55 private: |
57 // WebNotificationPresenter that this object delegates to. | 56 // WebNotificationPresenter that this object delegates to. |
58 WebNotificationPresenter* m_presenter; | 57 WebNotificationPresenter* m_presenter; |
59 }; | 58 }; |
60 | 59 |
61 } // namespace blink | 60 } // namespace blink |
62 | 61 |
63 #endif // NotificationPresenterImpl_h | 62 #endif // NotificationPresenterImpl_h |
OLD | NEW |