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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // DEPRECATED: Always returns an invalid URL. | 76 // DEPRECATED: Always returns an invalid URL. |
77 BLINK_EXPORT WebURL url() const; | 77 BLINK_EXPORT WebURL url() const; |
78 | 78 |
79 BLINK_EXPORT WebURL iconURL() const; | 79 BLINK_EXPORT WebURL iconURL() const; |
80 BLINK_EXPORT WebString title() const; | 80 BLINK_EXPORT WebString title() const; |
81 BLINK_EXPORT WebString body() const; | 81 BLINK_EXPORT WebString body() const; |
82 BLINK_EXPORT WebTextDirection direction() const; | 82 BLINK_EXPORT WebTextDirection direction() const; |
83 | 83 |
84 BLINK_EXPORT WebString replaceId() const; | 84 BLINK_EXPORT WebString replaceId() const; |
85 | 85 |
86 // Called if the presenter goes out of scope before the notification does. | |
87 BLINK_EXPORT void detachPresenter(); | |
88 | |
89 // Called to indicate the notification has been displayed. | 86 // Called to indicate the notification has been displayed. |
90 BLINK_EXPORT void dispatchDisplayEvent(); | 87 BLINK_EXPORT void dispatchDisplayEvent(); |
91 | 88 |
92 // Called to indicate an error has occurred with this notification. | 89 // Called to indicate an error has occurred with this notification. |
93 BLINK_EXPORT void dispatchErrorEvent(const WebString& errorMessage); | 90 BLINK_EXPORT void dispatchErrorEvent(const WebString& errorMessage); |
94 | 91 |
95 // Called to indicate the notification has been closed. If it was | 92 // Called to indicate the notification has been closed. If it was |
96 // closed by the user (as opposed to automatically by the system), | 93 // closed by the user (as opposed to automatically by the system), |
97 // the byUser parameter will be true. | 94 // the byUser parameter will be true. |
98 BLINK_EXPORT void dispatchCloseEvent(bool byUser); | 95 BLINK_EXPORT void dispatchCloseEvent(bool byUser); |
(...skipping 23 matching lines...) Expand all Loading... |
122 } | 119 } |
123 | 120 |
124 inline bool operator<(const WebNotification& a, const WebNotification& b) | 121 inline bool operator<(const WebNotification& a, const WebNotification& b) |
125 { | 122 { |
126 return a.lessThan(b); | 123 return a.lessThan(b); |
127 } | 124 } |
128 | 125 |
129 } // namespace blink | 126 } // namespace blink |
130 | 127 |
131 #endif | 128 #endif |
OLD | NEW |