| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "NotificationPresenter.h" | 31 #include "NotificationPresenter.h" |
| 32 | 32 |
| 33 #include "public/platform/Platform.h" | 33 #include "public/platform/Platform.h" |
| 34 #include "public/platform/WebString.h" | 34 #include "public/platform/WebString.h" |
| 35 #include "public/platform/WebURL.h" | 35 #include "public/platform/WebURL.h" |
| 36 #include "public/testing/WebTestDelegate.h" | 36 #include "public/testing/WebTestDelegate.h" |
| 37 #include "public/web/WebKit.h" | 37 #include "public/web/WebKit.h" |
| 38 #include "public/web/WebNotification.h" | |
| 39 #include "public/web/WebNotificationPermissionCallback.h" | 38 #include "public/web/WebNotificationPermissionCallback.h" |
| 40 #include "public/web/WebSecurityOrigin.h" | 39 #include "public/web/WebSecurityOrigin.h" |
| 41 #include <url/gurl.h> | 40 #include <url/gurl.h> |
| 42 | 41 |
| 43 using namespace blink; | 42 using namespace blink; |
| 44 using namespace std; | 43 using namespace std; |
| 45 | 44 |
| 46 namespace WebTestRunner { | 45 namespace WebTestRunner { |
| 47 | 46 |
| 48 namespace { | 47 namespace { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 158 |
| 160 void NotificationPresenter::requestPermission( | 159 void NotificationPresenter::requestPermission( |
| 161 const WebSecurityOrigin& origin, | 160 const WebSecurityOrigin& origin, |
| 162 WebNotificationPermissionCallback* callback) | 161 WebNotificationPermissionCallback* callback) |
| 163 { | 162 { |
| 164 m_delegate->printMessage("DESKTOP NOTIFICATION PERMISSION REQUESTED: " + str
ing(origin.toString().utf8()) + "\n"); | 163 m_delegate->printMessage("DESKTOP NOTIFICATION PERMISSION REQUESTED: " + str
ing(origin.toString().utf8()) + "\n"); |
| 165 callback->permissionRequestComplete(); | 164 callback->permissionRequestComplete(); |
| 166 } | 165 } |
| 167 | 166 |
| 168 } | 167 } |
| OLD | NEW |