| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebNotificationData_h | 5 #ifndef WebNotificationData_h |
| 6 #define WebNotificationData_h | 6 #define WebNotificationData_h |
| 7 | 7 |
| 8 #include "public/platform/WebString.h" | 8 #include "public/platform/WebString.h" |
| 9 #include "public/platform/WebURL.h" | 9 #include "public/platform/WebURL.h" |
| 10 #include "public/platform/WebVector.h" | 10 #include "public/platform/WebVector.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 : title(title) | 29 : title(title) |
| 30 , direction(direction) | 30 , direction(direction) |
| 31 , lang(lang) | 31 , lang(lang) |
| 32 , body(body) | 32 , body(body) |
| 33 , tag(tag) | 33 , tag(tag) |
| 34 , icon(icon) | 34 , icon(icon) |
| 35 , silent(silent) | 35 , silent(silent) |
| 36 { | 36 { |
| 37 } | 37 } |
| 38 | 38 |
| 39 // FIXME: Remove this constructor when Chromium has switched to the new one. |
| 39 WebNotificationData(const WebString& title, Direction direction, const WebSt
ring& lang, const WebString& body, const WebString& tag, const WebURL& icon, boo
l silent, const WebVector<char>& data) | 40 WebNotificationData(const WebString& title, Direction direction, const WebSt
ring& lang, const WebString& body, const WebString& tag, const WebURL& icon, boo
l silent, const WebVector<char>& data) |
| 40 : title(title) | 41 : title(title) |
| 41 , direction(direction) | 42 , direction(direction) |
| 42 , lang(lang) | 43 , lang(lang) |
| 43 , body(body) | 44 , body(body) |
| 44 , tag(tag) | 45 , tag(tag) |
| 45 , icon(icon) | 46 , icon(icon) |
| 46 , silent(silent) | 47 , silent(silent) |
| 47 , data(data) | 48 , data(data) |
| 48 { | 49 { |
| 49 } | 50 } |
| 50 | 51 |
| 52 WebNotificationData(const WebString& title, Direction direction, const WebSt
ring& lang, const WebString& body, const WebString& tag, const WebURL& icon, con
st WebVector<unsigned>& vibrate, bool silent, const WebVector<char>& data) |
| 53 : title(title) |
| 54 , direction(direction) |
| 55 , lang(lang) |
| 56 , body(body) |
| 57 , tag(tag) |
| 58 , icon(icon) |
| 59 , vibrate(vibrate) |
| 60 , silent(silent) |
| 61 , data(data) |
| 62 { |
| 63 } |
| 64 |
| 51 WebString title; | 65 WebString title; |
| 52 Direction direction; | 66 Direction direction; |
| 53 WebString lang; | 67 WebString lang; |
| 54 WebString body; | 68 WebString body; |
| 55 WebString tag; | 69 WebString tag; |
| 56 WebURL icon; | 70 WebURL icon; |
| 71 WebVector<unsigned> vibrate; |
| 57 bool silent; | 72 bool silent; |
| 58 WebVector<char> data; | 73 WebVector<char> data; |
| 59 }; | 74 }; |
| 60 | 75 |
| 61 } // namespace blink | 76 } // namespace blink |
| 62 | 77 |
| 63 #endif // WebNotificationData_h | 78 #endif // WebNotificationData_h |
| OLD | NEW |