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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "public/web/WebNotification.h" | 32 #include "public/web/WebNotification.h" |
33 | 33 |
34 #include "core/events/Event.h" | 34 #include "core/events/Event.h" |
35 #include "modules/notifications/Notification.h" | 35 #include "modules/notifications/Notification.h" |
36 #include "public/platform/WebURL.h" | 36 #include "public/platform/WebURL.h" |
37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
38 | 38 |
39 using WebCore::Notification; | 39 using blink::Notification; |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 void WebNotification::reset() | 43 void WebNotification::reset() |
44 { | 44 { |
45 m_private.reset(); | 45 m_private.reset(); |
46 } | 46 } |
47 | 47 |
48 void WebNotification::assign(const WebNotification& other) | 48 void WebNotification::assign(const WebNotification& other) |
49 { | 49 { |
(...skipping 10 matching lines...) Expand all Loading... |
60 return m_private.get() < other.m_private.get(); | 60 return m_private.get() < other.m_private.get(); |
61 } | 61 } |
62 | 62 |
63 WebString WebNotification::title() const | 63 WebString WebNotification::title() const |
64 { | 64 { |
65 return m_private->title(); | 65 return m_private->title(); |
66 } | 66 } |
67 | 67 |
68 WebTextDirection WebNotification::direction() const | 68 WebTextDirection WebNotification::direction() const |
69 { | 69 { |
70 return (m_private->direction() == WebCore::RTL) ? | 70 return (m_private->direction() == blink::RTL) ? |
71 WebTextDirectionRightToLeft : | 71 WebTextDirectionRightToLeft : |
72 WebTextDirectionLeftToRight; | 72 WebTextDirectionLeftToRight; |
73 } | 73 } |
74 | 74 |
75 WebString WebNotification::lang() const | 75 WebString WebNotification::lang() const |
76 { | 76 { |
77 return m_private->lang(); | 77 return m_private->lang(); |
78 } | 78 } |
79 | 79 |
80 WebString WebNotification::body() const | 80 WebString WebNotification::body() const |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 { | 119 { |
120 } | 120 } |
121 | 121 |
122 WebNotification& WebNotification::operator=(Notification* notification) | 122 WebNotification& WebNotification::operator=(Notification* notification) |
123 { | 123 { |
124 m_private = notification; | 124 m_private = notification; |
125 return *this; | 125 return *this; |
126 } | 126 } |
127 | 127 |
128 } // namespace blink | 128 } // namespace blink |
OLD | NEW |