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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef NotificationPresenterImpl_h | 31 #ifndef NotificationPresenterImpl_h |
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 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class WebNotificationPresenter; | 38 class WebNotificationPresenter; |
39 | 39 |
40 class NotificationPresenterImpl FINAL : public NotificationClient { | 40 class NotificationPresenterImpl final : public NotificationClient { |
41 public: | 41 public: |
42 NotificationPresenterImpl(); | 42 NotificationPresenterImpl(); |
43 | 43 |
44 void initialize(WebNotificationPresenter* presenter); | 44 void initialize(WebNotificationPresenter* presenter); |
45 bool isInitialized(); | 45 bool isInitialized(); |
46 | 46 |
47 // NotificationClient: | 47 // NotificationClient: |
48 virtual bool show(Notification*) OVERRIDE; | 48 virtual bool show(Notification*) override; |
49 virtual void close(Notification*) OVERRIDE; | 49 virtual void close(Notification*) override; |
50 virtual void notificationObjectDestroyed(Notification*) OVERRIDE; | 50 virtual void notificationObjectDestroyed(Notification*) override; |
51 virtual NotificationClient::Permission checkPermission(ExecutionContext*) OV
ERRIDE; | 51 virtual NotificationClient::Permission checkPermission(ExecutionContext*) ov
erride; |
52 | 52 |
53 private: | 53 private: |
54 // WebNotificationPresenter that this object delegates to. | 54 // WebNotificationPresenter that this object delegates to. |
55 WebNotificationPresenter* m_presenter; | 55 WebNotificationPresenter* m_presenter; |
56 }; | 56 }; |
57 | 57 |
58 } // namespace blink | 58 } // namespace blink |
59 | 59 |
60 #endif // NotificationPresenterImpl_h | 60 #endif // NotificationPresenterImpl_h |
OLD | NEW |