Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: Source/web/WebNotification.cpp

Issue 36823002: Remove deprecated method Notification::detachPresenter() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/modules/notifications/Notification.h ('k') | public/web/WebNotification.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/modules/notifications/Notification.h ('k') | public/web/WebNotification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698