Changeset 56043 in webkit
- Timestamp:
- Mar 15, 2010 11:42:30 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r56042 r56043 1 2010-03-15 John Gregg <johnnyg@google.com> 2 3 Reviewed by David Levin. 4 5 Notification object should expose absolute URL of icon 6 https://bugs.webkit.org/show_bug.cgi?id=35800 7 8 Covered by existing tests. 9 10 * notifications/Notification.cpp: 11 (WebCore::Notification::Notification): 12 * notifications/Notification.h: 13 (WebCore::Notification::iconURL): 14 1 15 2010-03-15 Leandro Pereira <leandro@profusion.mobi> 2 16 -
trunk/WebCore/notifications/Notification.cpp
r55888 r56043 74 74 return; 75 75 } 76 77 KURL icon= context->completeURL(contents.icon());78 if (! icon.isEmpty() && !icon.isValid()) {76 77 m_iconURL = context->completeURL(contents.icon()); 78 if (!m_iconURL.isEmpty() && !m_iconURL.isValid()) { 79 79 ec = SYNTAX_ERR; 80 80 return; -
trunk/WebCore/notifications/Notification.h
r48701 r56043 66 66 bool isHTML() { return m_isHTML; } 67 67 KURL url() { return m_notificationURL; } 68 KURL iconURL() { return m_iconURL; } 68 69 NotificationContents& contents() { return m_contents; } 69 70 … … 91 92 bool m_isHTML; 92 93 KURL m_notificationURL; 94 KURL m_iconURL; 93 95 NotificationContents m_contents; 94 96 -
trunk/WebKit/chromium/ChangeLog
r56030 r56043 1 2010-03-15 John Gregg <johnnyg@google.com> 2 3 Reviewed by David Levin. 4 5 Notification object should expose absolute URL of icon 6 https://bugs.webkit.org/show_bug.cgi?id=35800 7 8 * public/WebNotification.h: 9 * src/WebNotification.cpp: 10 (WebKit::WebNotification::iconURL): 11 1 12 2010-03-15 Darin Fisher <darin@chromium.org> 2 13 -
trunk/WebKit/chromium/public/WebNotification.h
r50696 r56043 73 73 74 74 // If not HTML, the parameters for the icon-title-text notification. 75 // FIXME: Deprecated; use iconURL() instead. 75 76 WEBKIT_API WebString icon() const; 77 WEBKIT_API WebURL iconURL() const; 76 78 WEBKIT_API WebString title() const; 77 79 WEBKIT_API WebString body() const; -
trunk/WebKit/chromium/src/WebNotification.cpp
r50721 r56043 77 77 } 78 78 79 // FIXME: remove this deprecated function once all callers use iconURL() 79 80 WebString WebNotification::icon() const 80 81 { 81 82 ASSERT(!isHTML()); 82 83 return m_private->contents().icon(); 84 } 85 86 WebURL WebNotification::iconURL() const 87 { 88 ASSERT(!isHTML()); 89 return m_private->iconURL(); 83 90 } 84 91
Note: See TracChangeset
for help on using the changeset viewer.