| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2009 Torch Mobile, Inc. | 3 * Copyright (C) 2009 Torch Mobile, Inc. |
| 4 * Copyright 2010, The Android Open Source Project | 4 * Copyright 2010, The Android Open Source Project |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "core/dom/DOMException.h" | 31 #include "core/dom/DOMException.h" |
| 32 #include "core/dom/Document.h" | 32 #include "core/dom/Document.h" |
| 33 #include "core/dom/ExceptionCode.h" | 33 #include "core/dom/ExceptionCode.h" |
| 34 #include "modules/geolocation/Coordinates.h" | 34 #include "modules/geolocation/Coordinates.h" |
| 35 #include "modules/geolocation/GeofencingRegion.h" | 35 #include "modules/geolocation/GeofencingRegion.h" |
| 36 #include "modules/geolocation/GeolocationController.h" | 36 #include "modules/geolocation/GeolocationController.h" |
| 37 #include "modules/geolocation/GeolocationError.h" | 37 #include "modules/geolocation/GeolocationError.h" |
| 38 #include "modules/geolocation/GeolocationPosition.h" | 38 #include "modules/geolocation/GeolocationPosition.h" |
| 39 #include "wtf/CurrentTime.h" | 39 #include "wtf/CurrentTime.h" |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace blink { |
| 42 | 42 |
| 43 static const char permissionDeniedErrorMessage[] = "User denied Geolocation"; | 43 static const char permissionDeniedErrorMessage[] = "User denied Geolocation"; |
| 44 static const char failedToStartServiceErrorMessage[] = "Failed to start Geolocat
ion service"; | 44 static const char failedToStartServiceErrorMessage[] = "Failed to start Geolocat
ion service"; |
| 45 static const char framelessDocumentErrorMessage[] = "Geolocation cannot be used
in frameless documents"; | 45 static const char framelessDocumentErrorMessage[] = "Geolocation cannot be used
in frameless documents"; |
| 46 | 46 |
| 47 static Geoposition* createGeoposition(GeolocationPosition* position) | 47 static Geoposition* createGeoposition(GeolocationPosition* position) |
| 48 { | 48 { |
| 49 if (!position) | 49 if (!position) |
| 50 return nullptr; | 50 return nullptr; |
| 51 | 51 |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 ScriptPromise Geolocation::unregisterRegion(ScriptState* scriptState, const Stri
ng& regionId) | 598 ScriptPromise Geolocation::unregisterRegion(ScriptState* scriptState, const Stri
ng& regionId) |
| 599 { | 599 { |
| 600 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea
te(NotSupportedError)); | 600 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea
te(NotSupportedError)); |
| 601 } | 601 } |
| 602 | 602 |
| 603 ScriptPromise Geolocation::getRegisteredRegions(ScriptState* scriptState) const | 603 ScriptPromise Geolocation::getRegisteredRegions(ScriptState* scriptState) const |
| 604 { | 604 { |
| 605 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea
te(NotSupportedError)); | 605 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea
te(NotSupportedError)); |
| 606 } | 606 } |
| 607 | 607 |
| 608 } // namespace WebCore | 608 } // namespace blink |
| OLD | NEW |