| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/renderer/notification_provider.h" | 5 #include "content/renderer/notification_provider.h" |
| 6 | 6 |
| 7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "content/common/desktop_notification_messages.h" | 8 #include "content/common/desktop_notification_messages.h" |
| 9 #include "content/common/frame_messages.h" | 9 #include "content/common/frame_messages.h" |
| 10 #include "content/renderer/render_frame_impl.h" | 10 #include "content/renderer/render_frame_impl.h" |
| 11 #include "third_party/WebKit/public/platform/WebURL.h" | 11 #include "third_party/WebKit/public/platform/WebURL.h" |
| 12 #include "third_party/WebKit/public/web/WebDocument.h" | 12 #include "third_party/WebKit/public/web/WebDocument.h" |
| 13 #include "third_party/WebKit/public/web/WebFrame.h" | 13 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 14 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" | 14 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" |
| 15 | 15 |
| 16 using blink::WebDocument; | 16 using blink::WebDocument; |
| 17 using blink::WebNotification; | 17 using blink::WebNotification; |
| 18 using blink::WebNotificationPresenter; | 18 using blink::WebNotificationPresenter; |
| 19 using blink::WebSecurityOrigin; | 19 using blink::WebSecurityOrigin; |
| 20 using blink::WebString; | 20 using blink::WebString; |
| 21 using blink::WebURL; | 21 using blink::WebURL; |
| 22 using blink::WebUserGestureIndicator; | 22 using blink::WebUserGestureIndicator; |
| 23 | 23 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // the page before the associated toast was clicked on. | 124 // the page before the associated toast was clicked on. |
| 125 if (found) | 125 if (found) |
| 126 notification.dispatchClickEvent(); | 126 notification.dispatchClickEvent(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 void NotificationProvider::OnNavigate() { | 129 void NotificationProvider::OnNavigate() { |
| 130 manager_.Clear(); | 130 manager_.Clear(); |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace content | 133 } // namespace content |
| OLD | NEW |