| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "modules/ModulesExport.h" | 29 #include "modules/ModulesExport.h" |
| 30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class Geolocation; | 34 class Geolocation; |
| 35 class GeolocationController; | 35 class GeolocationController; |
| 36 class GeolocationPosition; | 36 class GeolocationPosition; |
| 37 class LocalFrame; | 37 class LocalFrame; |
| 38 | 38 |
| 39 class GeolocationClient : public NoBaseWillBeGarbageCollectedFinalized<Geolocati
onClient> { | 39 class GeolocationClient : public GarbageCollectedFinalized<GeolocationClient> { |
| 40 USING_FAST_MALLOC_WILL_BE_REMOVED(GeolocationClient); | |
| 41 public: | 40 public: |
| 42 virtual ~GeolocationClient() { } | 41 virtual ~GeolocationClient() { } |
| 43 | 42 |
| 44 virtual void startUpdating() = 0; | 43 virtual void startUpdating() = 0; |
| 45 virtual void stopUpdating() = 0; | 44 virtual void stopUpdating() = 0; |
| 46 virtual void setEnableHighAccuracy(bool) = 0; | 45 virtual void setEnableHighAccuracy(bool) = 0; |
| 47 virtual GeolocationPosition* lastPosition() = 0; | 46 virtual GeolocationPosition* lastPosition() = 0; |
| 48 | 47 |
| 49 virtual void requestPermission(Geolocation*) = 0; | 48 virtual void requestPermission(Geolocation*) = 0; |
| 50 virtual void cancelPermissionRequest(Geolocation*) = 0; | 49 virtual void cancelPermissionRequest(Geolocation*) = 0; |
| 51 | 50 |
| 52 virtual void controllerForTestAdded(GeolocationController*) { } | 51 virtual void controllerForTestAdded(GeolocationController*) { } |
| 53 virtual void controllerForTestRemoved(GeolocationController*) { } | 52 virtual void controllerForTestRemoved(GeolocationController*) { } |
| 54 | 53 |
| 55 DEFINE_INLINE_VIRTUAL_TRACE() { } | 54 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 56 }; | 55 }; |
| 57 | 56 |
| 58 MODULES_EXPORT void provideGeolocationTo(LocalFrame&, GeolocationClient*); | 57 MODULES_EXPORT void provideGeolocationTo(LocalFrame&, GeolocationClient*); |
| 59 | 58 |
| 60 } // namespace blink | 59 } // namespace blink |
| 61 | 60 |
| 62 #endif // GeolocationClient_h | 61 #endif // GeolocationClient_h |
| OLD | NEW |