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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 return (m_private->direction() == RTL) ? | 95 return (m_private->direction() == RTL) ? |
96 WebTextDirectionRightToLeft : | 96 WebTextDirectionRightToLeft : |
97 WebTextDirectionLeftToRight; | 97 WebTextDirectionLeftToRight; |
98 } | 98 } |
99 | 99 |
100 WebString WebNotification::replaceId() const | 100 WebString WebNotification::replaceId() const |
101 { | 101 { |
102 return m_private->tag(); | 102 return m_private->tag(); |
103 } | 103 } |
104 | 104 |
105 void WebNotification::detachPresenter() | |
106 { | |
107 m_private->detachPresenter(); | |
108 } | |
109 | |
110 void WebNotification::dispatchDisplayEvent() | 105 void WebNotification::dispatchDisplayEvent() |
111 { | 106 { |
112 m_private->dispatchShowEvent(); | 107 m_private->dispatchShowEvent(); |
113 } | 108 } |
114 | 109 |
115 void WebNotification::dispatchErrorEvent(const blink::WebString& /* errorMessage
*/) | 110 void WebNotification::dispatchErrorEvent(const blink::WebString& /* errorMessage
*/) |
116 { | 111 { |
117 // FIXME: errorMessage not supported by WebCore yet | 112 // FIXME: errorMessage not supported by WebCore yet |
118 m_private->dispatchErrorEvent(); | 113 m_private->dispatchErrorEvent(); |
119 } | 114 } |
(...skipping 27 matching lines...) Expand all Loading... |
147 | 142 |
148 void WebNotification::assign(WebNotificationPrivate* p) | 143 void WebNotification::assign(WebNotificationPrivate* p) |
149 { | 144 { |
150 // p is already ref'd for us by the caller | 145 // p is already ref'd for us by the caller |
151 if (m_private) | 146 if (m_private) |
152 m_private->deref(); | 147 m_private->deref(); |
153 m_private = p; | 148 m_private = p; |
154 } | 149 } |
155 | 150 |
156 } // namespace blink | 151 } // namespace blink |
OLD | NEW |